2023-05-31 06:22 AM
I'm using a STM32U5A9J-DK with TouchGFX. Smaller projects work just fine. But aufter integrating an Animated Image (approx. 37 MBytes of assets), the programming fails. The console log is as follows:
STMicroelectronics ST-LINK GDB server. Version 7.3.0
Copyright (c) 2023, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.13.0
-------------------------------------------------------------------
Log output file: ******************************
ST-LINK SN : ******************************
ST-LINK FW : V3J11M3
Board : STM32U5A9J-DK
Voltage : 1.79V
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
2nd connect tentative with frequency (8MHz)
ST-LINK SN : ******************************
ST-LINK FW : V3J11M3
Board : STM32U5A9J-DK
Voltage : 1.79V
SWD freq : 8000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x481
Revision ID : Rev C
Device name : STM32U5xx
Flash size : 4 MBytes (default)
Device type : MCU
Device CPU : Cortex-M33
BL Version : 0x92
Debug in Low Power mode enabled
-------------------------------------------------------------------
Choose flashing speed for Cortex M33 series.(default speed=Reliable)
-------------------------------------------------------------------
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a17156.srec
File : ST-LINK_GDB_server_a17156.srec
Size : 37.26 MB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 38]
Erasing memory corresponding to segment 1:
Erasing external memory sectors [0 591]
Download in Progress:
Error: failed to download Segment[1]
Error: failed to download the File
Encountered Error when opening C:\ST\STM32CubeIDE_1.12.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.600.202301161003\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.
In the debug configuration, following external loader is specified:
MX25LM51245G_STM32U599J-DK.stldr
I tried to read out the memory using a J-Link with the JMem tool. There, I noticed, that after around 2.5 MByte, the content is filled with FFFF... The external flash should have 64 MByte.
Is there a way to fix this issue?
Solved! Go to Solution.
2023-07-24 09:42 AM
Perhaps one could simply install STM32CubeProgrammer versions in to different directories, and run those individually / independently. Or put the version you want to use in a Path that CubeIDE is going to use / find..
2023-07-25 09:41 PM
I can install an old version (v2.8) of STM32CubeProgrammer in a different folder. TouchGFX can use this version to flash the dev board, but STM32CubeIDE still uses its own plug-in in a separate folder, and I cannot change it. There are some missing external loaders in the new version, in this case, the missing external loader is MX25LM51245G_STM32U599J-DK.stldr. So, I just copy the file from the old version's location to the relevant plug-in folder. And it fixes the issue.