[SOLVED] STM32 CPU in Secured state

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] STM32 CPU in Secured state

    Hello,

    Is there any way that allows to detect secured (protected to Level 1) CPU?
    Because if I try to connect to locked CPU using J-Flash. It automatically unlocks CPU (which cause full erase of CPU contents) .
    I think this behavious is unsafe if we do not have CPU flash contents and just want to perform attepmt to read it.
    So, is there any way to detect or not erase CPU if it is secured, but just tell user "CPU is locked"?

    Many thanks
  • zend wrote:

    I think this behavious is unsafe if we do not have CPU flash contents and just want to perform attepmt to read it
    Why would you be attempting to read it :?:

    The whole point of this protection is precisely to prevent unauthorised reading :!:

    I think this is exactly the behaviour that whoever set the protection would want to be seeing!
  • sorry, but no.

    If I sell some product of mine, I'm not sure someone could TRY to make readout of CPU flash contents.
    In fact, its not so bad. Its closed. That's all.
    But, if he or she tries to do so, it will damage contents of the FLASH! And device became unusable.
    It's done without any confirmation or smth. that tries to stop user of damaging the device.
    So, again, I tell you - this is unsafe behavior of the reading program.
    It must WARN! not DAMAGE! Feel differnce?
  • Hello,

    Thank you for your inquiry.
    I assume you run J-Flash on windows. Then you should get a pop-up asking you if you want to unsecure the detected locked device via mass erase or not.
    If you select no, no unsecure will be executed, but depending on the target device connect might also not work then.

    If you do not get such pop-up you probably selected the checkbox "don't ask again" at some point in time. That setting will be saved in registry.
    How to reset it is explained here:
    wiki.segger.com/Secured_ST_device_detected

    I hope that helps.

    Best regards,
    Nino
    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: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello,

    Great to hear that you are up and running again.
    As the initial question has been answered this thread will be closed now.

    Best regards,
    Nino
    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: segger.com/ticket/

    Or you can contact us via e-mail.