Skip to main content
Graduate
April 30, 2025
Question

STM32H503 UART bootloader read protection

  • April 30, 2025
  • 1 reply
  • 878 views

Hello everyone, please advise, I encountered difficulties when removing and installing memory read protection when programming h503 via the built-in UART bootloader.

I use commands {0x92, 0x6D} to remove read protection and {0x82, 0x7D} to install read protection. On F103 these functions work correctly, on h503 they do not.

At the same time, on 503, memory erase, ID reading and programming operations work correctly, the h503 microcontroller is flashed and after rebooting the new program takes effect.

Perhaps I am sending incorrect read protection codes? Or is my mistake in something else?

    This topic has been closed for replies.

    1 reply

    Super User
    April 30, 2025

    Use the GET COMMAND command to see which commands are supported.

    The H5 does not have a RDP HW feature.

    TDK_0-1746041340850.png

     

    Mike1992Author
    Graduate
    May 1, 2025

    Thank you for your answer, sorry to hear this.. Maybe you have a solution on how to set read protection directly from the application?

    Super User
    May 1, 2025

    The STM32H5 doesn't have legacy RDP, it has product states which are significantly more complicated. There isn't a product state that is equivalent to RDP 1. So you can't do that.

    TDK_0-1746103718957.png

     

    I suggest looking at your options in the reference manual. You can apply these via option bytes the same way you would apply RDP 1 on the older chips.

    Also see:

    How to enable RDP-like product state flash protect... - STMicroelectronics Community