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

Softdevice assertion failed error at PC 0x17826

Hi, 

I am using softdevice s140_nrf52_7.0.1. I am trying to send the SAADC calculated voltage over NUS to a gateway. For like 20-30 seconds the program works fine and the saadc value gets successfully transferred to the gateway over NUS but then the softdevice asserts as PC 0x17826. For SAADC I am using RTC. I am not able to figure out the root cause of this assertion. Can you please help?

Parents Reply Children
  • Hi,

    The SDK is: nRF5_SDK_17.0.2_d674dde

    The softdevice is s140_nrf52_7.0.1_softdevice.hex

    I pin pointed the problem in the uart driver. I wanted to enable/disable the uart RX for the purpose of reading an RS485 bus. In the function that was disabling the RX of the Uart , the RXTO timeout was polled until timeout occurred. This happened while global interrups were disabled. The polling took long enough time to let the softdevice generate the assert. The interrupt disable is not done via de softdevice interrupt disable. So that may be the problem for the softdevice to plan his actions. I tried to use the softdevice function sd_nvic_critical_region_enter() and sd_nvic_critical_region_exit() and that solved the softdevice asserts, but that did cause other problems sending bytes to the uart. I have had no time to investigate that, but we will do that later on.

  • ok, let us know how that goes. And please consider creating a new case if you need assistance with that issue. it seems it is not related to the original questions. Thanks

Related