STM32F767ZI and USART by HAL.
Hello,
I have a strange problem with my STM32F767 ZI and USART communication.
With CubeMX, I set USART2->Asyncronous, SYS->Debug Serial Wire and RCC-> HSE Active (crystal/ceramic resonator).
So I generated a project for Atollic Truestudio and inserted
HAL_Delay(500);
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
HAL_UART_Transmit(&huart2,"Hello",5,1000);
//Toggle On board LEDSs, for testing...
HAL_GPIO_TogglePin(led2_GPIO_Port,led2_Pin);
HAL_Delay(500);
HAL_GPIO_TogglePin(led3_GPIO_Port,led3_Pin);
HAL_Delay(500);
}
/* USER CODE END 3 */After compiling (without errors) and resetting, program runs correctly (on board LEDs swith on/off) but no message to my terminal.
I connect my Nucleo to CN1 (ST-link USB port) as I do with my F4, but without success.
Serial config is OK.
Any suggest?
Thanks and best regards