USART Bootloader get checksum command doesn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-12 5:34 AM - edited ‎2024-12-12 7:30 AM
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
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-12 5:40 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-12 5:47 AM
It is 0xB2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-12 11:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-12 1:24 PM
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.
Up vote any posts that you find helpful, it shows what's working..
