STM32F103C8T6 boot selection and the BOOT pins

The BOOT0 and BOOT1 levels select the memory used when STM32F103C8T6 starts after reset. BOOT1 and PB2 share a pin. In the table, 0 and 1 mean valid low and high logic levels at the device pins.

BOOT0BOOT1/PB2Boot memory
0XUser Flash
10Factory bootloader in system memory
11Embedded SRAM

X means that BOOT1 does not affect boot selection when BOOT0 is low; it is not an instruction to leave PB2 floating. With BOOT0 high, BOOT1 low selects the factory bootloader and BOOT1 high selects SRAM. Check both pins when troubleshooting STM32 serial bootloader entry.

Enter the UART bootloader and return to user Flash

Wire the board power and common ground according to its schematic. Connect a serial adapter with compatible logic levels: adapter TX goes to MCU PA10, and adapter RX goes to PA9. The STM32F103C8T6 factory bootloader uses USART1, with PA10 as RX and PA9 as TX.

With the serial hardware already connected, set BOOT0 high and BOOT1 low, then perform a hardware reset or power cycle. Keep both levels stable through the sampling window after reset is released. In the programming software, use the correct serial port and factory bootloader protocol to open the UART connection. Do not assume that a custom bootloader uses the same protocol.

After programming and verifying the image, set BOOT0 low and reset again to run the application in user Flash. Leaving BOOT0 high and BOOT1 low makes the next reset enter the factory bootloader again. Changing the BOOT-pin levels while the MCU is running does not itself restart boot selection.

What to check if programming or startup still fails

If the programming tool cannot connect, check the reset sequence, actual BOOT-pin levels, TX/RX wiring, common ground, logic-level compatibility, and whether another application has the serial port open. Also check whether other board circuitry affects PA9 or PA10. Correct BOOT settings do not guarantee a UART response, and one failed connection does not establish that the MCU is faulty.

Successful programming does not guarantee that the application will run. First confirm that BOOT0 is low and the MCU has been reset. Then check that the programmed address matches the project's linker configuration, followed by the vector table and startup code. These instructions apply to STM32F103C8T6; check the boot options and factory bootloader interfaces for other families separately.

Technical basis: ST data sheet DS5319 Rev20, boot configuration and pin descriptions; reference manual RM0008 Rev21, Section 3.4; and application note AN2606 Rev70, Section 21.1 for medium-density devices.

For a programming or startup review, provide the full part number, BOOT-pin wiring, and programming interface. Include the package, operating temperature, quantity, and required delivery date in your request. To discuss sourcing STM32F103C8T6 or another part number, send these details through the SUNTEC inquiry form.