Two Arduino IDE'S, two STLINK'S simultan

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
kurtow187
Posts: 7
Joined: Sun Feb 16, 2020 9:56 am

Two Arduino IDE'S, two STLINK'S simultan

Post by kurtow187 »

Hi,

I,m using two (portable) Arduino IDE's with two STLINK V2 in exchange.
One IDE with Bluepill, one with a STMF411.
I use this with at one USB Hub with switchable USB channels.
Each IDE has its own cache folder.

This runs nearly perfect. But...
If I ever forget to activate/deactivate the correct USB port, then the wrong processor is flashed (with the wrong software).
(this happens quite often since I'm not the youngest anymore)

So my questions are:
- Does anyone know the way to adress the STLINK via the Arduino IDE via the serial number?

- It is possible create your own command line for the Arduino CLI?

- Is it possible to find the command line generated by the IDE on the computer?

I am grateful for any help!

Kurtow
kurtow187
Posts: 7
Joined: Sun Feb 16, 2020 9:56 am

Re: Two Arduino IDE'S, two STLINK'S simultan

Post by kurtow187 »

I have found a own workaround for my problem.

It is still very rudimentary, but it is enough for me.
I use the CLI from the STM32Cubeprogrammer

The below lines do the most work:

For the first Arduino IDE:
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=SWD SN=50FF72065088515619531887 freq=4000 -w c:\build_1\BLPI_PV_Cont.ino.bin 0x08000000

For the second Arduino IDE:
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=SWD SN=066FFF494849887767182234 freq=4000 -w c:\build\TFT_HC12_Pow_Receive.ino.bin 0x08000000

In the each Arduino IDE I use only 'CTRL R Compile' command.
Then I start a batch file with one of the above command lines

It needs the Serial number of each STLINK and path/filename of the arduino output file.
In this way, the correct STLINK is always addressed.

If anyone wants to dig deeper in STM32CubeProgrammer CLI, this blog post is very informative:

https://blog.katastros.com/a?ID=01800-2 ... 2db0f0f5c6

regards

Kurtow187
Post Reply

Return to “IDE's”