Found a bug in the TM_ADC_Read function where at the end of the conversion, it checks the EOC flag. Apparently in the latest HAL that you support (1.7.1), this is not the only flag set now as the READY state is also set.
I fixed it on line 175 of tm_stm32_adc.c by checking for that flag as a flag instead as the equal value:
if (HAL_ADC_GetState(&AdcHandle) & HAL_ADC_STATE_EOC_REG == HAL_ADC_STATE_EOC_REG) {
This fixed the issue. I would do a pull request but my github is messed up at the moment.
Found a bug in the TM_ADC_Read function where at the end of the conversion, it checks the EOC flag. Apparently in the latest HAL that you support (1.7.1), this is not the only flag set now as the READY state is also set.
I fixed it on line 175 of tm_stm32_adc.c by checking for that flag as a flag instead as the equal value: if (HAL_ADC_GetState(&AdcHandle) & HAL_ADC_STATE_EOC_REG == HAL_ADC_STATE_EOC_REG) {
This fixed the issue. I would do a pull request but my github is messed up at the moment.