2014-04-28 11:45 PM
hi,
i am working on touch interface for start i am trying to work on stm discovery board. i have downloaded the touch example provided by the st.com while compiling the project i am facing the problemsstm8_tsl_rc_acquisition.c Error[As011]: Undefined symbol: EndWaitForVih E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 366 Error[As011]: Undefined symbol: EndWaitForVih E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 366 Error[As011]: Undefined symbol: EndWaitForVih E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 366 Error[As011]: Undefined symbol: WaitForVih E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 369 Error[As011]: Undefined symbol: WaitForVih E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 369 Error[As011]: Undefined symbol: WaitForVih E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 369 Error[Og010]: Inline assembler instruction does not have a unique size: '' bcp a, (x)'' E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 301 Error[As011]: Undefined symbol: EndWaitForVil E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 302 Error[As011]: Undefined symbol: EndWaitForVil E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 302 Error[As011]: Undefined symbol: EndWaitForVil E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 302 Error[As011]: Undefined symbol: WaitForVil E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 305 Error[As011]: Undefined symbol: WaitForVil E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 305 Error[As011]: Undefined symbol: WaitForVil E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 305 Error[As011]: Undefined symbol: ShiftLoopVih E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 251 Error[As011]: Undefined symbol: ShiftLoopVih E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 251 Error[As011]: Undefined symbol: ShiftLoopVih E:\Ahmad\PRJ_WHITE\touch\an3279\Libraries\STM8_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c 251 Tool Internal Error: Internal Error: [CoreUtil/General]: Size mismatch for '' AND A, (X)'', inserted as 1 bytes, assembled as 3 bytes Internal Error: [CoreUtil/General]: Size mismatch for '' AND A, (X)'', inserted as 1 bytes, assembled as 3 bytes Error while running C/C++ Compiler Total number of errors: 18 Total number of warnings: 0 I have tried to comment the lines but the file is write protected.help any one
#discovery-touch-not-compiling2014-10-08 09:45 AM
Good day,
Did you manage to resolove this problem as I am having the exact same problem? Regards, Mike2014-10-15 11:30 AM
''Error[As011]: Undefined symbol: ...''
So define it, then!2014-12-09 02:46 PM
I have the same problem. I'm not familiar with this C compiler and especially with asm inlines where it actually fails compiling. In fact, the code is tailored individually for 3 compilers (IAR, COSMIC, RAISONANCE). The IAR is detected correctly but fails compiling. Probably some version incompatibility.
I removed and commented out all the touch sensing code and it compiled and linked.However, now I don't know how to make an s19 for flashing. Will keep looking.2015-02-01 01:00 AM
Hi, Khalid
Upgrade STM Touch Sensing Driver in project.Just copy new *.h *.c over old files in /inc and /src.If you will upgrade std periph driver too, then also edit stm8s.h:uncomment #define STM8S105, rebuild and load project to device.