[SOLVED] STM32L151RE - JFlash / Autoprogram with SecureChip don't boots target

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

  • [SOLVED] STM32L151RE - JFlash / Autoprogram with SecureChip don't boots target

    Hi all,

    we have a problem with our taget board to secure the chip after flashing.
    1. Try
    The target will be flashed from the commandline-option with succes and boots. Afterwards we secure the chip with JFlash.
    The target stalls and never comes up again, even after a reset at NJRST-pin.
    2.Try
    AutoProgram with JFlash
    SecureChip plus start application is enabled, but target never boots...
    Note: The target is powered all the time (!) by a HLC Hybrid Capasitor Layer, so a real POR will not be performed.
    If we disconnect the power, what we won't do for production, the target starts again !

    Question:
    - Is there a possibility (function) in the commandline (script)-version to do that (SecureChip) ?
    - With JFlash-GUI-version, what can the reason for a non booting target ?
    - Is always a real POR-reset needed for stable boot up ?

    Thanks in advance

    STM32L151RE
    JFlash 5.00g
    JLink Plus v9.3
  • Hello,

    - Is there a possibility (function) in the commandline (script)-version to do that (SecureChip) ?
    Yes, command line option "-securechip"

    - With JFlash-GUI-version, what can the reason for a non booting target ?
    - Is always a real POR-reset needed for stable boot up ?
    After setting the STM32's read protection every memory read request generates a bus error. This is what happens if the "Secure chip" option is used, the read protection is set immediately and a Power-on-reset is needed to start the application. We support a great number of different devices with different behaviors and so we must discuss internally if there will be made corresponding changes.

    For now we recommend to set the read protection within the firmware or using the exit steps.
    For using the exit steps please refer to the JFlash manual ch. 4.1.3.8

    Best regards,
    Roman
  • Thank you for your response.

    Yes, please add that to your J-Link update notification list.

    In the script-version, what levels of "secure-chip" are supported ? (STM32L151RE)
    Level 1 only I think... !

    Level 2 with full security (irreversible) only inside code ...?!

    Best regards
  • Hi,

    In the script-version, what levels of "secure-chip" are supported ? (STM32L151RE)
    Level 1 only I think... !

    Correct. Irreversible (level2) security can be set using the exit steps that were mentioned by Roman.

    Yes, please add that to your J-Link update notification list.

    Done.

    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.