Recent

Author Topic: Important tip when debugging Pi Pico with openocd and Pico Debug Probe  (Read 1758 times)

MiR

  • Sr. Member
  • ****
  • Posts: 266
I just learned the hard way that timers do not work when you debug an app for the Pico. Which makes short delay loops take forever....

A good summary is here:

https://github.com/raspberrypi/pico-sdk/issues/1622

So, when you face the same issue this commandline will solve it:

openocd -f interface/cmsis-dap.cfg -c "set USE_CORE 0" -f target/rp2040.cfg -c "adapter speed 5000"

Have fun,

Michael

ccrause

  • Hero Member
  • *****
  • Posts: 890
Thanks for the tip.  I hope I remember this when I eventually get round to playing with my Pico.

MiR

  • Sr. Member
  • ****
  • Posts: 266
Funny, I deleted the topic here and put it to the arm forum, seems that delete was not successfull.

Anyway, now you have two places to remember..

Michael

 

TinyPortal © 2005-2018