Hi.
I am using TIMER4, BLE, and GPIOTE together.
But there's a problem that keeps stopping.
I don't know why.
Can you help me?



Hi.
I am using TIMER4, BLE, and GPIOTE together.
But there's a problem that keeps stopping.
I don't know why.
Can you help me?



Hi,
If you are using a softdevice, the issue is most likely with the NVIC priority that you have set for the GPIOTE interrupt. The softdevice uses priority 0, 1, and 4. These priorities cannot be used by the application. See Interrupt priority levels for more details.
Best regards,
Jørgen
Hi,
If you are using a softdevice, the issue is most likely with the NVIC priority that you have set for the GPIOTE interrupt. The softdevice uses priority 0, 1, and 4. These priorities cannot be used by the application. See Interrupt priority levels for more details.
Best regards,
Jørgen
Thank you for replying.
I changed the NVIC priority setting as you said, but it stops the same.
Could it be because of BLE adc setting?


I checked it by connecting the ble using the Nordic app.
There are times when it stops suddenly while operating normally.
Each time, Error : (0x8) : GATT CONN TIMEOUT appears.
And I have to turn off the module and turn it on again to connect.

You should not use priority 0 and 4, these are reserved by the softdevice and will give asserts. Try using 2 for GPIOTE and 3 or 5 for TIMER4.