cancel
Showing results for 
Search instead for 
Did you mean: 

Best/fastest API for C# desktop app read/write memory of several STM32 mcu's via StLinks, V2.1 and V3.

1234PJ
Associate II

Currently I tried STM32Programmer_CLI and ST-LINK_CLI, both more than 100 times slower than StmStudio - StLink - SWD - MCU. The solution can only work up to 4Hz with 1 mcu and less with >1 mcu. StmStudio can run at least 250Hz with more exchanged data.

I tried this: "C:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=SWD sn={serialNumber} mode=HOTPLUG speed=Fast -r8 0x20000000 0x8"

I need to run up to 20 mcu's simultaneously (6 is minimum), at least one must exchange data faster than 10Hz, prefer >50Hz, the rest can run 1Hz or sub 1Hz. Must be able to be addressed by StLink serialnumber.

Mcu firmware is locked so far. Mcu Hardware (circuit/PCB) is locked, so stuck with SWD, no USB/serialport.

Would another interface improve interface speed, e.g. Segger J-Link?

I am currently trying to get StLink-lib.dll working, will it be faster?

 

Please note, I am a hardware designer so software is not my primary job.

ANY advice is appreciated, especially if it is detailed and easy to understand, assume I am new to this.

Any guides/videos on this topic would be great, but any help/insight really.

 

10 REPLIES 10
Wasilewski.Piotr
Associate III

I'm using some high speed readout of ST-Link data in my MCUViewer software (It's like STMStudio, but actively maintained) - it's open source so maybe you can see how I've done it to get some inspiration :) JLink HSS mode is the fastest though (can reach tens of kHz with a few variables on JLink Ultra+).