Skip to content

[BUG] configENABLE_MPU = 1 -> Redefinition of xEventGroupClearBitsFromISR / xEventGroupSetBitsFromISR #1296

@mu-hp

Description

@mu-hp

Describe the bug
When I enable the mpu, xEventGroupClearBitsFromISR and xEventGroupSetBitsFromISR does not use the MPU wrapper.

/home/<snip>/build/debug/<snip>/gcc/_deps/freertos-src/include/./event_groups.h:459:13: warning: "xEventGroupClearBitsFromISR" redefined
  459 |     #define xEventGroupClearBitsFromISR( xEventGroup, uxBitsToClear ) \
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/<snip>/build/debug/<snip>/gcc/_deps/freertos-src/include/./portable.h:105,
                 from /home/<snip>/build/debug/<snip>/gcc/_deps/freertos-src/include/./FreeRTOS.h:118,
                 from /home/hp/repos/vps/sw-basic-next/prj/src/app/app.cpp:11:
/home/<snip>/build/debug/<snip>/gcc/_deps/freertos-src/include/./mpu_wrappers.h:215:21: note: this is the location of the previous definition
  215 |             #define xEventGroupClearBitsFromISR    MPU_xEventGroupClearBitsFromISR
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/<snip>/build/debug/<snip>/gcc/_deps/freertos-src/include/./event_groups.h:615:13: warning: "xEventGroupSetBitsFromISR" redefined
  615 |     #define xEventGroupSetBitsFromISR( xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken ) \
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/<snip>/build/debug/<snip>/gcc/_deps/freertos-src/include/./mpu_wrappers.h:216:21: note: this is the location of the previous definition
  216 |             #define xEventGroupSetBitsFromISR      MPU_xEventGroupSetBitsFromISR
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~

Target

  • stm32h5x (cortex-m33, armv8)

Observed with FreeRTOS versions:

  • V11.2.0 GITHUB_REPOSITORY "FreeRTOS/FreeRTOS-Kernel"
  • GIT_TAG 684b34c GITHUB_REPOSITORY "FreeRTOS/FreeRTOS-Kernel"

Host

  • Debian 12

To Reproduce

  • enable MPU
#define configENABLE_MPU 1
  • include <event_groups.h>
#include <event_groups.h>

Expected behavior

  • no warnings (afaik MPU wrapper should be used -> MPU_xEventGroupClearBitsFromISR() / MPU_xEventGroupSetBitsFromISR()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions