Skip to main content
Associate
December 12, 2024
Question

USART Bootloader get checksum command doesn't work

  • December 12, 2024
  • 3 replies
  • 831 views

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

 

 

3 replies

ST Employee
December 12, 2024

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 

Associate
December 12, 2024

It is 0xB2

TDK
Super User
December 12, 2024

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""."
Tesla DeLorean
Guru
December 12, 2024

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 VenmoUp vote any posts that you find helpful, it shows what's working..