Skip to main content
rohan_m
Associate III
January 24, 2023
Question

Simulator is not able to compile even after regenerating from the cubemx interface and then generating with the touchgfx designer.

  • January 24, 2023
  • 3 replies
  • 1144 views

       Compiling simulator/main.cpp

       Linking build/bin/simulator.exe

       ../Middlewares/ST/touchgfx/lib/win/mingw32/libtouchgfx.a(PainterRGB565Bitmap.o):(.text+0x307): undefined reference to `touchgfx::paint::rgb565::lineFromRGB565(unsigned short*, unsigned short const*, unsigned int, unsigned char)'

       ../Middlewares/ST/touchgfx/lib/win/mingw32/libtouchgfx.a(PainterRGB565Bitmap.o):(.text+0x3a3): undefined reference to `touchgfx::paint::rgb565::lineFromARGB8888(unsigned short*, unsigned int const*, unsigned int, unsigned char)'

       ../Middlewares/ST/touchgfx/lib/win/mingw32/libtouchgfx.a(PainterRGB565Bitmap.o):(.text+0x3e0): undefined reference to `touchgfx::paint::rgb565::tearDown()'

       ../Middlewares/ST/touchgfx/lib/win/mingw32/libtouchgfx.a(PainterRGB565.o):(.text+0x74): undefined reference to `touchgfx::paint::rgb565::lineFromColor(unsigned short*, unsigned int, unsigned int, unsigned char, unsigned int)'

       ../Middlewares/ST/touchgfx/lib/win/mingw32/libtouchgfx.a(PainterRGB565.o):(.text+0x8c): undefined reference to `touchgfx::paint::rgb565::tearDown()'

These errors are shown as to be alleviated when the cubemx regenerates, but it hardly behaves as such.

I have regenerated both cubemx version 640 and touchgfx 420

This topic has been closed for replies.

3 replies

Yoann KLEIN
ST Employee
January 27, 2023

Hello @rohan_m​,

Could you try to generate with 4.21.0 or 4.20.0 and let me know if you still have those issues.

Thanks,

/Yoann

rohan_m
rohan_mAuthor
Associate III
January 27, 2023

Yes I just evaluated these images and can confirm that the images that are using the RGB565 and L8_RGB565 are not working. L8_RGB8888 images are working I can confirm that.

And yes I am generating this with 420 version

Yoann KLEIN
ST Employee
January 27, 2023

Could you delete your Middlewares/ST folder and regenerate code in Designer, and then try again please ?

/Yoann