Skip to main content
Visitor II
April 29, 2014
Question

error while compiling the stm discovery-kit touch example

  • April 29, 2014
  • 4 replies
  • 1087 views
Posted on April 29, 2014 at 08:45

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 problems

stm8_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-compiling
    This topic has been closed for replies.

    4 replies

    Visitor II
    October 8, 2014
    Posted on October 08, 2014 at 18:45

    Good day,

    Did you manage to resolove this problem as I am having the exact same problem?

    Regards,

    Mike

    Super User
    October 15, 2014
    Posted on October 15, 2014 at 20:30

    ''Error[As011]: Undefined symbol: ...''

    So define it, then!

    Visitor II
    December 9, 2014
    Posted on December 09, 2014 at 23:46

    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.

    Visitor II
    February 1, 2015
    Posted on February 01, 2015 at 10:00

    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.

    https://yadi.sk/d/26dA7PMTeP5h4