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

S140 7.2.0 assert @ pc: 0x15074

I'm getting a strange assert from S140 7.2.0 nRF5_SDK_17.0.2_d674dde on a nRF52840 at PC 0x15074.

Frustratingly, it happens a minute or so after boot, but doesn't occur after a soft reset via debugger. I'm suspecting it's something memory related because I also have a buffer in use by SPIS that is misbehaving after boot, but behaving properly after a soft reset. Any clues to help me find the culprit behind this behavior would be much appreciated.

Parents
  • Hi,

    This assert is caused by an event overstaying (did not end by the timeout). A typical reason could be fi you use critical sections for too long or for some other reason prevents the SoftDevice from doing it's work on time.

  • I'm not using any critical sections directly, and I'm fairly certain the only bit of the SDK I'm using that has a critical section is app_scheduler. All the chip is doing is SPI comms (SPIM3 & SPIS2), polling some GPIO, and running a BLE NUS. I have 1 interrupt at priority 2, but that only triggers when RTC2 running at ~1kHz overflows, so that shouldn't be occurring this quickly. All other interrupts are at 6 or 7.

    Any idea of what sorts of other things could cause this? Is there a chance my advertising settings or other BLE config could be at fault?

Reply
  • I'm not using any critical sections directly, and I'm fairly certain the only bit of the SDK I'm using that has a critical section is app_scheduler. All the chip is doing is SPI comms (SPIM3 & SPIS2), polling some GPIO, and running a BLE NUS. I have 1 interrupt at priority 2, but that only triggers when RTC2 running at ~1kHz overflows, so that shouldn't be occurring this quickly. All other interrupts are at 6 or 7.

    Any idea of what sorts of other things could cause this? Is there a chance my advertising settings or other BLE config could be at fault?

Children
Related