![]() I tried the following and some of them seemed to fix the problem: I get random GDB/ "launch.json" related errors and I have no idea what the exact reason cand be. If all goes well you should see minicom printing the number of iterations in the while loop:įcking debugger sometimes works, sometimes not. Note that 1234561 in the command above must be replaced with the boards proper ID (to figure out what it is use TAB completion). Next, start minicom with this command: minicom -D /dev/tty.usbmodem1234561 -b 115200 Update the blink program to this: #include "main.h"Ĭonst uint LED_PIN = PICO_DEFAULT_LED_PIN If you installed Minicom then you can monitor printf outputs on your computer. Read more about Picoprobe in the offical documentation (page 57). ![]() VSCode may ask which program to run, choose your project's name. Now if you hit the debug button in VSCode, it should get into a debug session and stop at the main function. Connect one of your boards while holding the BOOTSEL button and upload the picoprobe.u2f file to the mounted storage disk. These pins are for data transfer, a clock and a common ground.Īgain, to make use of SWD we need two Pico boards: on one we'll need to upload a program called Picoprobe and the other board will contain our own project that we'll be able to debug. The RP2040 chip's SWD breakout pins can be found on Pico boards at the opposite end of the USB slot with the label "DEBUG". To have a much more robust environment we are going to use another Raspberry Pi Pico board, connect it to our original board and use it to transfer and debug the code we write. ![]() Moreover, SWD can be used to debug the code on the board. ![]() Luckily Serial Wire Debugging allows us to transfer programs to the Pico without all this struggle. What we've done so far is nice but let's be honest, it's a PITA to replug the Pico every single time we make changes to the code. Make sure you read all the posts to get the full picture. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |