cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L0 LoRaWAN -> Facing problem in UART2 interrupt when receive data.

Mr._Nileshkumar_Solanki
Associate III

Facing problem with run UART interrupt when receiving data.
In that case I'm getting data but most of lost and receiving after some delay.

If anyone solved this kind of problem than help me for this.

1 REPLY 1

Perhaps start by identifying why / how you're losing data.

Check what errors precipitate this, if you're spending too much time in the interrupt handler or callback.

Perhaps move to using DMA to provide you some buffer or elasticity against delays in processing beyond the single byte time that interrupts afford you. 

Check relative priorities, and preemption. You really want the quick in-and-out stuff to be able to preempt and stash the data away.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..