![]() As a result any update to tone (all require a noTone) cuts off the waveform presently being generated such that sometimes very short or extra long pulses are generated and there is a lot of jitter in the waveform. That is to say, change the frequency on the next transition. There appears to be no way to do 'synchronous' updates to the waveform. There is no significant variation in loop count (1) for a given code loop. As loop execution time goes down, the number of times through the loop before crash increases. Power cycle and if you start upload before next crash you can load new code. USB serial monitor goes off line and the IDE cannot reach the 2040 to upload programs. Jitter and long/short pulses stop as expected - you get a nice jitter free frequency. noTone / set tone to scaled analog valueĪfter processor code execution stops PIO tone generation continues. I am able to loop through code 14902 times and then the processor stops. Processor crashes (not PIO) when tone is in use. I am having trouble getting tone to work well on the 2040. ![]() I am using BSP 1.1.0 on a standard / reference PI PICO. Thanks for the work to get support for RP2040 working in Arduino IDE. ![]()
0 Comments
Leave a Reply. |