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

malloc causing fault in SoftDevice

I'm using s140 on an nRF52840 and running into a hard fault when trying to malloc 20 bytes. (Yes, I know about memory fragmentation; it's not a concern here.)

app_error_fault_handler give me a counter of 0x1505C and a fault ID of 1 (and info of 0).

The sdh has been enabled, but bluetooth is not enabled.

Given that I can find no info on what the Softdevice is attempting to assert, I'm at a bit of a loss.

Parents Reply
  • Hi Folks,

    Any fix concerning this issue cause we are facing the same problem randomly at the same address offset (See Screeshot below).

    As you can see, it is located at 0x1505C and a fault ID of 1 (and info of 0) and the instruction refers to a call to "svc 255" (supervisor call  but unknow id).

    I use SDK 16.0.0 with softdevice 7.0.1

    I must add that this error occurs randomly in our functionning more precisely when uploading data to the target (which is a peripheral configured in long range mode) from a central so communication is stressed a bit.

Children
Related