RDP Password Provisioning on STM32U5

  • Hi I'm running into an issue when provisioning the RDP keys for the STM32U5
    The reference manual for the STM32U5 says that if an RDP key has not been set, you can set the key after the RDP level has been set to either 0.5 or 1.
    I am using the DevPro exe to set the RDP key by using the following command


    Code
    DevPro.exe -operation SetPassword -if SWD -speed 4000 -SetConfigVal "Level=RDP1" -SetConfigVal "Password=deadbeefdeadbeef" -ScriptFile PCode_DevPro_ST_STM32U5.pex

    https://kb.segger.com/ST_STM32U5_Option_Bytes_Programming

    The issue I am having is that this command is not working when the MCU is in RDP level 0.5. But it does work when the MCU is at RDP level 1.

    Does anyone know if this a bug in devpro?

    thank you

  • Hello,

    Setting the password for RDP level 0.5 is not supported by the DevPro.
    I will check internally whether it makes sense to add support for this level or to adjust the error message for better clarity.

    Best regards,
    Simon

    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

  • Hi,

    Thank you for the quick response!

    I just want to make sure we are talking about the same thing.
    There are 2 keys (OEM key1 and key2 )that can be provisioned for RDP regression on the stm32u5.

    When the device is in RDP level 0 or 1, I can provision both keys fine using the devpro tool.
    But when the device is in RDP level 0.5, the tool is failing to provision both keys.

    When you say " Setting the password for RDP level 0.5 is not supported by the DevPro"
    Do you mean when the device is in RDP level 0.5, key provisioning is not supported? or Are you referring to provisioning the specific key that is used for RDP 0.5 regression?


    I have attached a table from the stm32u5 reference manual that can provide some more context.

    Thank you,

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!