cancel
Showing results for 
Search instead for 
Did you mean: 

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

rohan_m
Senior

       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

3 REPLIES 3
Yoann KLEIN
ST Employee

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

Yoann KLEIN
ST Software Developer | TouchGFX
rohan_m
Senior

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

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

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX