cancel
Showing results for 
Search instead for 
Did you mean: 

Error: L6218E: Undefined symbol " " (referred from tsl_user.o) on STM32CubeF0 Firmware Package

z�?en
Associate II

Hi. I am working on stm32f072c8t6 mcu using cubemx and want to develop a touch sensing application. I created a project using CubeMX for this. I would like to include the project library "STM32_TouchSensing_Library", but I encounter many errors. What could be the solution to this problem?

CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_Init (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_acq_BankConfig (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_acq_BankGetResult (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_acq_BankStartAcq (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_acq_BankWaitEOC (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_dxs_FirstObj (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_ecs_Process (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_obj_GroupInit (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_obj_GroupProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tim_CheckDelay_ms (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_CalibrationStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DebCalibrationStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DebDetectStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DebErrorStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DebProxDetectStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DebProxStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DebProxTouchStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DebReleaseDetectStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DebReleaseProxStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DebReleaseTouchStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_DetectStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_Init (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_Process (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_ProxStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_ReleaseStateProcess (referred from tsl_user.o).
CubeMX_Touch_Test\CubeMX_Touch_Test.axf: Error: L6218E: Undefined symbol TSL_tkey_TouchStateProcess (referred from tsl_user.o).

5 REPLIES 5

>>What could be the solution to this problem?

Add the file(s) containing these functions into your project, either as the source files, or as a library.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
z�?en
Associate II

@Community member​ I added all the necessary libraries, files, file paths, etc. But I'm getting the same error.

Evidently the linker disagrees.

Including .H files just defines the interface, it does not provide the body code for the functions. The linker can't get closure because there is nothing to bind too.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Grep or Find-in-Files within your system the "TSL_tkey_Init" function, and others if the reside in different files

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
z�?en
Associate II

I just want to improve my own touch sensing application with the shared applications and libraries shared on this link( https://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-mcu-packages/stm32cubef0.html#getsoftware-scroll ). I include the libraries in the project as described in this documentation. But it's failing. give an error.