Skip to main content
enmirc
Associate III
March 30, 2016
Question

CUBEMX -> code -> add TSL Lib something is wrong

Posted on March 30, 2016 at 11:56

hi, 

CUBEMX made simple code which works, than i add Touch driver1.4.4 and get errors, why this two 

do not compatiable ? 

- KEIL , comman line: 

 USE_HAL_DRIVER, STM32L152xB. compile :

- '' GR1 has already been declared in the current scope '' etc.

- '' PA2 has already been declared in the current scope '' etc.

..\..\..\..\32l1-touch-lib\STM32L1xx_STMTouch_Lib_V1.1.0\Libraries\STMTouch_Driver\src\tsl_acq_stm32l1xx_sw.c(79): error:  #20: identifier ''RCC_AHBPeriph_GPIOA'' is undefined

- it seems MDK  in building process tied different things or not .. but why .. so I think 

  I missed parameters .. but where ? 
    This topic has been closed for replies.

    14 replies

    enmirc
    enmircAuthor
    Associate III
    March 31, 2016
    Posted on March 31, 2016 at 22:59

    Finaly: 

     

    ..\Drivers\STM32_TouchSensing_Library\inc\tsl_check_config.h(406):

     error:  #35: #error directive: ''TSLPRM_DELAY_DISCHARGE_ALL is not defined.''

    Amel NASRI
    ST Technical Moderator
    April 1, 2016
    Posted on April 01, 2016 at 12:24

    Hi mikey,

    - TSLPRM_USE_SHIELD is defined in the file STM32Cube_FW_L1_V1.5.0\Middlewares\ST\STM32_TouchSensing_Library\inc\tsl_conf_stm32l1xx_template.h

    - TSLPRM_DELAY_DISCHARGE_ALL is defined in the file STM32Cube_FW_L1_V1.5.0\Middlewares\ST\STM32_TouchSensing_Library\inc\tsl_conf_tsc_template.h

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    enmirc
    enmircAuthor
    Associate III
    April 1, 2016
    Posted on April 01, 2016 at 15:46

    great, 

    which one to take and make tsl_conf.h ? 

    at first misses second define at second first define

    Amel NASRI
    ST Technical Moderator
    April 5, 2016
    Posted on April 05, 2016 at 11:58

    Hi mickey,

    Please note that you may find more details on how to use the TSL referring to the

    http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00210526.pdf

    : ''Developing applications on STM32Cube with touch sensing''.

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.