Skip to main content
msche.1
Associate III
January 28, 2022
Solved

How do I create a VIRT_UART_HandleTypeDef?

  • January 28, 2022
  • 1 reply
  • 988 views

I'm following the tutorial here but when I define `VIRT_UART_HandleTypeDef huart0;` I get error: unknown type name. It seems like the only include I should need is openamp.h, but that doesn't seem to do the trick.

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Inclusion come from OPENAMP/openamp_conf.h in which you need to uncomment :

//#define VIRTUAL_UART_MODULE_ENABLED

Hope it help

Olivier

1 reply

Olivier GALLIEN
ST Technical Moderator
February 1, 2022

Hi @msche.1​ ,

VIRT_UART_HandleTypeDef is defined in Middlewares\Third_Party\OpenAMP\virtual_driver\virt_uart.h

included in your project by CubeMX as soon as you enable OpenAMP middleware.

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
February 1, 2022

Inclusion come from OPENAMP/openamp_conf.h in which you need to uncomment :

//#define VIRTUAL_UART_MODULE_ENABLED

Hope it help

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
msche.1
msche.1Author
Associate III
February 1, 2022

Wow, I've been looking for this answer for hours! Thanks for pointing that out!