USE_HAL_UART_REGISTER_CALLBACKS is overwritten by CubeMX. What if I want to set it to 1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-04 3:05 AM
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.
- Labels:
-
STM32CubeMX
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-16 6:09 PM
I have the same question. Hopefully there's a positive answer to this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-21 5:25 PM
Same here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-10 2:32 AM
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
