cancel
Showing results for 
Search instead for 
Did you mean: 

Flashing bootloader

t2
Associate
Posted on June 26, 2014 at 08:30

Hey,

I have a strange occurrence concerning with my STM32F.

I try to flash the bootloader using the FlashLoaderDemonstrator. 

I'm sending an acknowledgment to the controller but it doesn't send me the acknowledgment back.

Every second time is answers with 0x1F and in the other case it sends nothing and the flashloader times out.

I'm pretty sure I used the right settings of the BOOT0 and BOOT1 pins

Maybe this is simple question but neither the reference sheet nor the serial protocol helped me here.

BR

Tobias

.

 

3 REPLIES 3
Posted on June 26, 2014 at 14:19

The System Loader expects even parity (8E1)

The 0x7F sent is not read by the loader, but used to measure the baud rate, if the processor measures the wrong rate, then all subsequent communication will fail.

Consider if your serial port, or USB dongle, is actually working properly. Try other serial ports.

On the STM32F4-DISCO you CANNOT use USART1 PA9/PA10, due to a large bulk capacitor attached to PA9
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
t2
Associate
Posted on June 26, 2014 at 16:56

I'm using the pins PA9 and PA10

Today I tried with a USB-to-TTL converter and different true serials with maxim3232

I got the same result all the time

Posted on June 26, 2014 at 17:37

It's not clear to me what you're sending to the System Loader. Once you send the 0x7F to auto-baud the connection, and it sends you an 0x79 back, it's wait for you to send it properly constructed commands.

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/System%20Memory%20Boot%20on%20STM32L15x&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=403]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FSystem%20Memory%20Boot%20on%20STM32L15x&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=403

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