2025-01-24 02:07 AM
We would like to programm an external Flash connected to an STM32U575 with STM32Programmer v2.18.0, ST-Link V2 and a self made ExternalLoader.
When we use sector erase and erase all with STM32Programmer CLI it reports success, but nothing happens on the external Flash. It seems that the CLI ignores the external loader and the internal Flash of STM32U575 is cleared.
The read command seems to work and you can see in the Log-Files that the Read-Function from our external loader is called (Line 116 read.txt). Log-Files are atteched.
We use the following command:
Mass Erase
C:\DevTools\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=swd -el ExternalLoader\test.stldr -e all -vb 3
Sector Erase
C:\DevTools\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=swd -el ExternalLoader\test.stldr -e [0 1] -vb 3
Read
C:\DevTools\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=swd -el ExternalLoader\test.stldr -r8 0x0 0x1000 -vb 3
The commands read and sector erase work fine using STM32Programmer GUI. Full chip erase results also in an error using the GUI.
Is there a issue using STM32Programmer CLI v2.18.0 with STM32U575 and an external loader?