I have a target platform using an STM32F407 that I'm working on getting laser (with PWM) going, but before I start chasing issues too deep into the firmware I thought I'd check to see if anyone has already done the work?
I saw mention in the source that PWM frequency setting was only supported on the LPC and ESP32 targets (for 32-bit CPUs), but it looked like the STM32 branch did have some PWM plumbing in it. Anyone know for sure if STM32 PWM can indeed work with the M3-4-5 commands as-is? (I'm not clear if the comment means that just setting the PWM *frequency* isn't supported in the STM32 HAL or if PWM *in general* isn't working?)
When I enable the laser #defines I get a working laser enable signal, but the PWM output just goes high and then turns off one second later (as a result of the LASER_SAFETY_TIMEOUT_MS threshold triggering-- which seems odd since the platform *is* moving at the time)...
Thanks for any wisdom/experience you might be able to offer!
I saw mention in the source that PWM frequency setting was only supported on the LPC and ESP32 targets (for 32-bit CPUs), but it looked like the STM32 branch did have some PWM plumbing in it. Anyone know for sure if STM32 PWM can indeed work with the M3-4-5 commands as-is? (I'm not clear if the comment means that just setting the PWM *frequency* isn't supported in the STM32 HAL or if PWM *in general* isn't working?)
When I enable the laser #defines I get a working laser enable signal, but the PWM output just goes high and then turns off one second later (as a result of the LASER_SAFETY_TIMEOUT_MS threshold triggering-- which seems odd since the platform *is* moving at the time)...
Thanks for any wisdom/experience you might be able to offer!