Skip to main content
Associate
November 15, 2023
Question

configUSE_TASK_NOTIFICATIONS

  • November 15, 2023
  • 3 replies
  • 1876 views

you have to put "#define configUSE_TASK_NOTIFICATIONS 1" into FreeRTOSConfig.h to make notification to work.

Even cube has enabled the funktion. Cube removes the line every time its saves the project.

 

 

This topic has been closed for replies.

3 replies

ST Employee
November 15, 2023

Hello @Gert_Lauritsen

Try adding it to the "User Code Begin" or "User Code End" sections of the FreeRTOSConfig.h file, which are not modified by CubeMX

Associate
November 16, 2023

It's not because I have to set it in config file ( now that I know it). just that cube says it should have been set.

And normally a default value

Bob S
Super User
November 15, 2023

I haven't tried this on an F7 with newer CubeMX, but in CubeMX 6.3, configUSE_TASK_NOTIFICATIONS is defined to 1 by default in FreeRTOS.h.  If you disable task notifications in CubeMX, it then adds

#define configUSE_TASK_NOTIFICATIONS 0

in FreeRTOSConfig.h.

Check your Middlewares\ThirdParty\FreeRTOS\Source\include\FreeRTOS.h and see if it has the default value there.

ST Employee
November 17, 2023

Hello @Gert_Lauritsen,

I've reproduced the issue and reported it internally (Internal ticket number 166614

Sorry for the inconvenience, I will keep you updated