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

Disable Softdevice sandboxing in fault handler

Hello Nordic team,

In our project we have a requirement to write a log record to flash sector when any fault occured (hardfault or SD fault callback), so we can download and analyze it later. Device can be in any state before this - in interrupt handler, with corrupted stack, etc, so we should write an assembly code that will use NVMC registers directly. The problem is, when softdevice is enabled, NVMC is protected by its sandboxing mechanism. It there a way to disable sandboxing from fault handler, or maybe to disable it completely when initializing softdevice?

Parents Reply Children
Related