2020-12-06 04:00 AM
Hi, which is the fastest way to migrate a touchGFX project from STM32F746G-disco to STM32H735-DK? Actually on touchGFX application template I can't choose the STM32H735-DK.
I will glad if someone could help me
Solved! Go to Solution.
2020-12-09 04:11 AM
Hi,
What version of STM32CubeProgrammer are you using ?
/Romain
2020-12-09 04:14 AM
The last version of CubeProgrammer.
But the error comes out if I run the target from TouchGFx.
Now I will try from CubeProgrammer
2020-12-09 04:24 AM
Like Flemming said, you can use the "Import Gui" option in the "Edit" tab in Designer to migrate the UI interface. Once you enter the "Import GUI window", press the Browse button and navigate to the project folder where you developed your UI (on the F746-disco board I presume). Navigate to the TouchGFX folder of that project, and open the TouchGFX project.
/Romain
2020-12-09 04:58 AM
Yes , I've already done this .
But I've got this error when i run the target from touchGFX designer:
Error: external loader C:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader\MX25LM51245G_STM32H735G-DK.stldr cannot be loaded.
make[1]: *** [_extflash_] Error 1
gcc/Makefile:288: recipe for target '_extflash_' failed
../gcc/Makefile:52: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed
Any idea how to solve this? thanks a lot
2020-12-09 05:17 AM
I've tried from CubeProgrammer and it works! Thanks a lot!
But I would like to understand why I can't do it from TouchGFX Designer
2020-12-10 12:07 AM
Hi,
TouchGFX Designer uses CubeProgrammer to run on target the project, but the latest version (CubeProgrammer 2.6) is having issues out of our reach. The error you shared shows that the issue comes from the external loader not being found/open within CubeProgrammer, and therefor the external flash could not be run.
Could you try to run your project from TouchGFX Designer with CubeProgrammer 2.5 installed to see if it fixes this issue ?
/Romain
2020-12-10 01:15 AM
Hi,
I've just tried installing CubeProgrammer 2.5 and run target but I've noticed from touchGFX designer log this thing:
As you can see touchGFX uses CubeProgrammer 2.4 even if I've installed 2.5 or 2.6 version.
Here the log from touchGFX Designer:
Run Target
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Post Generate Target
touchgfx update_project --project-file=../STM32H735G-DK.ioc --platform=m7
Done
Compile
make -f ../gcc/Makefile -j8
Reading TouchGFX/application.config
Linking TouchGFX/build/bin/target.elf
Producing additional output formats...
target.hex - Combined internal+external hex
intflash.elf - Internal flash, elf debug
intflash.hex - Internal flash, hex
extflash.bin - External flash, binary
Done
Flash
make -f ../gcc/Makefile flash
Reading TouchGFX/application.config
Linking TouchGFX/build/bin/target.elf
Producing additional output formats...
target.hex - Combined internal+external hex
intflash.elf - Internal flash, elf debug
intflash.hex - Internal flash, hex
extflash.bin - External flash, binary
-------------------------------------------------------------------
STM32CubeProgrammer v2.4.0
-------------------------------------------------------------------
Error: external loader C:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader\MX25LM51245G_STM32H735G-DK.stldr cannot be loaded.
gcc/Makefile:288: recipe for target '_extflash_' failed
make[1]: *** [_extflash_] Error 1
../gcc/Makefile:52: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed
2020-12-10 01:26 AM
I will assume it is the same issue I had a few weeks ago. I had an issue with CubeProgrammer 2.4 which was in my Program Files (x86)\ folder, while my CubeProgrammer 2.5 was in Program Files\. As of now, the makefile looks first for the CubeProgrammer version in the x86 fodler, then looks at another location if it cannot find any. This will be soon updated to reverse the search order to prevent this kind of issues.
2020-12-10 01:35 AM
It works, thanks a lot and have a nice day!
2020-12-10 01:52 AM
Great to hear !!
This is an annoying issue which like I said we will try to fix soon (or at least an "automatic work-around").
I faced that issue while working on the F756 eval board and banged my head on the table a couple of times trying to fix it. CubeProgrammer with Designer 2.4 worked fine on other boards for me so it took a lot of testing before I found that solution... (also had other errors ofc :sad_but_relieved_face: )
Have a nice day as well,
/Romain