[SOLVED] Read protected STM32F051 and Jlink Commander

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

  • [SOLVED] Read protected STM32F051 and Jlink Commander

    I am trying to set up a script for Jlink Commander to program STM32F051 parts. The script I have been using is:

    device STM32F051C8
    r
    h
    erase
    Sleep 1000
    r
    h
    loadfile "lccomp.hex"
    Sleep 1000
    r
    g
    Sleep 1000
    qc

    When it encounters a device that has already had read protection enabled, it brings up the 'Active read protected STM32 device detected' dialog box. Clicking 'Yes' in the dialog does correctly erase the whole part, however nothing beyond that point in the script works. Running the script one line at a time, I find that the dialog comes up as soon as the device STM32F051C8 line is executed. At this point the only way I have found to proceed with the device is to power it down and back up again, now the script works with the device as if it were a new blank device. For what its worth, running IAR embedded workbench to program the device and then start the debugger brings up the same dialog box, however it succeeds in programming the device and proceeds into the debugger when 'Yes' is clicked on in the dialog box. Have tried with a few recent versions and am currently on V5.02f. This script seems to work just fine on unprotected blank parts.
    On an only partially related note, is there somewhere that the changes for the little sub versions such as going from 5.02e to 5.02f are documented? It seems that release notes on the web page are a bit behind what is being posted for download.

    Gus
  • Hi Gusg,

    We will take a look at this behavior in the next days.


    If you need up-to-date release notes, i would suggest to subscribe to the J-Link (Beta) notification system.
    Once subscribed, your will receive messages like this with each new version released:

    Dear [NAME],


    We are pleased to announce the availability of a new version of the J-Link software and
    documentation pack V5.02f with the following changes:

    - DLL (Linux): In case multiple J-Links were connected to the same PC, an error message that no connection at all could be established, was thrown.
    As long as dialogs are not available under Linux, the DLL will connect to the first J-Link found.
    - DLL (OS X): In case multiple J-Links were connected to the same PC, an error message that no connection at all could be established, was thrown.
    As long as dialogs are not available under OS X, the DLL will connect to the first J-Link found.
    - DLL (SDK): Doc: Prototype of JLINK_DownloadFile() corrected.
    - DLL: Automatic JTAG speed detection when using Rowley Crossworks did not work properly on ARM7/9 devices with adaptive clocking support and newer J-Link V9 models. Fixed
    - DLL: Connect under reset did not work properly for ST STM32L4 series devices. Fixed.
    - DLL: Flash Programming did not work properly on Analog Devices ADucM360 devices. Fixed.
    - DLL: Latest version of Keil MDK-ARM changed device naming scheme for some devices by adding ":<Core" after the device name. This could lead to the error message "The selected device is unknown by this version of the J-Link software". Fixed.
    - DLL: Renamed STR9 "Bootbank: 1" device selections to "Bootbank 1"
    - DLL: The O.K. button of the RX ID code verification window was displayed incorrectly. Fixed.
    - DLL: Write protection detection did not work properly for Freescale Kinetis KV5x (Cortex-M7) series devices. Fixed.
    - J-Flash: Renamed STR9 "Bootbank: 1" device selections to "Bootbank 1"
    - J-Flash: Renesas Synergy R7FS124 devices were missing. Fixed.
    - J-Flash: Renesas Synergy R7FS3A7 devices were missing. Fixed.
    - J-Flash: Renesas Synergy R7FS7G2 devices were missing. Fixed.


    The software can be downloaded from the following location:
    segger.com/jlink-software.html

    Best regards

    Your Segger Team


    Would you like to be added to the J-Link software update notification list, so you get informed automatically when the new version becomes available?
    In case you want to subscribe to it yourself: segger.com/notification/subscribe.php?prodid=7,94

    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 Gus,


    this issue should be resolved in Version 5.02g of the J-Link software & documentation pack.

    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.