cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F3 discovery board bootloader

arganasss
Associate II
Posted on January 07, 2014 at 17:12

Hello everyone, i want to get bootloader working through USART protocol. I looked to the datahseet and it says, that BOOT0 should be 1, and BOOT1 0. Since BOOT1 here isnt and I/O pin, it has to be programed and i found out, that it is an optinional byte, but by default it should be 0. So all i need to do is to connect BOOT0 pin to 3V supply and push reset button, and system memory boot mode should be selected. I downloaded the STM flash loader program but i cant get that to work because i always get an answer: No response from the target, the Boot loader cannot be started. Could someone explain me what im doing whrong here and why bootloader doesn't start? Thanks in advance.

#!telegraphing
16 REPLIES 16
arganasss
Associate II
Posted on January 13, 2014 at 15:12

Yeah i understand, i should probably forget about flashing my board with this STMFlashloader tool. So i recently asked you is there any other ways i could program my microcontroller flash memory via USART, and you respondend:

1)

You want to either talk to the chip directly via the serial port, or put a serial port monitor on your system and observe the to-and-fro between the software and the chip.

2)Perhaps the command line app (and the source) would provide more insight.

Since i have lack of knowledge on programming microcontrollers, could you point me to information where i can find it explained or you could explain it a little bit what do you mean by those two points of your comment? How do i do that? Thanks in advance for your help.

BTW: Just out of curiosity, is it possible to enter bootloader from my code? 

arganasss
Associate II
Posted on January 14, 2014 at 14:39

And also, do you have any clue i can't make to work the command-line app of the flashloader?

arganasss
Associate II
Posted on January 15, 2014 at 14:56

Hey, for everyone who will read this post, when searching information about stm32 bootloader, it is possible to run bootloader from your own program, even without a reset button which is on the board.

Posted on January 15, 2014 at 17:35

The USART protocol is described here

http://www.st.com/st-web-ui/static/active/jp/resource/technical/document/application_note/CD00264342.pdf

http://www.st.com/st-web-ui/static/active/jp/resource/technical/document/application_note/CD00264342.pdf

Tools like RealTerm can inject hex manual, or you can write app code to do it programmatically.

There are several ways to monitor the serial port

http://www.serial-port-monitor.com/

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
arganasss
Associate II
Posted on January 15, 2014 at 23:54

Thanks for your help Clive. I think i will solve this one out now.

manoj
Associate II
Posted on January 17, 2015 at 11:51

Flash Loader Demonstration error on (stm32f407 discovery board)

sir i used PB10 and PB11  as serial communication(USART 3)   and connect BOOT 0 pin with VDD and PB2(boot 1) to GND. But its not working and there is a error...............

and also click on Remove protection but warning is still not removed .

 plz help.............

0690X00000605ZAQAY.png

Posted on January 17, 2015 at 14:35

Flash Loader Demonstration error on (stm32f407 discovery board) sir i used PB10 and PB11  as serial communication(USART 3)   and connect BOOT 0 pin with VDD and PB2(boot 1) to GND. But its not working and there is a error...............

 

 

and also click on Remove protection but warning is still not removed .

 

 plz help.............

And did you read any of the suggestions in the thread before posting against it?

Try connecting manually and report results.

Try using a PC with a built in serial port.

Try using 9600 8E1 (EVEN PARITY).

Try explain how the serial circuit is wired (STM32F4 to PC)

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