Issues with Power Manage loop.

Hello, I am developing a custom firmware for NRF52832 controller. I have develop power saving mode using power manage function. Also I have enabled interrupt inside code and using UART for receiving data from other controller. Now the flow of firmware is like -

1. NRF always kept on sleep(with Power mange function)

2. When Interrupt generated from external controller it comes out from power manage function. receives data on UART and advertise data

3. after advertisement we close UART and then again call power manage function. it is kept in sleep till next interrupt cycle is generated.

Now here the problem i am facing is whenever we do not connect UART above flow works fine but when we connect uart power mange function dose not wait for the interrupt it automatically coming out from power manage function and not keeping its state in sleep mode.

My primary guessing is it is happening because of UART (as it might be generating interrupt). please guide how we can handle this situation.

thank you.

Parents Reply Children
No Data
Related