cancel
Showing results for 
Search instead for 
Did you mean: 

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

Junde
Senior II

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

2 REPLIES 2
Pirol
Associate III

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

0693W00000aJebOQAS.png

Junde
Senior II

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.