STM32Cube projects and hal_config.h

It seems to me that the stm32l4xx_hal_config.h is meant to be a project specific file, however, my PIO project is using the one from the PIO package directly. Is there some setting to tell PIO to use a project-local copy so that it may be tuned to the specific project requirements?


1 Like

Once again, many thanks.

Having thought about this again, it seems to me that one would “always” want to use a project-local HAL config file. Surely this should be the default for this framework.

I cannot imagine a scenario where the SDK default HAL config file would be used. One MUST configure what drivers etc. are to be part of the project. Or, am I missing something?