2023-08-25 02:36 AM
I use a STM32F469I-DISCO, developed with TouchGFX and CubeIDE.
I've ever flashed with TouchGFX and all work fine.
Now I need to send .hex file to customer, I'm going to use a standalone programmer like STM32CubeProgrammer to flash production with the same .hex file but actually I'm still failing.
I'm using target.hex, that should be int+ext memory file, with CubeProgrammer but it's able only to updload internal flash (and it works) but doesn't upload external flash..
I've tried to select IS42S32400F_STM32F469I-DK in UI CubeProgrammer "external loader", but doesn't work.
I've tried with dos command
STM32_Programmer_CLI.exe -c port=swd mode=UR -el ExternalLoader\IS42S32400F_STM32F469I-DK.stldr target.hex
but it return
-------------------------------------------------------------------
STM32CubeProgrammer v2.14.0
-------------------------------------------------------------------
Error: Wrong external loader file: target.hex
Any help?
Thanks
Solved! Go to Solution.
2023-09-11 12:37 AM
Found the issue thanks to ST support: the "-w" option was missing. The command line that work to download internal+external memory (in my case) is that (windows os):
"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=swd mode=UR -el "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader\IS42S32400F_STM32F469I-DK.stldr" -w "C:\TouchGFXProjects\[project folder]\TouchGFX\build\bin\target.hex"
2023-08-31 07:20 AM
UP
2023-09-11 12:37 AM
Found the issue thanks to ST support: the "-w" option was missing. The command line that work to download internal+external memory (in my case) is that (windows os):
"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=swd mode=UR -el "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader\IS42S32400F_STM32F469I-DK.stldr" -w "C:\TouchGFXProjects\[project folder]\TouchGFX\build\bin\target.hex"