How to access hardware parts ¶
This section provides a step-by-step guide to using hardware parts (also known as Parts) in STM32CubeMX2. Follow the instructions below to manage HW Parts effectively:
1. Access the Parts Panel ¶
Open the STM32CubeMX2 application.
Click the “Parts” button on the left side bar to open the left “Parts” panel.
Starting from the “Board” project, the left “Parts” panel displays a list of available hardware parts mounted on each board, but not yet activated.
It is possible to add additional hardware parts (also known as standalone parts) to the project. These will be displayed in the Standalone Part section in the left Parts panel.
2. Activate a Part ¶
Locate the part to activate in the left Parts panel.
Click the part to display the configuration main tab.
Activate the part by using the Activate button in the configuration main tab.
After activation, the part’s configuration options become available.
3. Browse a Part configuration and views ¶
After activating a Part, explore its configuration options.
Navigate through different configuration chapters and views, such as code preview and detail view, associated with the part.
Make necessary adjustments to tailor the part configuration to your project requirements.
4. Deactivate a Part ¶
To deactivate a part, use the Deactivate button next to its name from the configuration main tab.
Deactivating a part disables its functionality and removes its configurations from the project.
5. Find and Add a new Part ¶
If the desired part is not displayed, use the Add Standalone Part(s) button in the left Parts panel.
Browse the available parts library and select the required part.
Click Add to include it in your project. The part appears in the left Parts panel.
Note
Adding a part to the project does not automatically add its software configuration. You must activate the part to include its software configuration in the project.
6. Remove a standalone Part ¶
To remove a standalone part from the project, first deactivate the part if it is active. In the part configuration main tab, click on the Deactivate button.
Next, in the left Parts panel, click on the three dots at the end of the part line to open the dedicated menu. Click on Remove.
The part will disappear from the left Parts panel.
Note
this is not possible to remove a board part, only standalone parts can be removed from the project.
7. Conclusion ¶
By following these steps, you can efficiently manage hardware parts in STM32CubeMX2.