[SOLVED] Unsecure STM32F0 by Flasher Portable by PROG button

  • [SOLVED] Unsecure STM32F0 by Flasher Portable by PROG button

    Hi,
    I have to reprogram level1 STM32F0 controllers that are built in devices with new Software Version.
    Now I tried to create a .jflash file to reprogram the STM32F0 with the new Software using the portable programmer by pressing the PROG button.
    But Flasher Portable hung up with "Active LED" flashing green.

    If I do "unsecure chip" via Segger J-Flash Software this works well.
    Even programming with Flasher Portable is no Problem with this unsecured chip.

    Is it possible to create a .jflash Project that enables unsecure chip (reset Level 1 protection) for STM32F0 only by the Flasher Portable device by pressing the PROG button?
    I tried different commands in the .jflash File (see example attached) but no success.
    Many thanks for help.
    Files
  • Hi,


    we have devoted a wiki page to this topic: wiki.segger.com/STM32

    Does the provided J-Flash Lock project work for you?


    Best regards,
    Niklas
    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 Johannes,


    I just gave it a try using STM32F0_Unlock.jflash and could not reproduce any issues.
    Could you please describe a step-by step produce on how to reproduce this issue?

    I did the following:
    I:
    - secured the target MCU
    - powercylced the target

    II:
    - Opened the J-Flash project in J-Flash
    - Changed the Target MCU accordingly in the project settings
    - Opened the data file
    - Connected Flasher Portable via USB to the host PC
    - Selected File -> Download config & data file to Flasher
    - Disconnected Flasher portable from PC

    III:
    - Turned on the Flasher Portable
    - Connected Flasher Portable to target
    - Pressed PROG button
    - Programming succeeded

    Best rgards,
    Niklas
    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 Niklas,
    Problem is solved.
    Unsecure chip and reprogramming works well with STM32F0_Unlock.jflash project by pressing the PROG button.
    My mistake was:
    Change the Target MCU accordingly in the project Settings. I missed to do correct MCU settings.
    Stupid mistake, but OK now.
    Many thanks for fast and great support!
  • Hi Johannes,


    thanks for the feedback and good to hear that you are up and running!


    Best regards,
    Niklas
    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.