cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the correct place to define USE_HAL_UART_REGISTER_CALLBACKS as 1 to enable user callbacks? I have not found a place where it would be overwritten by a cubeMX regen.

RKolb
Associate
 
4 REPLIES 4
psztoch
Associate II

USE_HAL_UART_REGISTER_CALLBACKS is very important settings. Should be added to CubeMX!!!

S.Ma
Principal

Well, as there is no "global.h" probably in the project settings/compiler/options where you can add compile options.

Hardly portable across IDE solution.

SThor
Associate II

It is defined (to 0 as default) in the file stm32h7xx_hal_conf.h

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