2024-12-03 08:31 AM
I have a Touch-GFX project that I can program into an STM32H7B3I-DK from within the STM32CubeIDE.
However, trying to program the same board with the project's .elf file from STM32CubeProgrammer fails with:
16:20:21 : Memory Programming ...
16:20:21 : File : STM32H7B3I-DK.elf
16:20:21 : Size : 1.36 MB
16:20:21 : Address : 0x08000000
16:20:21 : Erasing memory corresponding to segment 0:
16:20:21 : Erasing internal memory sectors [0 51]
16:20:21 : Erasing memory corresponding to segment 2:
16:20:21 : Download in Progress:
16:20:22 : Error: failed to download Segment[2]
16:20:22 : Error: failed to download the File
Running at Verbosity Level 3 doesn't add much:
16:21:10:229 : Segment[0] downloaded successfully
16:21:10:229 : Size : 1013268 Bytes
16:21:10:229 : Address : 0x90000000
16:21:10:229 : Buffer program...
16:21:10:230 : w ap 0 @0x90000000 : 0x000F7614 bytes, Data 0xE708F0F8...
16:21:10:230 : Error: failed to download Segment[2]
16:21:10:230 : Error: failed to download the File
16:21:10:254 : r ap 0 @0x1FF13FFE 0x00000001 bytes Data 0xFFFFFF92 <-- this line repeats forever
I am using V2.18.0 of the programmer.
Any idea what's causing this?
I need to get the programmer working as people who only need to update the firmware will be using it, and they don't want to have to learn how to use the full IDE.