cancel
Showing results for 
Search instead for 
Did you mean: 

Test ADC1 channel on B-U585I-IOT02A

GTanova
Associate

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

1 REPLY 1
Saket_Om
ST Employee

Hello @GTanova 

Is the macro HAL_ADC_MODULE_ENABLED defined in stm32u5xx_hal_conf.h? 

Saket_Om_0-1749809995541.png

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om