cancel
Showing results for 
Search instead for 
Did you mean: 

STM32VL Discovery bootloading using USART1 problem

muhammaduzairafzal45
Associate III
Posted on January 10, 2013 at 07:49

I want to program STM32VL Discovery via USART1. I am using ''Flash Loader Demonstrator V2.6''. I have connected BOOT0 pin to 3V directly and BOOT1(PB.02) to GND. I have connected USART1  PA.09(Tx) to PC Rx and PA.10(Rx) to PC Tx via FTDI USB to UART converter which is working fine. Problem is that the Flash Loader Demonstrator is unable to connect with STM after reset.I think STM enters into System booloader mode correctly but cannot communicate with PC. I have also tried to send 0x7F manually through hyper terminal but STM is not returning any response at all. I have tried all baud rates with even parity,1 stop bit configuration. Secondly I do not understand if there is any need to use pull up resistors in circuit especially on USART pins.Please tell me the exact method for bootloader. Thanks in advance.

1 REPLY 1
muhammaduzairafzal45
Associate III
Posted on January 10, 2013 at 10:52

Ok, I have succeded in programming flash. Problem was with the FTDI USB to UART Tx and Rx pins connection with USART1 Tx and Rx. Connected Tx with Tx and Rx with Rx and works fine now.  Correct sequence for STM32VL discovery is:

1)Power on board.

2)connect FT232 converter Tx pin with USART1 Tx(PA.09) pin

3)connect FT232 converter Rx pin with USART1 Rx(PA.10) pin

4)connect BOOT0 pin to 3.3v to go to System Boot loader. No need to connect BOOT1(PB.02) pin to any logic level.Just keep it floating.

5)press reset button on development board.

6)run Flash boot loader demonstrator. set parity even and baud rate to 9600 and click next.Now program flash

7)Now again leave BOOT0 pin floating(On board it is grounded already) in order to run program and press reset button.