CubeMxIDE v1.0.2 for STM32f031x6 ADC usage problem
I am using CubeMxIDE v1.0.2 with STM32f031F6
Tring to read internal batt and temperature. But can not successfull..
I found that SMT32F031x6.h library file and corrected the following lines
#define ADC_CCR_VREFEN_Pos (22U)
#define ADC_CCR_TSEN_Pos (23U)
#define ADC_CCR_VBATEN_Pos (24U)
with below
#define ADC_CCR_VREFEN_Pos (21U)
#define ADC_CCR_TSEN_Pos (22U)
#define ADC_CCR_VBATEN_Pos (23U)
and now it works.
Please can you check it is OK or if I am wrong lets give me a solution
Regards
Murat