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

GDB + softdevice ?

Can you use GDB for your app code if soft device was merged in the final hex?

Parents
  • Sorry, I wasn't clear.

    I'm using GCC+GDB+OpenOCD to step through code, and it appears if GDB steps through a SVCALL the microcontroller resets but if I run the example code without using GDB the code works fine.

    Were you successful in using GDB with softdevice ? If so how did you mange that?

    To program the micro I would use nrfjprog.

    thanks!

    Hi, Because of how the SoftDevice works you are not able to debug it by stepping the code. This is because it will report a fault upon failing timing checks. These timing checks are critical in order to be able to operate a BLE connection. Best regards, Øyvind Øyvind Karlsen (5 hours ago)

  • This is exactly the type of answer I was looking for. Thank you! There any documentation discussing this ?

Reply Children
No Data
Related