Skip to main content
Frank4
Associate
Oct 25, 2019 5:21 PM UTC
Question

MX 5.4.0 Bug: Register Callbacks selection section overwritten

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

This topic has been closed for replies.

1 reply

IGeor
Associate II
Nov 1, 2019 2:00 PM UTC

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?