Skip to content
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

Expand stm32cube builder script to build CMSIS-RTOS2 component #481

Open
maxgerhardt opened this issue Jan 22, 2021 · 3 comments
Open

Expand stm32cube builder script to build CMSIS-RTOS2 component #481

maxgerhardt opened this issue Jan 22, 2021 · 3 comments
Labels

Comments

@maxgerhardt
Copy link
Contributor

maxgerhardt commented Jan 22, 2021

Per https://community.platformio.org/t/cant-find-cmsis-rtos2-on-nucleo-l452re-with-stm32cube-framework/18713.

The current builder script only uses a few things from the Drivers/CMSIS folder of the STM32Cube package, namely "Device" and "DSP".

CPPPATH=[
"$PROJECT_SRC_DIR",
"$PROJECT_INCLUDE_DIR",
os.path.join(FRAMEWORK_DIR, "Drivers", "CMSIS", "DSP", "Include"),
os.path.join(FRAMEWORK_DIR, "Drivers", "CMSIS", "Include"),
os.path.join(
FRAMEWORK_DIR,
"Drivers",
"CMSIS",
"Device",
"ST",
MCU_FAMILY.upper() + "xx",
"Include",
),
os.path.join(
FRAMEWORK_DIR,
"Drivers",
MCU_FAMILY.upper() + "xx_HAL_Driver",
"Inc",
),
os.path.join(
FRAMEWORK_DIR,
"Drivers",
MCU_FAMILY.upper() + "xx_HAL_Driver",
"Src",
),

It would be nice to also configurably be able to build the other components in there, namely CMSIS-RTOS2 (I'm ignoring the older CMSIS-RTOS here) and maybe CMSIS-NN for neural networks.

grafik

@maxgerhardt
Copy link
Contributor Author

maxgerhardt commented Jan 22, 2021

Problem: The STM32Cube package doesn't contain the actual core code (RTX) from CMSIS-RTOS2!

grafik

Compare to https://github.com/ARM-software/CMSIS_5/tree/develop/CMSIS/RTOS2, the entire RTX folder is missing.

Is this due to licensing issues? Or does STMicroelectronics just doesn't deliver these files?

@tcaputi
Copy link

tcaputi commented Jan 22, 2021

The code that STMCubeMx generates also doesn't include that. I think that it tries to use FreeRTOS for all of the internals. I believe all the code is there, its just not setup to build that code. I could be wrong though.

@valeros
Copy link
Member

valeros commented Feb 4, 2021

For some reason they don't include that files in the official STM32Cube packages (e.g. https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Drivers/CMSIS/RTOS2) even though the RTX RTOS has a permissive license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants