Skip to main content
Visitor II
February 17, 2017
Question

Creating a st-link programmer

  • February 17, 2017
  • 3 replies
  • 992 views
Posted on February 17, 2017 at 10:30

Hi,

I would like to use a STM32F103 micro as a st-link programmer on my board to program or debug another micro using USB (like the one on STM32F4 Discovery board). Is it possible to download the st-link firmware to a micro like that? If possible, how should I do that?

Thanks in advance.

#custom-programmer #st-link
    This topic has been closed for replies.

    3 replies

    Super User
    February 17, 2017
    Posted on February 17, 2017 at 10:43

    Is it possible to download the st-link firmware to a micro like that?

    No. ST does not publish the bootloader which is in the STLink.

    JW

    Visitor II
    February 17, 2017
    Posted on February 17, 2017 at 11:07

    Not only that, it is secured inside chip, so you can't read it with another ST-link.

    My solution, expensive, but de-solder chip and solder in your board, it works, sometimes even if you need MCU in LQFP package, it can be cheaper too

    :)

    Visitor II
    February 17, 2017
    Posted on February 17, 2017 at 11:09

    in theory you can get hex file than you are upgrading firmware in DFU mode in stlink utility, just need a lot of work in order to extract data, it i possible, but tricky.

    Graduate II
    February 17, 2017
    Posted on February 17, 2017 at 11:50

    Either ask your FAE about a solution or have a look at the the blackmagic debug probe

    https://github.com/blacksphere/blackmagic