2018-08-09 11:25 AM
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).
2018-08-09 12:42 PM
>>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.
2018-08-09 02:44 PM
@Community member I added all the necessary libraries, files, file paths, etc. But I'm getting the same error.
2018-08-09 02:50 PM
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.
2018-08-09 02:52 PM
Grep or Find-in-Files within your system the "TSL_tkey_Init" function, and others if the reside in different files
2018-08-16 10:45 PM
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.