Skip to main content
Visitor II
August 26, 2024
Solved

X-CUBE-STL Integration with RTOS

  • August 26, 2024
  • 2 replies
  • 1159 views

Hi ST Team,

I am planning to use the X-CUBE-STL library with the STM32H7 dual-core microcontroller and RTOS (ChibiOS, FreeRTOS). Could you please guide me on how to integrate X-CUBE-STL with RTOS like ChibiOS, FreeRTOS, SafeRTOS, etc.? Additionally, are there any resources available for development?

Thanks,

Nitish Sharma

    This topic has been closed for replies.
    Best answer by nouirakh

    Hello @nitish378 

    Integrating the X-CUBE-STL  with an STM32H7 dual-core microcontroller and an RTOS like ChibiOS or FreeRTOS involves several steps:

    *Prerequisites:

    -X-CUBE-STL Library: Download the latest version from the STMicroelectronics website.

    -RTOS (ChibiOS or FreeRTOS): Ensure you have the RTOS source code.

    *Setting Up the Development Environment:

    -IDE: Use an IDE like STM32CubeIDE or any other compatible IDE.

    -Toolchain: Ensure you have the appropriate toolchain installed (e.g., GCC for ARM).

    *Project Creation:

    Create a New Project:

    -Open your IDE and create a new project for the STM32H7 microcontroller.

    -Configure the project for dual-core operation if applicable.

    Add RTOS:

    -Integrate ChibiOS or FreeRTOS into your project. This typically involves adding the RTOS source files and configuring the RTOS settings (stack size, heap size).

    *Integrating X-CUBE-STL:

    Add X-CUBE-STL Library:

    -Copy the X-CUBE-STL library files into your project directory.

    -Include the necessary header files in your main application.

    Configure X-CUBE-STL:

    -Modify the stl_cfg.h file to match your hardware configuration.

    -Ensure that the library is configured to run self-tests during startup and periodically during runtime.

    *Modifying the RTOS Configuration:

    Task Creation:

    -Create a dedicated task for running the X-CUBE-STL self-tests. This task should have a higher priority to ensure timely execution of self-tests.

    Task Synchronization:

    -Use RTOS synchronization primitives (semaphores, mutexes) to manage access to shared resources between the self-test task and other tasks.

    Following these steps, you should successfully integrate the X-CUBE-STL library with your STM32H7 dual-core microcontroller and RTOS.

     

    2 replies

    nouirakhAnswer
    ST Employee
    August 26, 2024

    Hello @nitish378 

    Integrating the X-CUBE-STL  with an STM32H7 dual-core microcontroller and an RTOS like ChibiOS or FreeRTOS involves several steps:

    *Prerequisites:

    -X-CUBE-STL Library: Download the latest version from the STMicroelectronics website.

    -RTOS (ChibiOS or FreeRTOS): Ensure you have the RTOS source code.

    *Setting Up the Development Environment:

    -IDE: Use an IDE like STM32CubeIDE or any other compatible IDE.

    -Toolchain: Ensure you have the appropriate toolchain installed (e.g., GCC for ARM).

    *Project Creation:

    Create a New Project:

    -Open your IDE and create a new project for the STM32H7 microcontroller.

    -Configure the project for dual-core operation if applicable.

    Add RTOS:

    -Integrate ChibiOS or FreeRTOS into your project. This typically involves adding the RTOS source files and configuring the RTOS settings (stack size, heap size).

    *Integrating X-CUBE-STL:

    Add X-CUBE-STL Library:

    -Copy the X-CUBE-STL library files into your project directory.

    -Include the necessary header files in your main application.

    Configure X-CUBE-STL:

    -Modify the stl_cfg.h file to match your hardware configuration.

    -Ensure that the library is configured to run self-tests during startup and periodically during runtime.

    *Modifying the RTOS Configuration:

    Task Creation:

    -Create a dedicated task for running the X-CUBE-STL self-tests. This task should have a higher priority to ensure timely execution of self-tests.

    Task Synchronization:

    -Use RTOS synchronization primitives (semaphores, mutexes) to manage access to shared resources between the self-test task and other tasks.

    Following these steps, you should successfully integrate the X-CUBE-STL library with your STM32H7 dual-core microcontroller and RTOS.

     

    nitish378Author
    Visitor II
    August 27, 2024

    Thanks for Support