User avatar
HermannSW
Posts: 6034
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany

Debugging with SWD -- hello_world.elf missing

Wed Feb 03, 2021 6:14 am

I did start using SWD according instructions in chapter 5:
https://datasheets.raspberrypi.org/pico ... df#page=19

But when trying to actually debug I realized that hello_world.elf was missing:

Code: Select all

pi@raspberrypi400:~/pico/pico-examples/build/hello_world $ ls -l
total 20
drwxr-xr-x 2 pi pi 4096 Feb  3 07:07 CMakeFiles
-rw-r--r-- 1 pi pi 1260 Feb  3 07:06 cmake_install.cmake
-rw-r--r-- 1 pi pi 4079 Feb  3 07:06 Makefile
drwxr-xr-x 3 pi pi 4096 Feb  3 07:07 serial
drwxr-xr-x 3 pi pi 4096 Feb  3 07:07 usb
pi@raspberrypi400:~/pico/pico-examples/build/hello_world $ find . -name "*.elf"
./usb/hello_usb.elf
./serial/hello_serial.elf
pi@raspberrypi400:~/pico/pico-examples/build/hello_world $ 

I did cd into usb folder and was successful in single stepping through hello_usb.elf.
But where is hello_world.elf?
I just upgraded to 1.0.1 SDK, not sure whether that has an effect or not.


I only soldered the 3 SWD pins for now:
20210203_065502.15%.jpg
20210203_065502.15%.jpg
20210203_065502.15%.jpg (52.44 KiB) Viewed 565 times
https://github.com/Hermann-SW/RSA_numbers_factored
https://stamm-wilbrandt.de/GS_cam_1152x192@304fps
https://hermann-sw.github.io/planar_graph_playground
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/

GregAC
Posts: 53
Joined: Sun Aug 17, 2014 9:48 pm

Re: Debugging with SWD -- hello_world.elf missing

Wed Feb 03, 2021 8:47 am

Think is just a typo, there's two versions of the binary one for serial, one for USB.

Probably one to report here: https://github.com/raspberrypi/pico-feedback/

Edit: Someone's already done it: https://github.com/raspberrypi/pico-feedback/issues/28 though they also need to mention hello_world.elf should be hello_serial.elf (or better yet note both are available and you can choose).

User avatar
HermannSW
Posts: 6034
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany

Re: Debugging with SWD -- hello_world.elf missing

Wed Feb 03, 2021 10:10 am

GregAC wrote:
Wed Feb 03, 2021 8:47 am
Think is just a typo, there's two versions of the binary one for serial, one for USB.

Probably one to report here: https://github.com/raspberrypi/pico-feedback/

Edit: Someone's already done it: https://github.com/raspberrypi/pico-feedback/issues/28 though they also need to mention hello_world.elf should be hello_serial.elf (or better yet note both are available and you can choose).
Thanks, both are available, good that the issue was already raised.
https://github.com/Hermann-SW/RSA_numbers_factored
https://stamm-wilbrandt.de/GS_cam_1152x192@304fps
https://hermann-sw.github.io/planar_graph_playground
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/

Return to “SDK”