AnsweredAssumed Answered

STM32F0308DISCOVERY Bootloader Go-Command

Question asked by Franz Wegerer on Jun 6, 2014
Latest reply on Jun 6, 2014 by Clive One

Hi

The bootloader GO command doesn’t work as expected. Generally AN3155 is wrong here, because the second ACK after the address isn’t send also on other chips (STM32F2, STM32F4, …), but the jump works there.

Test system:

Hardware:
STM32F0308DISCOVERY
http://www.st.com/web/en/catalog/tools/PF259100

Firmware
http://www.st.com/web/en/catalog/tools/PF259447#
-> STSW-STM32140 programmed with JTAG 

Serial tracing after reset (bootloader mode enabled)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
           

No

           
           

Packet

           
           

Start Bit

           
           

Data bytes

           
           

Parity Bit

           
           

Stop Bit

           
           

Error

           
           

Start Time

           
           

End Time

           
           

1

           
           

Data

           
           

0

           
           

7F

           
           

1

           
           

1

           
           

-

           
           

101,9ms

           
           

102ms

           
           

 

           
           

Enter bootloader

           
           

1

           
           

Data

           
           

0

           
           

79

           
           

1

           
           

1

           
           

-

           
           

102ms

           
           

102,1ms

           
           

2

           
           

Data

           
           

0

           
           

21

           
           

0

           
           

1

           
           

-

           
           

134,3ms

           
           

134,4ms

           
           

 

           
           

Start Go

           
           

3

           
           

Data

           
           

0

           
           

DE

           
           

0

           
           

1

           
           

-

           
           

134,4ms

           
           

134,5ms

           
           

 

           
           

 

           
           

2

           
           

Data

           
           

0

           
           

79

           
           

1

           
           

1

           
           

-

           
           

134,5ms

           
           

134,6ms

           
           

4

           
           

Data

           
           

0

           
           

08

           
           

1

           
           

1

           
           

-

           
           

154,2ms

           
           

154,3ms

           
           

 

           
           

Send Address

           
           

5

           
           

Data

           
           

0

           
           

00

           
           

0

           
           

1

           
           

-

           
           

154,3ms

           
           

154,4ms

           
           

 

           
           

 

           
           

6

           
           

Data

           
           

0

           
           

00

           
           

0

           
           

1

           
           

-

           
           

154,4ms

           
           

154,5ms

           
           

 

           
           

 

           
           

7

           
           

Data

           
           

0

           
           

00

           
           

0

           
           

1

           
           

-

           
           

154,5ms

           
           

154,6ms

           
           

 

           
           

 

           
           

8

           
           

Data

           
           

0

           
           

08

           
           

1

           
           

1

           
           

-

           
           

154,6ms

           
           

154,7ms

           
           

 

           
           

 

           
           

3

           
           

Data

           
           

0

           
           

79

           
           

1

           
           

1

           
           

-

           
           

154,7ms

           
           

154,8ms

           
           

Confirm receiving  address and checksum

           
           

 

           
           

Missing confirmation for valid address and checksum

           

After that sequence, the MCU stays in bootloader!

 

referencedmanuals
AN2606 Application note STM32™ microcontroller system memory boot mode Rev 5
AN3155 Application note USART protocol used  in the STM32™ bootloader Rev 17

 Additional information

WR 7F
RD 79
WR 00 FF
RD 79
RD 0B
RD 31
RD 00 01 02 11 21 31 44 63 73 82 92
RD 79  

Version: 3.1
Supported Commands:
ExtendedEraseMemory   True
EraseMemory   False
ReadMemory   True
ReadoutProdect   True
Go   True
ReadoutUnprodect   True
WriteProdect   True
WriteUnprodect   True
WriteMemory   True
GetID   True
GetVersionAndReadProtectionStatus   True
GetVersionAndAllowedCommands   True

Any ideas would be most welcome.

Thanks

Outcomes