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

Do I need to change the interrupt priority when using BLE

Hi,

I am using BLE UART application with softdevice S132 on nrf52832 board. I wrote a code where where i am using systick interrupt, GPIOTE interrupt. Also code has SPI0 ,Timer0, SAADC modules. Code is working fine without BLE .But now i have to add my application over BLE UART application. Do i need to change the priorities for those interrupts???What all changes i am supposed to to make in my application code????

Parents
  • Hi,

    Interrupt priorities 0,1,4 and 5 are reserved for the SoftDevice. Your application can use priorities 2,3,6 and 7. The SoftDevice also uses TIMER0, so you will need to switch to TIMER1. Systick is sourced by the same clock as the CPU, which is turned off when going to sleep(WFE/WFI), so I recommend that you look into using the app_timer instead.

Reply
  • Hi,

    Interrupt priorities 0,1,4 and 5 are reserved for the SoftDevice. Your application can use priorities 2,3,6 and 7. The SoftDevice also uses TIMER0, so you will need to switch to TIMER1. Systick is sourced by the same clock as the CPU, which is turned off when going to sleep(WFE/WFI), so I recommend that you look into using the app_timer instead.

Children
Related