Skip to main content
MBaum.7
Associate III
April 6, 2023
Question

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

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?

This topic has been closed for replies.

3 replies

Pavel A.
April 6, 2023

Define USE_FULL_LL_DRIVER

Rim LANDOLSI
ST Employee
May 29, 2023

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
MBaum.7Author
Associate III
May 30, 2023

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