cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0: FreeRTOS was blocked when calling HAL_UART_Transmit in task callback

czhe
Associate
Posted on June 24, 2016 at 06:16

Hi,

I'm working on stm32f0 discovery board and using STM32Cube FW v1.5 libraries.

As I tested the freertos example ''FreeRTOS_ThreadCreation'' with sending a string in ''LED_Thread1'' and ''LED_Thread2'' functions, then the platform will stuck.

It's no problem to send the string in main, so I thinks the GPIO and Uart functionalities should be fine.

If I didn't send the string in thread callback functions, the platform was okay too (I can see the LED blinking).

I was wondering if it's allowed to use  HAL_UART_Transmit in thread callback function. If yes, would you give me some suggestions to fix it.

Thanks,

Michael

#uart #cubemx #freertos #cube
0 REPLIES 0