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

How BLE and MCU works at same time?

Hi Guys,

Will they work at the same time?

i want to use the MCU for UART and at the same time i want to run the BLE GAP events parallely. is this possible? and how it works? if you guys have any link provide me

Thanks.

  • Yes, they will for most intents and purposes work at the same time.

    The Softdevice is all interrupt driven. All interaction you have with the Softdevice is either triggering or triggered by an interrupt. Some of these interrupts are of the highest priority, but they are served by the Softdevice "behind the scenes". Others are of medium priority, and those are typically the ones you interact with in your application. More on interrupt priority levels.

    So, whatever you are doing in your application, like sending data over UART, the Softdevice might interrupt your business, allthough only for a short while. This is something you need to be aware of when developing BLE applications. Luckily, the nRF52 series has a UART with EasyDMA features that allows you to send data in the background so you don't have to worry about interruptions from the Softdevice.

Related