cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 simple uart transmit interrupt

rolly loysney
Associate II
Posted on April 10, 2018 at 13:14

Hello,

i've followed many tutorial to try to get UART with interrupt working on my stm32l476rg (nucleo board) :

at the main.c, before while(1) loop :

HAL_UART_Transmit_IT(&huart4, (uint8_t *)welcome_str,sizeof(welcome_str));

this doesn't work, but in polling mode, it's working :

HAL_UART_Transmit(&huart4, (uint8_t *)welcome_str,sizeof(welcome_str),100);

i'm using hc-06 bluetooth dongle, and receiving it on android Phone, it should be able to receive interrupt without any problem...?

what i'm missing here ? any triggering stuff or ..?

thank you

#uart-it #stm32l4+
10 REPLIES 10
Posted on June 05, 2018 at 13:51

Thanks Clive .