2025-12-11 10:17 AM - last edited on 2025-12-12 1:48 AM by mƎALLEm
Question moved from this thread.
+ Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code and a linker script content. Please read this post: How to insert source code.
One more question, if you can help.
BSP_TS_GetState(& osc->touchScreen);
BSP_TS_Init(ILI9488_TFTHEIGHT, ILI9488_TFTWIDTH);
BSP_TS_Init and BSP_TS_GetState are not recognized by IDE versions 1.19 and 1.20.
I have to disable them to compile, so the TOUCH doesn't work.
C:/Users/Valter/STM32CubeIDE/workspace_1.19.0/Oscillo_STM32G431CBU/Debug/../Core/Src/oscilloscope.c:48:(.text.oscilloscopeInit+0x138): undefined reference to `BSP_TS_Init'
C:/Users/Valter/STM32CubeIDE/workspace_1.19.0/Oscillo_STM32G431CBU/Debug/../Core/Src/oscilloscope.c:231:(.text.serveTouchScreen+0x10): undefined reference to `BSP_TS_GetState'
I have never used this command before.
Thanks
2025-12-11 10:47 PM
> (.text.oscilloscopeInit+0x138): undefined reference to `BSP_TS_Init'
This basically means this function - and the source file implementing it - are not part of the project. Either as source or as link library.
> BSP_TS_Init(ILI9488_TFTHEIGHT, ILI9488_TFTWIDTH);
> BSP_TS_Init and BSP_TS_GetState are not recognized by IDE versions 1.19 and 1.20.
> I have to disable them to compile, so the TOUCH doesn't work.
As I understand it, you cannot get touch functionality to work, or do no want to.
However, functions like BSP_TS_GetState() (and probably others) call those functions.
You can functionally disable them by providing an empty dummy implementation that satisfies the linker, and the API of said functions.
I would suppose there are configuration options in TouchGfx for this.
But this is a package I'm not familiar with.