Skip to main content
Graduate
June 10, 2025
Solved

Test ADC1 channel on B-U585I-IOT02A

  • June 10, 2025
  • 1 reply
  • 253 views

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

    This topic has been closed for replies.
    Best answer by Saket_Om

    Hello @GTanova 

    Is the macro HAL_ADC_MODULE_ENABLED defined in stm32u5xx_hal_conf.h? 

    Saket_Om_0-1749809995541.png

     

     

    1 reply

    Saket_OmAnswer
    Technical Moderator
    June 13, 2025

    Hello @GTanova 

    Is the macro HAL_ADC_MODULE_ENABLED defined in stm32u5xx_hal_conf.h? 

    Saket_Om_0-1749809995541.png

     

     

    GTanovaAuthor
    Graduate
    June 16, 2025

    Hello,

    Yes, it is defined. 

    Thank you for your answer.

    /Gergana