-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMSIS RTOS Feature #253
CMSIS RTOS Feature #253
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
than you for the changes. We are almost done. I made some small remarks but I have one main issue in that the example is not working 100% on my side:
Please note the F4 build fails with following options on my computer. Please confirm issue and we can investigate further if you can not reproduce.
option(USE_CMSIS_RTOS "Use CMSIS RTOS provided by Cube repository" OFF)
option(USE_CMSIS_RTOS_V2 "Use CMSIS RTOS_V2 provided by Cube repository" OFF)
option(USE_CUBE_FREERTOS "Use the FreeRTOS kernel provided by the Cube repository" ON)
endif() | ||
|
||
# Component is not RTOS component, so check whether it is a family component | ||
string(REGEX MATCH "^STM32([A-Z][0-9])([0-9A-Z][0-9][A-Z][0-9A-Z])?_?(M[47])?.*$" COMP ${COMP}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,122 +1,216 @@ | |||
set(FreeRTOS_PORTS ARM_CM0 ARM_CM3 ARM_CM4F ARM_CM7 ARM_CM4_MPU ARM_CM3_MPU ARM_CM7_MPU) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just reminder of #231 (do not fix here)
target_link_libraries(FreeRTOS::Coroutine INTERFACE FreeRTOS) | ||
if(STM32H7 IN_LIST FreeRTOS_FIND_COMPONENTS) | ||
list(REMOVE_ITEM FreeRTOS_FIND_COMPONENTS STM32H7) | ||
list(APPEND FreeRTOS_FIND_COMPONENTS STM32H7_M7 STM32H7_M4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. include for device print function not necessary anymore 2. Improved component convention for H7 example 3. Fixed possible bug in F4 example component logic, is also consistent now 4. Some clarifications and form improvements for FreeRTOS section in README
Changes from code review:
Can you check the |
Full discussion and review can be found here: #227 . This is the squashed version of the feature for a cleaner history and with a proper git commit for the PR.
This branch has the complete feature set for CMSIS RTOS support.
Builds on #190 and #189 , a lot of work provided by @g-arjones , extended with documentation and an updated
freertos
example with the same architetecture as #225Closes #227
Closes #188 . Closes #160 issues
Closes #190 Closes #189 PR
The updated
freertos
example can now be compiled with CMSIS RTOS by passing-DUSE_CMSIS_RTOS=ON
and CMSIS RTOSV2 by passing-DUSE_CMSIS_RTOS_V2=ON
. When doing this, it is not necessary to setFREERTOS_PATH
anymore, because the build system can use the FreeRTOS and CMSIS RTOS sources inside the Cube repository. See updated README for more details