User code overwritten by SMDCube IDE
Dear Community,
I’m struggling to find a way to prevent SMDCube IDE code generation to overwrite a changed #define. I’ve tried the usual wrapping with /* USER CODE BEGIN … with no result, and also try to dig online for some similar issue, but no luck.
Any hint on how I can actually make this work?
Details:
STM32U595
STM32CubeIDE Version: 1.19.0
specific define ( in STM32U5xx_HAL_CONF )
#define USE_HAL_ADC_REGISTER_CALLBACKS 1U /* ADC register callback disabled */
this one is overwritten each time code generation is run from the graphic GUI
Goal is to have ADC complete callback registrable to multiple functions.
When I force the above define to 1, all works as expected, but when I have to run code generation then the define is rolled back to the standard “0U”, which obviously is not desirable.
Tried also to override the define from outside the file, but this creates a neverending chain of errors.
Best Regards,
Anton

