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

Can't debug LBS example, but yes HRS

Hi

Maybe this is a silly question, but I'm getting into desperation!!!

The problem is that playing with the LBS example (github.com/.../nrf51-ble-app-lbs), I've noticed I can't debug it. Every time I set a breakpoint, or I pause the execution, the next I get is a HardFault handler. I've read in the forum that this situation is possible when the SD is enabled. So everything is OK until here.

But I've noticed too that when playing with the HRS example, I'm able to set up breakpoints, and execution follows correctly after them. For example, I've setted up a breakpoint in the main loop, right after the advertising_init(), and when I resume the execution, there's no problem, and the execution stops again in my breakpoint. Doing the same operation with the LBS example, I only stop in the breakpoint the first time. The following I get is a HardFault handler.

So, what's happening? What's the difference? I'm getting crazy?

Thanks you in advance

Regards,

Elena

Parents Reply Children
No Data
Related