cancel
Showing results for 
Search instead for 
Did you mean: 

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

enmirc
Associate II
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 ? 
14 REPLIES 14
enmirc
Associate II
Posted on March 31, 2016 at 14:28

Dear Mayla, 

it is different now but on end: 

- TSLPRM_USE_SHIELD is not defined       .... where has to be defined? 

- identifier''TSC'' is indefined           .... where has to be defined? 

enmirc
Associate II
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 Employee
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 Accept as Solution on the reply which solved your issue or answered your question.

enmirc
Associate II
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 Employee
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 Accept as Solution on the reply which solved your issue or answered your question.