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

Is it impossible to debug a ble project used softdevice with eclipse?

When I used keil, I set breakpoints to debug ble project used softdevice. And it was useful..

And now I'm using eclipse and gcc. It works well at first, but when step debugging, an error occurs in a function related to the softdevice, calling sd_xxx function.

image description image description

For reference, I'm using makefile generated by eclpise..

Parents
  • Indeed it's impossible to debug Soft Device for which your Eclipse has no information. It is possible to debug your code but any time-critical operation done in the stack will be killed by your debugger so typically nothing radio-related will work as you expect. That's why we all here speak about RTT and UART debugging logs all the time, that's how such embedded system is typically debugged...

Reply
  • Indeed it's impossible to debug Soft Device for which your Eclipse has no information. It is possible to debug your code but any time-critical operation done in the stack will be killed by your debugger so typically nothing radio-related will work as you expect. That's why we all here speak about RTT and UART debugging logs all the time, that's how such embedded system is typically debugged...

Children
Related