I've got an nRF52840 dev kit and am building my code using the app_ble_hrs_freertos project as a starting point. I'm building the .elf file, which I load into Ozone to do debugging. I'm able to flash the program using Ozone. I can single-step through the 1st couple of function calls, but when I get to ble_stack_init, I get a hard fault. If I disconnect Ozone and let the code that I downloaded just run, it runs fine. It outputs messages to the debug UART, and I can see the board advertising from my phone. I have tried running within Ozone from the start of main without single-stepping and with no breakpoints set, but I always hit the hard fault.
- What do I need to do to get Ozone debugging to work?
- If Ozone doesn't work for whatever reason, is there another debug solution that is recommended?
Thanks!
Brian