Why is stm32f4xx_hal_conf.h in a generated project always ignored by eclipse build (make)?
Hi SystemWorkbench for STM32 experts,
I’m strugging with an issue where my stm32f4xx_hal_conf.h file in the generated project (by New->C++ Project->Ac6 STM32 MCU Project) is always excluded by eclipse build tool.
When I modified the header file, the generated makefiles under Debug folder seemed to ignore it.
For instance, have a look at the following snip, which is a part of main.d (dependency) file.
src/main.o: ../src/main.c \
/Users/myname/Documents/workspace/test_project/inc/main.h \
/Users/myname/Documents/workspace/nucleo-f411re_hal_lib/HAL_Driver/Inc/stm32f4xx_hal.h \
/Users/myname/Documents/workspace/nucleo-f411re_hal_lib/HAL_Driver/Inc/stm32f4xx_hal_conf.h \
:
:
This is weird as stm32f4xx_hal_conf.h path is under nucleo-f411re_hal_lib project, which is definitely out of my project’s scope (test_project folder).
Is that the expected behavior? If so, what is the purpose of stm32f4xx_hal_conf.h in a project folder in SystemWorkbench for STM32 IDE?
When I use make files manually, I always use stm32f4xx_hal_conf.h in the project folder in order to configure project specific settings. And it worked fine without any problem. However, when I switched to use SystemWorkbench for STM32 IDE, I couldn’t make my make-file project work in the IDE.
Any advices are appreciated. Thanks in advance.
===
Version:
Eclipse IDE for C/C++ Developers
Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600
on macOSX 10.11.6