How to flash .. STM32F103

I’m very new to work with µCs and don’t know what Tool(s) is/are needed to program a STM32F103 HeaderBoard. I’ve got an proper USB-Cable and a JTAG-Cable. But i don’t know how to move any Binary onto the Board.

  • My Desktop-Environment is Linux.

  • I did find the Module “ftdi_sio” (or something like that) as Driver.

  • Another Site did “inspire” me to try successless to connect by telnet per:

#> telnet localhost 4444

Where can i get what Tools to make the Board running?

Thanks for any useful Advices

  • DigiRazer

Take a look at OpenOCD

Do you just have a JTAG cable, or JTAG In-Circuit-Debugger? Check the STM32 App Notes, they come pre-loaded with a serial bootloader if you don’t want a JTAG device (I would recommend it for serious development).

Todd

The_Todd:
Do you just have a JTAG cable, or JTAG In-Circuit-Debugger?

The ‘Cable’ has so many Electronic that i would guess the second. There

is e.g. a small Jumper. If i change it it makes a small red LED lighting. The

Cable is called “JTAG-Interface” on the DeliveryNote.

The_Todd:
Check the STM32 App Notes, they come pre-loaded with a serial bootloader if you don’t want a JTAG device (I would recommend it for serious development).

Is it that, that i (sh/c)ould connect per Telnet like shown above? That doesn’t work. :frowning:

I have to correct, that i’ve just the smaller HeaderBoard STM32H103 instead STM32F103.

At the end did you got it working?

I’m considering making the move from LPC2xxx to STM32.

I use Linux and currently have OpenOCD working withe the LPC2xxx, but debug only, flash write for some reason doesn’t work via JTAG/OpenOCD.

Now, with the LPC this is not an issue, since I can use the serial bootloader, but with the STM32?

ST has a FlashLoader.

But its kinda braindead, it only ‘knows’ about com1-com4, so you have to map any USB->serial cable to one of those com ports in windows. Download from ST site.

Openocd should work, I haven’t tried it yet, but a web search turned up a version and instructions to get it working. elua project I think.