Skip to main content
RKolb
Visitor II
Mar 24, 2019 10:55 PM UTC
Question

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.

..

This topic has been closed for replies.

4 replies

psztoch
Associate II
Oct 5, 2019 8:05 PM UTC

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

S.Ma
Principal
Oct 6, 2019 5:09 AM UTC

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
Feb 4, 2020 7:50 AM UTC

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

angus schmaloer
Associate III
Feb 10, 2021 10:32 AM UTC

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