Skip to main content
Visitor II
June 13, 2017
Question

I need a simple utility to program stm8l15 using ST-Link V2

  • June 13, 2017
  • 2 replies
  • 1298 views
Posted on June 13, 2017 at 20:42

I need a simple utility to program an STM8L151G6U6TR using the USB ST-LINK V2 so that non-technical users in the field can upgrade the firmware in a consumer product. The MCU will always be STM8L151G6U6TR. So there should be no need to select an MCU. All I want the user to do is too load the s19 file and press PROGRAM. If the unit is programmed and verified correctly it would be indicated as such. That is it. No detailed information should be displayed, no code detail or any other info.

    This topic has been closed for replies.

    2 replies

    Graduate II
    June 14, 2017
    Posted on June 14, 2017 at 15:16

    ST maintains a list of consultants and contractors who might be able to assist with your coding task.

    http://www.st.com/en/development-tools/stvp-stm8.html

     
    Visitor II
    June 14, 2017
    Posted on June 14, 2017 at 17:28

    Clive,

    I do not see the list of consultants. Please point me to the link.

    Thanks

    Graduate II
    June 14, 2017
    Posted on June 14, 2017 at 17:53

    http://www.st.com/content/st_com/en/support/partners/design-consultants-for-mcus.html

     

    Your FAE (via ST or Distributor) might also have some ideas, suggestions or experience.

    This type of 'simple' in my experience is quite complicated (time consuming) to achieve.

    Visitor II
    July 3, 2017
    Posted on July 03, 2017 at 09:53

    It would be easy to add the desired simple user interface on top of stm8flash (assuming the users are running GNU/Linux - I don't know how much effort it would be to port stm8flash to other OSes):

    https://github.com/vdudouyt/stm8flash

     

    Philipp

    Visitor II
    July 3, 2017
    Posted on July 03, 2017 at 17:38

    The program utility has to work with Windows only, no other OS. Please keep in mind that I am not a software engineer (hardware only), but it seems that STM32 STLINK Utility should work using command line interface. However, I cannot connect to the target at all with the utility or the CLI. The only way I can repeatedly program the STM8L15 is via the STVP.exe. If I can get it to connect to the target, then the CLI would allow a simple programming script I would think.

    Visitor II
    July 3, 2017
    Posted on July 03, 2017 at 19:11

    I just found out that the STM32 STLINK utility is not compatible with STM8. I am going to try the CLI utility that comes with the STVP package.