Skip to main content
biki
Associate II
February 19, 2020
Question

Error linking project created using TouchGFX 4.13 with IAR Embedded Workbench 8.40.1

  • February 19, 2020
  • 4 replies
  • 1339 views

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

This topic has been closed for replies.

4 replies

Alexandre RENOUX
Visitor II
February 19, 2020

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

HAnh
Associate III
February 25, 2020

Hi Alexandre RENOUX 

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.

0690X00000DXHfJQAX.png

How can i solve this problem.

biki
bikiAuthor
Associate II
February 20, 2020

Hi @Alexandre RENOUX​ ,

It worked for me. Thank you

/biki

jnewcomb
Associate
May 6, 2020

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!