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

Facing issues with multiple interrupts

Dear all,

I am using the following peripherals in our product.

1. TWI Sensor 

2. BLE

3. APP timer (1. to poll a gpio pin & as RTC)

4. SPI flash

5. 2 Edge sensitive GPIO pins.

6. 2 ADCs

Initially I need to wait for APP timer to create a low interrupt on GPIO pin & RTC. Then I establish the BLE Communication. Then I read sensor values and ADC values and GPIO edge interrupts to flash. Also the gpio pn low edges will be transmitted to another BLE device.

After filling the contents of the flash, I send the same values to another BLE device.

The problem that I am facing is setting the interrupt priority. If I set higher priority  for BLE followed by APP_TIMER, followed by sensors and ADC, the RTC & APP timer key press are not updated. Once the BLE stops, the RTC and GPIO edges are detected fine.

Please suggest me prority setting so that I am able to do all above functionality without any issues isr intterupt.

Parents Reply Children
No Data
Related