Error linking project created using TouchGFX 4.13 with IAR Embedded Workbench 8.40.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-19 1:11 AM
I have just created a simple project using TouchGFX. It has one image, one button with label. When the button is pressed, the interaction has to fade the image. This is working fine inside TouchGFX. Like it is generating code and also run simulator is working. But when i open the EWARM project (from TouchGFX Projects -> Project Name -> EWARM ) using IAR Embedded Workbench, it is not building.
The error coming up is some linker issue.
I'm providing the log.
Building configuration: STM32F769I_DISCO - STM32F769I_DISCO
Updating build tree...
BitmapDatabase.cpp
Linking
Error[Li005]: no definition for "indicesGb" [referenced from C:\TouchGFXProjects\testiar\EWARM\STM32F769I_DISCO\Obj\Texts.o]
Error[Li005]: no definition for "_blue_buttons_round_edge_small" [referenced from C:\TouchGFXProjects\testiar\EWARM\STM32F769I_DISCO\Obj\BitmapDatabase.o]
Error[Li005]: no definition for "_blue_buttons_round_edge_small_pressed" [referenced from C:\TouchGFXProjects\testiar\EWARM\STM32F769I_DISCO\Obj\BitmapDatabase.o]
Error[Li005]: no definition for "_mufasa_small" [referenced from C:\TouchGFXProjects\testiar\EWARM\STM32F769I_DISCO\Obj\BitmapDatabase.o]
Warning[Lc059]: the section name in this pattern caused it to not match any sections. Similar section names in the program are: C:\TouchGFXProjects\testiar\EWARM/stm32f769xx_flash.icf 39
"TextFlashSection"
Error while running Linker
Total number of errors: 4
Total number of warnings: 1
- Labels:
-
IAR
-
STM32F7 Series
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-19 5:36 AM
By default, TouchGFX Designer generates for STM32CubeIDE and not for IAR.
When you generate a new project using TouchGFX Designer, make sure you open the .ioc file with CubeMX, go to Project Manager->ToolChain/IDE and change the value to EWARM. Save the .ioc file and generate code in Designer. Now your IAR project should compile correctly.
Tell me if it resolves your problem.
/Alexandre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-20 12:23 AM
Hi @Alexandre RENOUX​ ,
It worked for me. Thank you
/biki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-25 8:46 AM
I have same problem with MDK-ARM (Keilc)
i have follow your recommend, but it not solve
My project have a image and some button with purpose to test TouchGFX 4.13 running with CubeMX 5.5.
How can i solve this problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-06 6:42 AM
I also had this.
In TouchGFX designer where the image files are listed, I also needed to explicitly set each image to 'InitFlashSection'. By default it was grayed out.
As pointed out, set CubeMX Project Manager->CodeGenerator" to IAR and regenerate.
Hope this gets others up and running too..
Goodluck!
