With STM32 you can use a
"st link v2" for all
You can get a cheap clone or use one built in to most discover boards from ST
https://www.youtube.com/results?search_query=arduino+st+link+v2+
Hi,
Would appreciate some advice, a friend has a stmF411re Nucleo board they do not use as such, and it has its own snap off StLink board.
Can this be used to re-program the bootloader on one of those stm32103 boards to be used as Ardunio ?
Do we need to actually need to snap it off, seems there are a lot of jumpers and header pins on the StLink section, so thought it might be possible to program another external device while attached the to Nucleo section ?
thanks
Just some find details to help all.
ST Link V2 is ST's programming tool.
As STM32 micro-controllers can be run a many different voltages this is covered.
The ST link v2 that is included with the discover boards and others is a more limited version built to work at that voltage.
From the ST documentation I have seen, you have many options.
1. You can snap off the Link v2. The documation I have seen their is two sets of holes on each side of snap point that you can add a headers. If you connect the headers with a cable it;s back working. but Now a separate limited ST Link V2.
2. Remove solder jumper or cut traces. Have seen this option in most ST documentation. Adding headers lets you local program or program something else STM32 at same voltage.
All the ST documentation about the boards I have seen have real good documentation of the many options a board has.
So Yes it can program a STM32 chip.
Ardunio
People often miss that the Ardunio IDE can do it's programming many ways.
The normal is installing a bootloader which then allows programming over serial
The Ardunio can use ST Link V2 to program STM32 chips.
The ST Link V2 uses JTAG SMD to program & debug a chip.
STM32 chips have the two connections for this connection.
The STM32 chip could be blank. SMD can program, read, write, erase and can be used to debug a chip.
In Addition
A lot of STM32 chips come with a Rom Memory boot loader. Capabilities very by chip and the interfaces of that chip.
You sill often find that a STM32 that has USB can be programmed over USB.
Was looking at one STM32 that had a CAN bus interface that you could use to load a program. A different STM32 could not via CAN as it had a different Rom Memory boot loader.
ST Application note AN2606 lists the ways the Rom memory boot loader can function.
http://www.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD00167594.pdf/files/CD00167594.pdf/jcr:content/translations/en.CD00167594.pdfthe STM32103 is SWD or USART1 using the Rom Memory boot loader.
ST sets the standard on how it works
You can load firmware that is a boot loader with different capabilities like a Ardunio boot loader which uses an Ardunio standard.
so
ST link V2 via SWD always.
A program that can do ST serial protocal via USART1
Ardunio after loading Ardunio boot loader firmware.
is what the chip can do.
Google "stm32f103c8t6 bootloader"
The cheap stm32 boards are often called "Blue Pill"
C