Skip to main content
Junde
Senior III
March 23, 2023
Question

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

  • March 23, 2023
  • 2 replies
  • 1591 views

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
March 24, 2023

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
March 28, 2023

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.