Problem with "unsecure" command

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

  • Problem with "unsecure" command

    Hi!



    I try to unsecure / erase on a chip already programmed and secured (STM32F103RCT6). I have the J-FLASH ARM license. When I execute "UNSECURE" command, I got the following message from the application: "Chip unsecured successfully - Completed after 1.782 sec".



    After, when I try to execute "ERASE CHIP" command, I got the following message from the application: "Failed to erase chip (erase error)". My chip is always secure, even after the "UNSECURE" command...



    If I want to erase my chip memory, I have to execute the JLINKSTM32.EXE program before, since "UNSECURE" command doesn't work at all!



    Do I make something wrong using JFLASHARM.EXE program???



    ___________________________________________________________________



    Secondo, I want to write an automated sequence (batch file) for production process to program our onboard chip. When starting, the application secure the chip memory, so if I want to reprogram the chip I have to unsecure it. My batch file work fine if I call the "JLINKSTM32.EXE" programm before erasing sequence. But user has to click on "OK" button to start programm, then press a key to continue the sequence... I don't want any user interaction during programming sequence...



    If I try the execute the following in my batch file "JFLASHARM.EXE -unsecure -exit", GUI returns "UNSECURE" function is not a valid command!!!



    In both case, unsecure command does not work!!!



    Is it a bug when calling "JFLASHARM.EXE" with "-unsecure" command option????



    Thank for your help
  • Hi,

    regarding the "unsecure" command in J-Flash via command line:
    Sorry, there is a typo in the UM08003.
    The commands are "securechip" and "unsecurechip"

    Which version of J-Flash do you use?
    After unsecuring: Can you read back the target memory?
    If not, is it possible to this after a power-on-reset of the device?


    Best regards
    Alex
    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.
  • Hi Alex!



    I'm using JFlashARM included in JLinkARM_V410i (J-FLASH ARM V4.10i, compiled 14:44:49 on Jan 25 2010). I think it's the latest version available on your site.



    After unsecuring, yes I'm able to read the entire chip chip memory, but unable to erase it!!!



    I read in documentation that unsecuring a chip cause a mass erase of the chip. Is that exact?? Because it's not what I see with my board!! If I want to erase a secured chip, I have to execute JLinkSTM32.exe program...



    Thanks



    Sylvain
  • Hi Sylvain,

    >>I'm using JFlashARM included in JLinkARM_V410i (J-FLASH ARM V4.10i, compiled 14:44:49 on Jan 25 2010).
    >>I think it's the latest version available on your site.
    The current release version of the J-Link software is V4.14f, the current Beta version is V4.15t.
    Could you please try out the current beta version, since we recently (I think it was V4.15c) fixed
    a problem regarding the unsecure command in combination with the STM32?

    >>I read in documentation that unsecuring a chip cause a mass erase of the chip. Is that exact??
    This is correct. Unsecuring a secured device, causes a mass erase.


    Best regards
    Alex
    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.