This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Debugging app with buttonless bootloader, breakpoint not working.

Hi,

I recently added the buttonless DFU bootloader on my device with the debug config. I am using and I can flash an application when in DFU. Although, I cannot debug my application anymore. I am using Eclipse with arm-gcc on the NRF 52832. When I build the application and lauch it, the app starts and advertise. So my app launched. But when in debug, the app does not stop at main like it is supposed to. I did not change my debug configuration. I tried generating the settings using nrfutil and merging them with the application hex file, but it still does not stop on main or any breakpoint that I've added. I did try to change the CFLAG to -O0 -g3, but it still did not work.

Here I've added my debug configuration on eclipse:

Note that I was able to debug the application before adding the bootloader.

If anyone had a similar proble any help would be appreciated

Edit: note that I am using FreeRTOS if that is relevant

Parents Reply
  • Yes, the project that I used is the pca10040_ble_debug. And to test the debug, I do flash the application. But I just realised, is it possible that I need to edit the .ld file for the application project?

    Edit: When I reset the device and check the log, it doesn't seem to have any log of the bootloader in RTT viewer. Seems like the bootloader gets skipped

Children
Related