suikan4github / murasaki

STM32 HAL class library
MIT License
17 stars 3 forks source link

System is reset and serial message is lost when Nucleo USB is connected to VM. #140

Closed suikan4github closed 2 years ago

suikan4github commented 2 years ago

Describe the bug In the case of the connection of the USB serial port and Nucleo, the serial terminal displays and reset the system.

Error in function HandleError(), at line 189 of file debuggeruart.cpp : peripheral_->ErrorCode & HAL_UART_ERROR_FE

The system is reset. Also, the message after Nucleo rebooting seems to be lost.

To Reproduce Steps to reproduce the behavior:

  1. Runs some serial output programs on Nucleo G431RB.
  2. Connect it to the Linux system on VMWare. At this moment, power is kept feeding.
  3. Start the terminal
  4. Type any key to show the history ( assumes auto history is on ).

Expected behavior We expect the system is not reset and the message is not lost.

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

suikan4github commented 2 years ago

This is as expected on Nucleo. ST-Link reset the board when it's USB is connected to host.

We won't fix it.