2016-10-26 11:22 PM
Helllo,
Create a SW4STM32 project using Cubemx. Project in UART, freertos and lwip. I use the task with hal_uart_transmit_it not work.The give a framing error. Added ioc filevoid
StartDefaultTask(
void
const
* argument)
{
/* init code for LWIP */
MX_LWIP_Init();
/* USER CODE BEGIN 5 */
/* Infinite loop */
uint8_t buffer[] = { 0x01 , 0x02, 0x33 };
for
(;;)
{
osDelay(1);
HAL_UART_Transmit_IT(&huart1, buffer, 3);
}
/* USER CODE END 5 */
}
#- #!stm32 #!freertos #!uart
2016-10-27 03:58 AM
Hiyildirim.yi_it,
Try de defined a global buffer and not a local one. And pass a pointer to data buffer in the HAL_UART_Transmit_IT() like following:HAL_UART_Transmit_IT(&huart1, (uint8_t*)buffer, 3);
-Hannibal-