2023-04-19 12:08 AM - edited 2023-11-20 07:45 AM
I'm using the STM32F072B-DISCO, trying to implement an example code for the touch sensing and followed the instructions of the "Getting Started with touch sensing Control on STM32 MCU". The code given in chapter 7.3.6 results in errors. see below
one other error I already removed, was one bracket too much at the end of the example code.
The given example code should be added between the User Code Begin 3 & End which in the main loop.
Shouldn't be the extern TSL_LinRot_T MyLinRots[]; outside of the loop? According to the manual, I only have to copy and insert this code and it should work without any edits.
edit:
added the main.c code
PS: I do not have a lot of programming experience
2023-04-25 06:20 AM
Hello,
In tsl_user.h file, MyLinRots is define in this way:
extern CONST TSL_LinRot_T MyLinRots[];
So to solved your issue, replace:
extern TSL_LinRot_T MyLinRots[];
by
extern CONST TSL_LinRot_T MyLinRots[];
It should be ok.
Regards.