Skip to main content
Junde
Senior III
Mar 23, 2023 3:21 PM UTC
Question

why was the project generated by touchGFX can NOT be compiled successfully by MDK or cubeIDE?

Hi,

I generated the following demo by touchGFX and can run the demo in touchGFX.

But when I open the generated project by MDK and compile it, it turns out some errors as below:(seems the project just include the port.c and portmacro.h for GCC, NOT for ARM compiler)

0693W00000aJaXOQA0.png

This topic has been closed for replies.

2 replies

Pirol
Associate III
Mar 24, 2023 12:35 PM UTC

Have you changed the toolchain in CubeMX in the Project Manager tab? After generating with CubeMX, generate again with TouchGFX Designer.

0693W00000aJebOQAS.png

Junde
JundeAuthor
Senior III
Mar 28, 2023 3:30 PM UTC

Yes, anyway, I can generate the compilable project now, maybe I have some mistakes last time. sorry!

But I found that after I change UI and generate code by touchGFX, every time, I must run cubeMx and generate the project again, otherwise, the project will compiler fail.