cancel
Showing results for 
Search instead for 
Did you mean: 

stm32h743i + touchgfx

feelingoflight
Associate III

Hello.

Im trying to flash evaluation board STM32H743I-EVAL with help of touchgfx designer 4.10.0.

In the simplest case i create project with application template ST STM32H743I EVAL and without any elements (no backgrounds, buttons etc.).

But when i try to flash (button "run target"), i havethis:

make -f target/gcc/Makefile -j10 flash

An error occured during flash. Please make sure you have the right target connected.

Converting images

STM32 ST-LINK CLI v3.3.0.0

STM32 ST-LINK Command Line Interface

ST-LINK SN: 0672FF323338424E43254935

ST-LINK Firmware version: V2J32S22 (Need Update)

Connected via SWD.

SWD Frequency = 4000K.

Target voltage = 3.2 V

Connection mode: Normal

Reset mode: Hardware reset

Device ID: 0x450

Device flash Size: 2048 Kbytes

Device family: STM32H7xx

Loading file...

Flash Programming:

File : build/bin/target.hex

Address : 0x08000000

The elf loader file is not accessible.

MCU Reset.

target/gcc/Makefile:389: recipe for target '_extflash_' failed

make[1]: *** [_extflash_] Error 12

target/gcc/Makefile:77: recipe for target 'flash' failed

make: *** [flash] Error 2

And i tried to update ST-LINK firmware, it doesnt help and debug log still displays the message "need update".

Help me pls to fix my problem, how to flash stm32h743i?

22 REPLIES 22
Mon2
Senior III

Hi. Can you share the details of which ST-LINK update you have applied and tested?

feelingoflight
Associate III

STM32 ST-LINK Utility v4.3.0.0

STLinkUSBDriver.dll  v5.1.0.0

ST-LINK_CLI.exe    v3.3.0.0

Firmware Version: V2.J32.M22 STM32 Debug+Mass storage.

But i think that problem in generating some memory files, because when i try to flash firmware from IAR,

it shows error "FlashSTM32H7xxx_CM7.flash file was not found". Way to this file is containing in "QSPI.board" file. And "FlashSTM32H7xxx_CM7.flash" is not present in EWARM folder,

unlike "QSPI.board". When i try to use default IAR's flashloader files, it flashes, but do it wrong.

And for example look at comparsion generated STM32F7 and STM32H7 folders. STM332F7 board file contains ways to ".flash" files, which are presented in IAR folder.

Mon2
Senior III

Which ST-LINK update have you applied?

Can you try again after upgrading the following tool?

STSW-LINK009 2.0.1

https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-utilities/stsw-link009.html

Mon2
Senior III

Also, your CLI version is old.

STM32 ST-LINK CLI v3.3.0.0

Current version is posted here:

https://www.st.com/en/development-tools/stsw-link004.html

Current version is 4.3.0.

But windows shows that driver and CLI is updated.

And touchgfx still shows this error with wrong driver versions,

I tried reinstall designer, driver and CLI, nothing helps.

Martin KJELDSEN
Chief III

Hi @feelingoflight​,

It does look like an incorrect version. When you call make with the "flash" option, it simply makes a call to the ST-Link CLI and if your version does not have the right support (both internal flash and external) you'll get that message "No elf loader found".

Could you try showing me the "About" window from your ST-Link GUI ?

Martin KJELDSEN
Chief III

Could you try programming your board from the GUI to see if you get the same error there? I seem to remember having issues with H743I-EVAL and ST-Link.

Moving to STCubeProgrammer resolved my/our issues here. Try it out!

Hello

Yeah, i tried to flash file target.hex from application/build/bin from st-link utility and from stm32cubeprogrammer, it works, but with some bugs. For example when i add scalable image on screen it flashes wrong and nothing works.

Also i would like to generate hex files from IAR, not from designer or cmake.

Thanks for help, maybe i need to wait more stable version touchgfx.