Hi,
After few hours my program is crashing and I'm landing on address 0x1AFF4 which belongs to softdevice. For what is responsible this code and what could be a reason of this behaviour? I'm using nRF52 with SoftDevice v2.0.1.
Hi,
After few hours my program is crashing and I'm landing on address 0x1AFF4 which belongs to softdevice. For what is responsible this code and what could be a reason of this behaviour? I'm using nRF52 with SoftDevice v2.0.1.
Could you try to provide some more information? What SDK version are you using? Is this a custom board or the nRF52- DK ? Are you running one of the examples in the SDK? Are you able to debug? In what part of the code does this happen?Are you able to figure out which softdevice function that causes the problem? What is the return error code on the softdevice function?
I'm using SDK11 with SD132 v2.0.1 on DK PCA10040 v1.1.0 I'm not able to debug because my debug session is crashing in fact. When that happens program counter is set to 0x1AFF4. I can't even do single step. I'm using various features from softDevice, timeslot, radio notifications and everything works well for ~2 hours. Maybe that's not softdevice problem but debugger problem?
It could be an assert due to the timeslot is not ended in time. In the timeslot API tutorial, there is a code snippet:
NRF_TIMER0->CC[0] = m_slot_length - 1000;
Try to use m_slot_length - 1500
or m_slot_length - 2000
, and see if it solves the problem.
I have an even greater margin - 4000. The problem was the lack of DEBUG and DEBUG_NRF defines. Without those my device was just resetting. Now I'm landing in hard fault. Of course, the problem lies on my side but now I'm able to debug and do some further investigation.
Topic for close. Thanks for help.