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

Calling soft-device methods from UART/UARTE interrupt handler

I have an application which receives commands from a co-processor via UART. Some commands are BLE-related such as, e.g. start-scan, stop-scan, connect, etc.

  • As the UART event handler is called in the context of the UART/UARTE interrupt, is it safe to call sd_xxx() methods from this thread context?
  • Alternatively, is it possible to post these events to the main thread, e.g. via a mailbox?

nRF5 SDK 11.0.0, with PCA10040 EVB

Related