Skip to main content
David Pekin
Senior
February 20, 2018
Question

STM32 Stane alone programmer

  • February 20, 2018
  • 3 replies
  • 693 views
Posted on February 20, 2018 at 20:11

Hello there.

What's the best way to burn a new firmware image (.hex file) on a STM32 target in the field?   We don't need to debug.  I need to be able update the device by sending a .hex file to the tech and he needs to burn it.  

Thanks,

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    February 20, 2018
    Posted on February 20, 2018 at 20:27

    Depends on mode of connectivity. For USB you can use a .DFU file and DFU tools. For Serial the Flash Loader Demonstrator. For SWD/JTAG there is ST-LINK Utilities.

    More ideally for field updates you own your update process, where you have a boot loader using the standard interfaces you provide the customer, and up load via you own application or X/Y-Modem in via a terminal. See IAP examples.

    There is also this new tool

    https://community.st.com/0D50X00009XkVu4SAF

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    henry.dick
    Associate II
    February 20, 2018
    Posted on February 20, 2018 at 20:54

    Debuggers like stlink or jlink can do what you want.

    Or Google production programmer.

    Andrew Neil
    Super User
    February 20, 2018
    Posted on February 20, 2018 at 20:55

    the tech... needs to burn it

    Be more specific about 'the tech'

    Could she be equipped with an ST-Link and laptop, and just use that?

    Agenuine ST-Link is only twenty quid or so; cheap (but perfectly usable) knock-offs are available on ebay and the like for under a fiver:

    https://i.ebayimg.com/images/g/MvoAAOSwWWxY-UQm/s-ljpg

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.