AnsweredAssumed Answered

SOLVED ..stm32f7-discovery board and VCP usart1

Question asked by skovholm_hansen.hjal on Apr 24, 2016
Latest reply on May 10, 2016 by bauch.aaron.001
hi

I try to setup serial trough y´the USART1 on stm32f7-discovery using cubemx to make the project.

When using usart6 everything works fine but with usart1 trough vcp i can not get it up and running.

in my main.c i have only made 3 lines of code ..everything else come from cubemx

Wha can the problem be ?

/* Initialize all configured peripherals */
  MX_GPIO_Init();
  MX_USART6_UART_Init();
  MX_USART1_UART_Init();


  /* USER CODE BEGIN 2 */


  /* USER CODE END 2 */


  /* Infinite loop */
  /* USER CODE BEGIN WHILE */




       while (1)
       {
            uint8_t data[20] = "test \n\r";
            HAL_UART_Transmit(&huart6,data,20,1000);
            HAL_UART_Transmit(&huart1,data,20,1000);

Outcomes