cancel
Showing results for 
Search instead for 
Did you mean: 

USE_HAL_UART_REGISTER_CALLBACKS is overwritten by CubeMX. What if I want to set it to 1?

Rafael Bachmann
Associate II

The old weakly linked callbacks are documented as legacy in the HAL source code. Yet if I want to register callback functions, the corresponding preprocessor define is overwritten by CubeMX. Is there a way to set this flag permanently (and not in the build settings, as I would like my IDE to not complain)? Setting a User Defined Constant in CubeMX does not suffice.

3 REPLIES 3
SWill.11
Associate II

I have the same question. Hopefully there's a positive answer to this.

EStua.1
Associate

Same here.

angus schmaloer
Associate III

Hello, i found your awnser.

In CubeMX, go to "Project manager", in the left side you will see "Advanced Settings".

if you go over there, you can see all Register Callbacks on the right side. They are all disabled my default, you can eable them there.

GL ^^

Angus