Skip to content

RTOS_V2's cmsis_os2.h is searched for incorrectly #356

@tcbennun

Description

@tcbennun

Currently, FindCMSIS.cmake searches for it like so.

        find_path(CMSIS_${FAMILY}${CORE_U}_${RTOS_COMP}_PATH
            NAMES "cmsis_os${RTOS_COMP_VERSION}.h"
            PATHS "${STM32_CUBE_${FAMILY}_PATH}/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_${RTOS_COMP}"
            NO_DEFAULT_PATH
        )

This code is correct for cmsis_os.h, but not for cmsis_os2.h. That file lives under ${STM32_CUBE_${FAMILY}_PATH}/Drivers/CMSIS/RTOS2/Include. That's at least true for STM32H5; see here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions