Hello,
I'm flashing custom code onto a nRF52840 based PCB.
I'm using SDK v15.0, SES 4.52.
On the debug window I get the following message as soon as I run the code.
How do I check which function the code is stuck at?
Thanks,
Hello,
I'm flashing custom code onto a nRF52840 based PCB.
I'm using SDK v15.0, SES 4.52.
On the debug window I get the following message as soon as I run the code.
How do I check which function the code is stuck at?
Thanks,
Hi,
Are you using a Softdevice? You can use breakpoints to see how far the application reach before it asserts. See our guide on debugging in SES here.
regards
Jared
Hi,
Are you using a Softdevice? You can use breakpoints to see how far the application reach before it asserts. See our guide on debugging in SES here.
regards
Jared
I'm using Soft device "s140_nrf52_6.0.0_softdevice.hex".
I tried debugging, it seems to be getting stuck at :
Edit: It actually gets stuck in the if statement on line 663 event handler
what can I do to resolve?
You mean in:
if (p_advertising->evt_handler != NULL) { p_advertising->evt_handler(p_advertising->adv_evt); }
What does p_advertising->evt_handler point at?
okay, I need to take back the posts.
The code is actually not getting stuck in the soft device functions, It's getting stuck in nrf_drv_init().
I thought it was getting stuck on advertising, but then I added a breakpoint to the serial function. When I comment out the serial function, the code works fine.
The problem is, that I still cannot tell which function it's getting stuck at because the call stack is empty.
Please help,
thanks
So it asserts in the next step after line 230? Are you using the Softdevice? Note that there is a specific debug procedure for debugging with Softdevice.