CUBEMX: How to supress code generation in stm32f4xx_hal_msp.c
Hello,
I use CubeMX 6.1.0.
Some peripherals I must initialize by myself for some reasons.
So for example if I use the ADC1, I enable a dummy ADC peripheral in CubeMX AND I supress the code generation in ProjectManager/Advanced settings at the same time.
This action is only to asure the ADC-Hal Files are properly in included and linked.
I don´t expect any ADC related code to be generated form CubeMX in this situation.
However CubeMX DOES generate HAL_ADC_MspInit() !! and does some low level init there.
This is very bad because this funtion is defined _weak within the HAL and because CubeMX generates this function now even though code generation for ADC is disabled, I have to cope with some funny low level initialisations when I call the HAL_ADC_Init() function later.
How can this MSP-code generation be suppressed?
Thanks very much for any help
Andy