CUBEMX -> code -> add TSL Lib something is wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-03-30 2:11 AM
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 ?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-03-30 2:44 AM
Better ask this question in the dedicated ''Software Tools'' sub-forum.
https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx JW- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-03-30 5:21 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-03-30 5:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-03-31 2:10 PM
Finaly:
..\Drivers\STM32_TouchSensing_Library\inc\tsl_check_config.h(406): error: #35: #error directive: ''TSLPRM_DELAY_DISCHARGE_ALL is not defined.''- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-04-01 3:02 AM
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.
