2025-06-10 7:46 AM
Hello,
I am trying the sleep example for the development board B-U585I-IOT02A, called PWR_SLEEP. I decided to add a channel from ADC1 module and I want to test, but I do not see any header file on the project. I enabled ADC1, channel 1 on pin PC0 in the .ioc file. Is it allowed to modify and add modules there?How do i see the complete code?
Furthermore, I see the file from hal_adc contains #ifdef HAL_ADC_MODULE_ENABLED and currently the whole file is in grey as if the ADC module has not been enabled. I am not sure it should be like that.
Regards,
Gergana
2025-06-13 3:20 AM
Hello @GTanova
Is the macro HAL_ADC_MODULE_ENABLED defined in stm32u5xx_hal_conf.h?