cancel
Showing results for 
Search instead for 
Did you mean: 

USART receive thorugh interrupt by using LL in stm32f030

Abhishek Gupta
Associate III

I have to receive a string in stm32f030 from USART using LL library through the interrupt.

11 REPLIES 11
Abhishek Gupta
Associate III

No I didn't Initialize DMA circular buffer in the cube

Abhishek Gupta
Associate III

void receive_usart1()

{

 if(LL_USART_IsActiveFlag_RXNE(USART1) && LL_USART_IsEnabledIT_RXNE(USART1))

  {

uint8_t rxdata =LL_USART_ReceiveData8(USART1);

}LL_USART_TransmitData8(USART1,rxdata);

}

This only transmit what it gets at that instant but lost the data if some delay is applied.

I need to store the data in string to process it further.