TSC not working STM32F042
Hello everybody,
I designed a touch sensor whith the STM32F042 MCU but after a week of constant testing and experimenting still not working. First the problem was that the TSC always get in the too much count error, after I thought that maybe the capacitance of the sensor is too low, so I directly soldered a 33pF capacitor on the sensor. Now it's count value is around 230 but going to hard fault error in the Hal library bytheway the TSC registers have correct values.
The sensor itself is far from the ideal on the PCB, it's very close to the MCU and small, but I think it should work, for me it doesn't make sense what I experienced.
I tried all the settings and now I don't know what to try next, please help me whith any suggestions, or anybody who experienced something like this, can tell me the what was the solution?
