Question
STMCube simple HAL_UART_Transmit seems to die
Hi, I just tried to create a simple Test for USART but it doesn't work.
I activated HSE, Serial Wire and UART2 for aynchronous 115200 baud. 8.1 via stmcube
This is basically the code I wrote into main loop:
...
char text[] = "Hallo Welt!\r\n\0";
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
if (HAL_UART_Transmit(&huart2, (uint8_t*)text, 32, 10) != HAL_OK) {
Error_Handler();
}
HAL_UART_Transmit(&huart2, (uint8_t*)"TEST ", 6, 10);
HAL_Delay(500);
}
...it should now transmit "Hallo Welt" over and over again.. followed by a "TEST "..
But it just shows "Hallo Welt!" once and then.. nothing..
any idea why?
I append the generated main.c
