Code generation deletes HAL Drivers
Hi everyone,
I recently started programming STM Microcontrollers. I'm using STM32CubeIDE 1.13.2 to setup my project.
I want to build a modular software, where some necessary peripherals are initialized from beginning and others are initialized dependend on my build variables.
I was using STM32CubeIDE to setup the project and initialize the peripherals in the .ioc file. That worked well!
The reason I want to build a modular SW is because I also have a modular HW. Sometimes I want to use the same pins for different purposes dependent on my build variables. That is why I want to reset every pin I do not necessarily need from the begining. My problem is occuring when generating the code. The code generation does not only add or delete some code as I configure. It does also delete the HAL drivers if a module is not used. For example if I deactivate ADC it deletes the HAL drivers for adc even if I define them as enabled in the user code space of "stm32l4xx_hal_conf.h". How can I prevent the code generation process from deleting those drivers? I do not want to copy the folder manually or via script every time from my repository.
Is there any solution to keep the driver files?
Thank you very much!
Best regards!
