Contents
  1. Problem Description:
  2. Cause
  3. Troubleshooting Process:

Problem Description:

I was using an STM32F103C8T6 minimum system board. After debugging the STM32 program on Windows and successfully establishing serial communication, the serial connection stopped responding after I restarted the computer.

Cause

To flash the minimum system board, configure Boot0 as 1 and Boot1 as 0.

To run the program on the minimum system board, configure Boot0 as 0 and keep Boot1 at 0.

Troubleshooting Process:

  1. Flash the program

After configuring Boot0 as 1 and Boot1 as 0 and flashing the program, immediately open the serial debugging tool (without disconnecting power). At this point, the host computer can communicate with the microcontroller. You can also see that the blue LED on the USB-to-TTL module is lit.

  1. The problem occurs

If you unplug and reconnect the USB-to-TTL module at this point, or restart the computer, you can see that the blue LED on the USB-to-TTL module is off. If you use the serial debugging tool again, serial communication will not work.

  1. The problem is resolved

After configuring Boot0 as 0 and Boot1 as 0, reconnect the USB-to-TTL module. You can see that the blue LED lights up, and serial communication now works.

Troubleshooting Process: