cancel
Showing results for 
Search instead for 
Did you mean: 

Configure ADC1 in STM32CubeIDE leads to compile error because of empty file 'stm32f4xx_ll_adc.c'

MBaum.7
Associate III

Target: NUCLEO-F446RE

I configured ADC1 on IN0, see image below:


_legacyfs_online_stmicro_images_0693W00000bhfjaQAA.pngWhen compiling the project, file 'stm32f4xx_ll_adc.c' is 'empty' because all compiler directives are not fullfilled


_legacyfs_online_stmicro_images_0693W00000bhflNQAQ.png1) what is file 'stm32f4xx_ll_adc.c' for?

2) is this behaviour a bug or a feature?

3) what to do?

3 REPLIES 3
Pavel A.
Evangelist III

Define USE_FULL_LL_DRIVER

Rim LANDOLSI
ST Employee

Hello @MBaum.2gartner​ ,

I have tried to reproduce this issue but everything works fine from my side for ADC1 on IN0 with CubeIDE version 1.12.1 and CubeMX version 6.8.1.

Could you please provide the used CubeIDE version for this project, also, it would be more helpful to share the full project.

Thanks,

Rim

MBaum.7
Associate III

Hi Rim

I used CubeIDE 1.12.0. When I manually add the LL-Driver compiling works. See the according entry in the properties below:
_legacyfs_online_stmicro_images_0693W00000bl6OBQAY.pngBut I do not understand why CubeIDE is not intelligent enough to recognize that a configured ADC needs this driver and set the according property automatically.

Best regards, Michael