cancel
Showing results for 
Search instead for 
Did you mean: 

MX 5.4.0 Bug: Register Callbacks selection section overwritten

Frank4
Associate II

Hi,

After generating code using STM32CubeMX 5.4.0, the Register Callbacks selection section is reset. e.g.:

#define USE_HAL_SAI_REGISTER_CALLBACKS        1U

becomes

#define USE_HAL_SAI_REGISTER_CALLBACKS        0U

in the stm32xx_hal_conf.h file after generating code with STM32CubeMX 5.4.0.

Is there a way to save the register callback configuration in CubeMX ? Or to prevent CubeMX from overwriting it ?

Thanks,

Frank

1 REPLY 1
IGeor
Associate II

I'm having the same problem with USE_HAL_HRTIM_REGISTER_CALLBACKS. The code generator sets it to 0 but there doesn't seem to be any section in the MX tool for enabling callbacks or any user code section in the header file where you can override the result.

Is this a bug / omission or are we missing something?