open serial port failed? (virtual com port debug)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-12-04 12:59 AM
i used CUBEIDE to config my board's VCP function,but virtual com port always open failed,when the board is running in debug mode.so i used CUBEMX to generate my project again, but this time i generate keil project and everything is ok. so what's the problem?
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-12-18 1:20 AM
Hi SWu.2354,
If this topic is about the usage of the MPU serial console for non MPU devices the answer is no this can't work, or at least needs specifics settings.
This console has hard-coded settings for MPU purpose.
Hence either the UART handle init should respect the following settings and you can use above console
UartHandle.Init.BaudRate = 115200;
UartHandle.Init.WordLength = UART_WORDLENGTH_8B;
UartHandle.Init.HwFlowCtl = UART_HWCONTROL_NONE;
or you may have to define your own board connection from the Connection view:
Window > Show View > Other
And then right click on your defined connection > open command shell.
Hope this helps.
