And I can reproduce it on the Pico and WiFi boards too - this is a really big issue and I'm amazed that nobody has noticed this before.
Basically the utility timer (used for soft PWM, digitalPulse, and Waveforms) uses TIM5 too it seems, so TIM5 should have been taken out of the list of available timers - but it wasn't.
It's getting late here but I'll make sure I sort this out first thing next week.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That's amazing - thanks! I managed to reproduce it!
In fact, by copying in all the code and then deleting stuff I got it down to this:
And I can reproduce it on the Pico and WiFi boards too - this is a really big issue and I'm amazed that nobody has noticed this before.
Basically the utility timer (used for soft PWM, digitalPulse, and Waveforms) uses TIM5 too it seems, so TIM5 should have been taken out of the list of available timers - but it wasn't.
It's getting late here but I'll make sure I sort this out first thing next week.