Stm32L4 embedded touch controller not working
This is the code I’m trying to operate for my nucleo stm32L432kc board: https://github.com/eleciawhite/STM32Cube/blob/master/STM32Cube_FW_F3_V1.3.0/Projects/STM32373C_EVAL/Examples/TSC/TSC_BasicAcquisition_Interrupt/Src/main.c
My problem is when I operate the code in the link , it stops at step #-6- “Check if the acquisition is correct (no max count) ”
if (HAL_TSC_GroupGetStatus(&TscHandle, TSC_GROUP1_IDX) == TSC_GROUP_COMPLETED)
The above If condition is never true and thus the acquisition is never completed. Any idea what could be wrong?