cancel
Showing results for 
Search instead for 
Did you mean: 

USART Bootloader get checksum command doesn't work

crisay794266
Associate II

Hello,

I am using the STM32G070RB and can start the bootloader. I am sending the command get checksum 0xA1 + 0x5E but I receive a NACK Byte directly after that. So I assume that this has to do with the protection active, since the flow diagram in the AN3155 shows only this path.

So in order to fix this issue I was thinking to send the readout unprotect command first and then the get checksum command. I did this but it doesn't work either.

 

Please note that I pull the Boot0 Pin high again an I am able to start the bootloader again after the reset caused by readout unprotect command.

 

Any help would be appreciated

 

 

4 REPLIES 4
STea
ST Employee

Hello @crisay794266 ,

Can you precise the bootloader version of MCU this can be done by checking the bottom right window when connecting via CubeProgrammer.
Regards 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

It is 0xB2

TDK
Guru

Run the GET COMMAND command to see if the get checksum command is supported.

I recall them leaving out some commands due to space on the smaller chips.

 

If you feel a post has answered your question, please click "Accept as Solution".

Presumably if you unprotect the memory, it will mass-erase the content, so not going to be helpful to checksum content.

As TDK indicates you should be able to get the loader to enumerate the supported commands.

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