2020-11-15 9:38 PM
I'm using STM32F103(blue pill). Usart1 connection with pl2303. My codes right here
uint8_t data;
  /* USER CODE END 2 */
 
  /* Infinite loop */
  /* USER CODE BEGIN WHILE */
  while (1)
  {
	HAL_Delay(1000);
	  if(HAL_USART_Receive(&husart1, &data, sizeof(data), 0) != HAL_TIMEOUT)
	  {
	   HAL_USART_Transmit(&husart1, &data, sizeof(data), 0);
	  }
    /* USER CODE END WHILE */
 
    /* USER CODE BEGIN 3 */
  }Simple echo program. But my port reader program(AccessPort) always take a meaningless
data when I launch board. Accesport screenshot right here.
 What is the problem?
2020-11-16 5:26 AM
The problem is probably the timing between the MCU and the terminal program doesn't match.
2020-11-16 6:57 AM
That's problem right because my usb - ttl converter doesn't have any clock pin. But How can I read usart output from my pc.
2020-11-16 7:00 AM
2020-11-16 7:07 AM
Np. Have a good day.