cancel
Showing results for 
Search instead for 
Did you mean: 

How should i use UART to download firm? the mcu is STM32F401VBH6,and i have sent the boot0=0. the download tool is stm32cube programmer.

Pwang.21
Associate II
 
8 REPLIES 8
Mike_ST
ST Employee

Hello,

I think that BOOT0 should be 1 to allow download with UART.

Pwang.21
Associate II

The booto now is 1,but it still show this error:

Mike_ST
ST Employee

What error ?

Pwang.21
Associate II

The below:

0693W000007ZjwmQAC.png

Has the chip/board been test and programmed via JTAG pins?

Which UARTS and pins do you have connected, and too what?

Are other devices connected that might be signalling on other pins?​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Mike_ST
ST Employee

Please check that you are following Application note 2606:

For STM32F401xB:

  • Boot0(pin) = 1 and Boot1(pin) = 0
  • USART1 or USART2
  • 8-bits, even parity and 1 Stop bit

My configuration as below:

Boot0=1,boot1 not configure

USART1

8-bits, even parity and 1 Stop bit

could you help to confirm boot1=0 is necessary?

This is what section 27.1 of AN2606 is saying: "The STM32F401xB(C) bootloader is activated by applying pattern1"

If I remember well, if boot1 is pulled to 1, the MCU boots from RAM.