Configure ADC1 in STM32CubeIDE leads to compile error because of empty file 'stm32f4xx_ll_adc.c'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-06 7:19 AM - edited ‎2023-11-20 8:49 AM
Target: NUCLEO-F446RE
I configured ADC1 on IN0, see image below:
When compiling the project, file 'stm32f4xx_ll_adc.c' is 'empty' because all compiler directives are not fullfilled
1) what is file 'stm32f4xx_ll_adc.c' for?
2) is this behaviour a bug or a feature?
3) what to do?
- Labels:
-
ADC
-
STM32CubeIDE
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-06 8:22 AM
Define USE_FULL_LL_DRIVER
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-29 7:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-29 10:41 PM - edited ‎2023-11-20 8:49 AM
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:But 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
