Can you use GDB for your app code if soft device was merged in the final hex?
Can you use GDB for your app code if soft device was merged in the final hex?
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)
You can refer to this answer for more info.
You can refer to this answer for more info.