2024-09-18 06:58 AM
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.
2024-12-09 08:37 AM - edited 2024-12-10 10:01 AM
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+).