Skip to main content
Explorer
February 6, 2024
Question

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

  • February 6, 2024
  • 1 reply
  • 855 views

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.

    This topic has been closed for replies.

    1 reply

    Graduate II
    February 6, 2024

    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.