Skip to main content
Rafael Bachmann
Associate II
September 4, 2019
Question

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

  • September 4, 2019
  • 3 replies
  • 2524 views

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.

This topic has been closed for replies.

3 replies

SWill.11
Associate II
March 17, 2020

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

EStua.1
Associate
March 22, 2020

Same here.

angus schmaloer
Associate III
February 10, 2021

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