Skip to main content
Willunen
Associate III
January 11, 2017
Question

Update tool ST-LINK gives old firmware?

  • January 11, 2017
  • 7 replies
  • 4823 views
Posted on January 11, 2017 at 09:44

Hi, newby here. I recently bought two discovery boards from Conrad.nl.

One with a STM32F100RTB and the other with a STM8S003K3T.

Now I wanted to upgrade the firmware of the integrated ST-LINK modules on the Discovery boards. According to the documentation :

On ST-LINK/V2-1 boards, upgrade firmware to the version V2J28M

On ST-LINK/V2 boards, upgrade firmware to the version V2J28S7.

On ST-LINK boards, upgrade firmware to the version V1J13S4.

But in my case the STM32 board is updated to firmware V1.JS0

And worse, the STM8 board to firmware V1.J0.S4

This version seems to be too old for the ST-LINK Utility.

What am I doing wrong?

Regards,

Wilko Lunenburg

Note: this post was migrated and contained many threaded conversations, some content may be missing.
    This topic has been closed for replies.

    7 replies

    Khouloud GARSI
    Technical Moderator
    January 11, 2017
    Posted on January 11, 2017 at 12:47

    Hi

    Lunenburg.Wilko

    ,

    What is the version of the firmware upgrade application you are using?

    Please make sure to use the last one available on ST website:

    https://my.st.com/content/my_st_com/en/products/embedded-software/development-tool-software/stsw-linklicense%3d1484131860html

    .

    If you were not using the last version, please remake the upgrade procedure and tell me to which version your firmware is upgraded?

    Khouloud.

    Willunen
    WillunenAuthor
    Associate III
    January 11, 2017
    Posted on January 11, 2017 at 13:39

    Hello Khouloud,

    Yes, I did use the lastest version of the firmware upgrade application. To be absolutely sure, I downloaded the application again via your link. But the results are the same.

    Regards,

    Wilko

    Tesla DeLorean
    Guru
    January 12, 2017
    Posted on January 12, 2017 at 17:17

    This is an older version of just the update, you might be able to stage the older unit through this and update to most current from there.

    https://drive.google.com/open?id=0B7OY5pub_GfIR2taa1YzWEJtTmM

     
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Khouloud GARSI
    Technical Moderator
    January 12, 2017
    Posted on January 12, 2017 at 14:52

    Hi Wilko,

    0690X000006062RQAQ.png

    Refereing to the technical note

    http://www.st.com/content/ccc/resource/technical/document/technical_note/group0/30/c8/1d/0f/15/62/46/ef/DM00290229/files/DM00290229.pdf/jcr:content/translations/en.DM00290229.pdf

    section3:
    • V : major version ID. (1 for ST-LINK)
    • J: version for STM32 debug interface (JTAG and SWD protocols). 

           In your case J=13 (this is the most recent version for the STM32 debug interface.)

    • S: version for STM8 debug interface (SWIM protocol).

      In you case, S=0 -> This means that the STM8 debug interface is not supported by your board.

    -> The upgrade was done conveniently: you have got the last version of 

    STM32 debug interface but the STM8 debug interface is not supported.

    Khouloud.

    AvaTar
    Senior III
    January 12, 2017
    Posted on January 12, 2017 at 15:49

    That might explain the result, but seems not very helpful for the O.P., though.

    I interpret you post that he probably needs to download a separate update for his STM8 board, and the 'SWIM' debug interface.

    BTW, I would scrap the ST_LINK V1 altogether, it is a complete failure. I rather use newer, external ST-Link V2 board to debug my old VL-Discoveries ...

    Tesla DeLorean
    Guru
    January 12, 2017
    Posted on January 12, 2017 at 17:22

    As I recall the updaters contain multiple images, I've attached a link to my mirror of one of the older ones, but have a collection.

    Would agree that the V1 is rather sad, and might not be supported by newer drivers/dlls moving forward, I remember having to fight one of my systems back in the day to get things working, but that's been a couple of years ago.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Khouloud GARSI
    Technical Moderator
    January 12, 2017
    Posted on January 12, 2017 at 16:29

    Hi Avatar,

    I interpret you post that he probably needs to download a separate update for his STM8 board, and the 'SWIM' debug interface.

    In the previous post, I was talking about the STM32VLDiscovery (

    STM32F100RB MCU) and not the STM8 board.

    Khouloud.

    AvaTar
    Senior III
    January 12, 2017
    Posted on January 12, 2017 at 16:32

    The OP mentioned a STM8S003K3T in his first post. I suppose that one has a SWIM interface, and need a different firmware.

    Khouloud GARSI
    Technical Moderator
    January 12, 2017
    Posted on January 12, 2017 at 17:58

    Hi,

    The OP mentioned a STM8S003K3T in his first post.

    And worse, the STM8 board to firmware

    V1.J0.S4

    For the STM8 board, t

    he STLink firmware is also upgraded correctly:
    • V : major version ID. (1 for ST-LINK)
    • J=0 ( because

      STM32 debug interface is not supported on the board)

    • S: version for STM8 debug interface (SWIM protocol).

      Here S=4 -> which

       is the most recent version for the STM8 debug interface.

    Khouloud.

    Willunen
    WillunenAuthor
    Associate III
    January 12, 2017
    Posted on January 12, 2017 at 20:13

    For the STM8 board, the STLink firmware is also upgraded correctly:

    That may be so, but the ST-Link utility V4.0.0.0 doesn't want to speak with it saying

    'Old STLink firmware detected. Please upgrade it' 

    And that, I cannot.

    Wilko

    Khouloud GARSI
    Technical Moderator
    January 13, 2017
    Posted on January 13, 2017 at 12:50

    Hi Wilko,

    The STLink utility supports only the STM32 devices.

    For your STM8, you should use : STVP (for programming) and the STVD (for debug).

    You can download those tools from ST website. Just download

    https://my.st.com/content/my_st_com/en/products/development-tools/software-development-tools/stm8-software-development-tools/stm8-programmers/stvp-stm8.license%3d1484306677015.html

    , it enables you to get the 2 tools simultaneously.

    Khouloud.

    Willunen
    WillunenAuthor
    Associate III
    January 13, 2017
    Posted on January 13, 2017 at 14:15

    Hi Khouloud,

    This is what ST claims on her website:

    The ST-LINK is an in-circuit debugger and programmer for the STM8 and STM32 microcontroller families. The SWIM and JTAG/SWD interface is used to communicate with the STM8 or STM32 microcontroller located on your own application board.

    And something similar is said about V2. But that is (probably?) only valid for the stand alone versions of the ST-LINK.

    For the moment I'll concentrate on the STM32-Discovery board. (And I'll buy a stand alone programmer/debugger.)

    Wilko

    Khouloud GARSI
    Technical Moderator
    January 13, 2017
    Posted on January 13, 2017 at 15:02

    Hi Wilko,

    You are confusing between:

    Khouloud

    Lula Nord
    Visitor II
    May 2, 2017
    Posted on May 02, 2017 at 17:46

    Hi...i am a new user here. As per my knowledge ST offers/offered a stand-alone version of the ST-Link for a very affordable price. I got one some years ago for the price of about 3 Discovery boards. Not sure if it's still available and in that price region. And, it's only worthwhile if you want to dig deeper into the STM8 world.

    http://www.7pcb.com

    Tesla DeLorean
    Guru
    May 2, 2017
    Posted on May 02, 2017 at 18:30

    Certainly a lot of boot-leg ones available readily in the $4-8 range these days.

    http://www.ebay.com/itm/ST-LINK-V2-ST-LINK-Debugging-Programmer-Emulator-Download-Manager-STM8-STM32-/272451660414?hash=item3f6f626a7e:g:zocAAOSwHMJYLEGe

     
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..