hi @wdawson61 I hope you are doing well.
Can you share the piece of code where you edit the file to use the ADC?
I want to use PB3 & PB4 for ADC_CHANNEL_2 & ADC_CHANNEL_3 respectively. Till now, I am unable to get the right value.
Below is the code I have added in the function uint16_t SYS_GetBatteryLevel(void)
in the adc_if.c
file.
APP_LOG(TS_ON, VLEVEL_L, "ADC_CHANNEL_2 = %d\n\r", ADC_ReadChannels(ADC_CHANNEL_2));
HAL_Delay(1000);
APP_LOG(TS_ON, VLEVEL_L, "ADC_CHANNEL_3 = %d\n\r", ADC_ReadChannels(ADC_CHANNEL_3));
HAL_Delay(1000);
I’m getting 0 for both channels, I have connected a voltage divider circuit to check the voltage levels, but I’m always getting 0.
Any help would be appreciated. I have not changed the .ioc file yet.
Regards