STM32F0 Capacitive Touch Not Detecting
This line is wrong, it's enabling G1_IO4 (PA3) not G1_IO3 (PA2) as intended.

TSC-&gt;IOSCR |= 0x04; //enable G1_IO3 (PA2) as sampling capacitor


I don't use IOASCR in my working setup, you can see the counter output below, low count = insulated electrode touched. I'd show you my code but I don't use C
and you probably don't use Forth.

 4887 
 4868 
 4838 
 4721 
 705 
 483 
 461 
 455 
 451 
 447 
 444 
 443 
 441 
 441 
 500 
 4853 
 4921