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

BLE_CLI generates a "SOFTDEVICE INVALID MEMORY ACCESS." error

Hi all.

For debugging my app (SD s132, V5.0, SDK 14.2), I'm using the NRF_BLE_CLI (I use Nordic the example with an external PCA10040, the Python script and PuTTY).

Unfortunately, randomly, I got an NRF_FAULT_ID_APP_MEMACC, that mean wich a "SOFTDEVICE: INVALID MEMORY ACCESS" error has been raised.

Observating the Stack pointer, ia == R12 = 0x00031389  (note that the call stack is empty...), I found that the responsible is the function "cli_ble_uart_read", used when a new command is received

Here the address of the function cli_ble_uart_read:

As you can see in the pictures, the MWU->PERREGION register are all 0, apparently, there are not a SD violation:

Here the CPU registers:

Please, can anyone help me?? I'm going crazy!

Thanks a lot!

Related