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:11

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 ? 
5 REPLIES 5
Posted on March 30, 2016 at 11:44

Better ask this question in the dedicated ''Software Tools'' sub-forum.

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx

JW
Posted on March 30, 2016 at 14:21

The most reasonable course to troubleshoot these things yourself would be to look at the offending line. Make sure it is using HAL rather than SPL syntax. If the correct include files are being pulled from the right directories. Check dependencies in file tree. Check if specific other defines are required to pull thing in or not, and if there is a conf.h file controlling what is pulled in or the modules to use.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Nesrine M_O
Lead II
Posted on March 30, 2016 at 14:38

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/CUBEMX%20-%20code%20-%20add%20TSL%20Lib%20something%20is%20wrong&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx&currentviews=14]CUBEMX -> code -> add TSL Lib something is wrong

enmirc
Associate II
Posted on March 31, 2016 at 23:10

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:02

Hi mikey,

TSLPRM_DELAY_DISCHARGE_ALL is defined in ts_conf_tsc_template.h.

You may create your own ts_conf.h file in your project based in this template.

-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.