[Documentation] Hardware PWM

Already have a post Raspberry as primary mcu - General Discussion - Klipper, as I thought it might have been a different issue, but this topic seems more specific for the actual problem.

Hardware pwm for host (raspberry) is behaving “funny”.
(Preamble: I have a fan “[controller_fan octopus_fan]” configured with “shutdown_speed: 1.0”)

Result is always the same “MCU ‘mcu’ shutdown: Unable to config pwm device” which goes away after a firmware_restart.
BUT
If I boot the raspberry from “off” state I simply get the error but the fan STAYS OFF
If I reboot the raspberry, on top of the error the fan GOES ON (expected behaviour)
Below I paste the log after:
Raspberry off → on → firmware_restart → raspberry reboot → firmware_restart
Ps @koconnor , man, I do miss a simple ‘bug’ report on github, I didn’t know I could drop a file here to upload it as an attachment. I tried to paste it and… windows green screen :sweat_smile:

klippy.log (995.6 KB)