How to access middleware & utilities ¶
This section provides a step-by-step guide to using middlewares and utilities in STM32CubeMX2. Follow the instructions below to manage middlewares and utilities:
1. Access the Middleware & Utilities Panel ¶
Open the STM32CubeMX2 application.
In the left sidebar, click on Open Middlewares & Utilities button to open the Middlewares & Utilities panel.
The left panel displays a list of available middlewares and utilities.
After project creation, the list contains default middlewares and utilities (not yet activated), if any. These middlewares and utilities cannot be removed from the list, and their names are prefixed by a lock icon.
It is possible to add more middlewares and utilities to the project.
2. Activate a middleware or utility ¶
Locate the middleware or utility to activate in the Middlewares & Utilities left panel.
Click on the middleware or utility to display its configuration tab.
Activate the middleware or utility by clicking on Activate button in the configuration main tab.
After activation, the configuration options for the middleware or utility become available.
3. Browse a middleware or utility configuration and views ¶
After activation, explore the configuration options for the middleware or utility.
Navigate through configuration chapters and views, such as code preview and detail view, associated with the part.
Adjust the configuration to meet project requirements.
4. Deactivate a middleware or utility ¶
To deactivate a middleware or utility, click on Deactivate next to its name in the configuration tab.
Deactivating a middleware or utility disables its functionality and removes its configuration from the project.
5. Find and add a new middleware ¶
If the desired middleware is not listed, click on Add middleware… button in the Middlewares & Utilities section of the left panel to open the Add middleware to your middleware panel selection windows.
The selection window displays the middleware library available for the project. Middlewares already in the project are selected and cannot be unselected.
Browse the available middleware library and select one or more to add to the project. Use filters to search for the desired middleware, and add columns for new filters or search criteria.
Click on Add (x) middleware to your middleware panel to include the selected middleware in your project. The new middleware appears in the Middlewares & Utilities left panel.
After adding the middleware, activate it to access its features.
6. Find and add a new utility ¶
If the desired utility is not listed, click on Add utility… button in the Middlewares & Utilities section of the left panel to open the Add utility to your utility panel selection windows.
The selection window displays the utility library available for the project. Utilities already in the project are selected and cannot be unselected.
Browse the available utility library and select one or more to add to the project. Use filters to search for the desired utility, and add columns for new filters or search criteria.
Click on Add (x) utility to your utility panel to include the selected utility in your project. The new utility appears in the Middlewares & Utilities left panel.
After adding the utility, activate it to access its features.
7. Remove a middleware or utility ¶
To remove a middleware or utility from the left panel, first deactivate the middleware or utility if it is active. In the middleware or utility configuration main tab, click on the Deactivate button.
Next, in the left Middlewares & Utilities section panel, click on the three dots at the end of the middleware or utility line to open the dedicated menu. Click Remove.
The middleware or utility will disappear from the left Middlewares & Utilities panel.
Note
this is not possible to remove a default middlewares or utilities, only added middlewares or utilities can be removed from the project.
8. Conclusion ¶
By following these steps, you can efficiently manage middleware and utilities in CubeMX2.