STM32F4 FreeRTOS HAL_Uart_Transmit_IT Frame Error
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-10-26 11:22 PM
Posted on October 27, 2016 at 08:22
#- #!stm32 #!freertos #!uart
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 */
}
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-10-27 3:58 AM
Posted on October 27, 2016 at 12:58
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-
