2018-10-27 11:33 PM
I try to generate TSC project by using STM Cube,but I am not sure how to write this function: void HAL_TSC_ConvCpltCallback(TSC_HandleTypeDef* htsc).
There is same function in "STM32Cube\Repository\STM32Cube_FW_F0_V1.9.0\Projects\STM32F072B-Discovery\Applications\TouchSensing..", but it fails on my compiler.
Can anyone share ?
2018-10-30 07:21 AM
Hello,
Please, try to debug and identify what is going wrong in your case.
Could you please precise what is the encountered issue?
Did you reproduce the issue with the TouchSensing example available under STM32CubeF0 firmware package?
The UM1785 User manual "Description of STM32F0 HAL and low-layer drivers" may helps you on how to use HAL functions.
Kind Regards,
Imen
2018-11-04 11:08 PM
Hi lmen,
Thanks for your reply. I will send you the whole project later.
Another question, can we view the charge and discharge waveform by oscilloscope during touch it?
For the STM32F072B-Discovery, PB0/PB1 is gropu1, PA6/PA7 is group2, PA2/PA3 is group3,
when I touch the sensor area, the LED will flash fast/slow according to the touch area, that mean TSC works,
but I can view no charge/discharge waveform at those pins.
If we debug TSC, is it possible to use oscilloscope to view waveform?
2018-11-09 09:57 PM
Hello lmen,
The attached file is the project generated by STM Cube version 26.1. I have problem to write the function:HAL_TSC_ConvCpltCallback( ) in main.c, I don't know how to use the variable "idx_bank".
Would you please help me to pass the compiler and some TSC function works on the STM32F072Disco board?