Skip to main content
eng23
Senior
February 28, 2019
Question

CubeMX 5.1.0 with TouchGFX never compiles in TrueStudio

  • February 28, 2019
  • 4 replies
  • 3948 views

I started the project in CubeMX 5.1.0 from STM32F746DISCO board and it compiles ok, but when I add TouchGFX graphics TrueStudio always returns error when build.

The errors are similar like "undefined reference to `MX_FREERTOS_Init()" or "undefined reference to `typeinfo for touchgfx::DMA_Interface". But for example the function "MX_FREERTOS_Init()" is properly declared.

I've starded in CubeMX from board, from MCU, tried in differents ways but in the end always the same result.

Anyone was able to build ok from CubeMX and TouchGFX in TrueStudio?

This topic has been closed for replies.

4 replies

Martin KJELDSEN
Principal III
March 4, 2019

Hi,

We were hoping these issues with Atollic would've been fixed in CubeMX 5.1.0. I will try to get a hold of the CubeMX team to discuss this further.

Sorry for the inconvenience!

Best regards,

Martin

eng23
eng23Author
Senior
March 5, 2019

Hi @Martin KJELDSEN​ ,

Thanks for reply. Yes I was hoping the version 5.1.0 could resolve this too..

Well while the official position doens't come, I ask some doubts about the code:

Do the folders "Middlewares/ST/TouchGFX/touchgfx/framework/include/platform/hal/simulator" and "Middlewares/ST/TouchGFX/touchgfx/framework/source/platform/hal/simulator" need to be excluded from build?

  • If they are builded my error is:

SDL2/SDL_video.h: No such file or directory

But this file is in the folder tree and the path I added in project options.

  • If I exclude from build my error is:

The file "platform\driver\touch\SDL2TouchController.cpp" include <platform/hal/simulator/sdl2/HALSDL2.hpp>. This file is not created by TouchGFX, I need to include mannualy from Cube Repository, but it is inside the "simulator" folder, so I don't know what to do in this case.

Regards,

Anderson

Martin KJELDSEN
Principal III
March 5, 2019

Yes, they most certainly should. This was one of our inputs for 5.1 but i guess it didn't make it. Anything related to simulator/HALSDL should not be there. SDL2TouchController is for the simulator and should not be included either.

Hope that helps you move forward.

eng23
eng23Author
Senior
March 6, 2019

Hi @Martin KJELDSEN​ ,

Thanks for reply. I had disabled RTTI before, I don't know if re-generating code in CubeMX this config is enable again, because now it was enable... by the way, I disabled again but the erros is still there.

Now for example I have a lot of errors "undefined reference to", like:

Src/main.cpp:199: undefined reference to `osThreadCreate'

Src/STM32F7HAL.cpp:103: undefined reference to `touchgfx::OSWrappers::signalVSync()'

Regards.

Clark Sann
Associate III
March 13, 2019

How do you get around this error?

0690X0000087vFnQAI.png

This occurs when Generate Code within CubeMX 5.1.0

Carl Farrington
Associate II
March 25, 2019

I am having similar problems.

Should there be a separate TouchGFX distribution which doesn't include the simulator stuff, for CubeMX use ?

I installed TouchGFX separately, first, and then CubeMX, but I'm having all these same problems.

and after removing the simulator and sdl stuff myself, I have different problems:

0690X0000088molQAA.png