cancel
Showing results for 
Search instead for 
Did you mean: 

STM8AF Bootloader UART write memory

Alexandre Picard
Associate
Posted on December 01, 2017 at 03:24

I'm currently programming a bootloader for my project. I work on a STM8AF board and I have a problem with the write memory command.

I follow each instruction in the UM0560 user manual. My problem appears at the end of the sequence, I never receive the last ACK or NACK.

Example (I use the UART peripheral) :

-I send my first byte 0x31 and 0xCE his complement.

-The device answer with ACK (0x79).

-I send the address 0x00 00 80 00 and the checksum 0x80.

-The device answer with ACK.

-I send the number of bytes, the data 0x01 0x53 and the checksum 0x52

And here the device stop answering here

I check in ST Visual Programmer, the ROP byte is disable and the data is never written.

Attached, my trace in Hercules and the sequence in UM0560 user manual.

Thanks,

Alexandre

#stm8a #uart #bootloader #write-memory
1 REPLY 1
Erwan YVIN
ST Employee
Posted on December 01, 2017 at 11:13

Hello Alexandre ,

i am moving this post on STM8 Side ;-)

          Best regards

                                                            Erwan