Skip to main content
AElma.1
Associate II
Dec 9, 2021 2:31 PM UTC
Question

Hi ST community, I would like to use CH340G USB UART converter for programming STM32F446RE Microcontroller. How can I do this? Any advice or idea about this? Thx a lot. :)

Normally I use ST-link for programming. But I can not see data in serial port on computer. I use TMS,TCK,RST pins for programming. I would like to solve this issue for my new design. Could help me please? What I need to learn exactly ?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
Dec 9, 2021 2:58 PM UTC

Review App Note AN2606 to understand the supported mode and pins for the ROM based System Loader

To program via a COM port / UART you could use the STM32 Cube Programmer application in UART/COM mode.

You'd enter the System Loader on the F446 by pulling the BOOT0 pin HIGH and reseting the device.

The protocol is described in other App Notes, AN3155 as I recall.

https://www.st.com/resource/en/application_note/cd00167594-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf

https://www.st.com/resource/en/application_note/cd00264342-usart-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Peter BENSCH
ST Technical Moderator
Dec 9, 2021 3:03 PM UTC

You can use the STM32CubeProgrammer together with the correct settings for the boot sector which can be found in the AN2606, section 34 and table 2. For the STM32F446 the pattern is 1: Boot0 (pin) = 1 and Boot1 (pin) = 0.

After a reset, the STM32CubeProgrammer should be able to program via the USB-UART converter.

Regards

/Peter

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.