Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7604

SDK • Re: [RP2040] sleep_us waits forever

$
0
0
Hi All,

I am a newbie in pico C/C++ dev, and this is my first post on this forum.

One week ago, I installed vscode with Raspberry pi pico extension, and I started trying to do step-by-step debugging in blink.c from pico-examples (through SWD via debugprobe).

I was able to F10 several times from the first main code line... but only until the "sleep_ms()" line: then the program enterred infinite loop as I guessed by breaking it several times.

I desesperatly g00gled for 2 days... until I found ConfuSomu's proposal to insert

Code:

timer_hw->dbgpause = 0;
at the very beginning.

At first glance, this is working for me :-) Thanks :-)

pehachem.

Statistics: Posted by pehachem — Sat Jan 03, 2026 4:35 pm



Viewing all articles
Browse latest Browse all 7604

Trending Articles