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

Uart Interrupt priority for BLE Mesh with PWM (Dimmer Example)

Hi,

When I reference of SDK Coexist examp of uart for adding in Experimental dimming example.

I get success in it. 

I take dimming level from uart, and publish it via client.

Then mesh Asserts happens.

After some search I learn that I have to use interrupt priority level to APP_IRQ_PRIORITY_LOW 

instead of "APP_IRQ_PRIORITY_LOWEST".

And mesh assert problem is solved.

But when I added pwm in Dimmer client example for own dimmer refrence from server example.

Dimming is also working.

But When I use uart combined with pwm then problem rises.

NRF52832 gona reset when pwm level is above 50%.

Then I changed Uart interrupt priority to "APP_IRQ_PRIORITY_LOWEST" then pwm works without Hang or reset with wdt.

So problem is

if I use APP_IRQ_PRIORITY_LOWEST I can use PWM but not Uart

and

if I use APP_IRQ_PRIORITY_LOW I can use Uart but not PWM.

Please help me regarding it.

Thank You

Bivay



Related