Using JLinkSTM32 without GUI

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

  • Using JLinkSTM32 without GUI

    Hello,

    I am trying to use the JLinkSTM32 to unlock/erase my device and i want to automate it with a script. The problem is that is gives the pop-up warning me about what it does and i need to turn that off.
    I found a forum post that is basically what i want to do, and like many computer problems it is 5 years old with no conclusion :(
    JLinkSTM32 - clear/erase device data


    I am really just looking for the easiest, but stable, means of executing JLinkSTM32.exe without any graphic user interface (purely from command line/script). Baring that, a quick explanation and directions to some resources (beyond the user guide) on how to do this, please.

    Thank you.
  • Hello,

    We have changed the STM32 Utility in the latest version of the J-Link software, so that users have to select the correct device family on start-up as auto detection does not longer work properly because ST always changes the device IDs and the unlock sequences. So far, the device family must be selected by user interaction during execution but we will add the opportunity to pass the selection via command line arguments. We will use this as indicator for "no interaction" mode which means that no dialog will pop up. We plan to have this extension available by the end of this week.

    Apart from this, the J-Link SDK would allow you to implement such a functionality on your own. One big advantage of the J-Link SDK is that in case of your requirements change, you can easily adapt the software accordingly. For further information regarding the J-Link SDK, please refer to segger.com/jlink-sdk.html.

    I will let you know, once a version with the updated STM32 utility will be available.


    Best regards
    Erik
    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.
  • Thank you very much for getting back to me.

    It looks like the SDK can be run on mac OS X, is that right? I was under the impression that there was no means of unlocking/wiping STM32 devices from a mac using your software.
    This would be very useful as that is what i am using.

    If we (the company i work for) were to purchase the SDK, would we also have access to how the unlocking works? We have found via OpenOCD the magic needed to unlock the JTAG interface at the scan chain level, but its unclear if your SDK has access to this level of API.

    We would really like this feature to save us having to run a virtual windows machine on all developers Mac's (although its a reasonably easy option) - happy to contribute the magic back to the community or Segger when we have it working.
  • It looks like the SDK can be run on mac OS X, is that right?
    Correct.
    I was under the impression that there was no means of unlocking/wiping STM32 devices from a mac using your software.
    We already have on our internal ToDo to add the STM32 unlock utility to the mac OS X and Linux package but so far without any fixed time schedule.
    If we (the company i work for) were to purchase the SDK, would we also have access to how the unlocking works?
    How unlocking works, is described in the official STM32 manual. There is no function like "unlock kinetis" which automatically performs the unlock sequence. Within the STM32 Utility we do the same. We perform the sequence from the manual (several read / writes to memory mapped registers). Anyhow the J-Link SDK also allow communication on the scan chain level.

    Furthermore, we can provide you with the source code of the STM32 Utility, but we have to charge for it. If you are interested in either the J-Link SDK and optional in the STM32 utility sources, please write to segger.com/support/technical-support/, so we can forward the e-mail internally to provide you with an offer.

    - Erik
    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.