Skip to main content
RKolb
Visitor II
March 24, 2019
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.

  • March 24, 2019
  • 4 replies
  • 2201 views

..

This topic has been closed for replies.

4 replies

psztoch
Associate II
October 5, 2019

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

S.Ma
Principal
October 6, 2019

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
February 4, 2020

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

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