Code upload not possible after timer implementation

Hi,

i used the following code to set a timer on my RP2040 board. It seemed to work fine, but unfortunatelly i am not able to upload a new program anymore. I suspect that the bootloader is interupted by the timer... anyone who knows how to solve this?

-> Pressing the reset button while uploading does not work

Thanks a lot!

#include <mbed.h>

mbed::Ticker audioTicker;

void rp2040PeriodicFunction() {
... xyz
}

void setup() {
audioTicker.attach_us(&rp2040PeriodicFunction, 1000);
}

void loop() {
}

For anyone who has the same issue: press the reset button twice => upload should be working again :slight_smile:

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.