# How to install Sample Code on STM32CubeMX This section will introduce how to download the `sample code` from **STM32CubeMX**. ## Usage Before start to coding, we need to select specific board/platform from **STM32CubeMX** to generate code. And there are two different way to implement. ### Open Software Fisrt step, you need to open the **STM32CubeMX** by clicking icon as shown below. ![image](https://hackmd.io/_uploads/SyCLO34YC.png) When the window appears on your screen, you can select one to install sample code. The details will be described in the different topics listed below: - MCU Selector - Embedded Software Packages ![image](https://hackmd.io/_uploads/HJFJt24YC.png) --- ### MCU Selector The contents will be included on the future documents, so just refer the next section. ### Embedded Software Packages In the right hand side, you will see the `INSTALL/REMOVE` button on the window, you can click button to next window. ![image](https://hackmd.io/_uploads/Bkk-Lp4F0.png) Select the specific platform according to your board. In this case, I have a **NUCLEO-STM32H753ZI**, so choosing `STM32H7` was a better option because it is compatible with the board. ![image](https://hackmd.io/_uploads/HkI4vaNFC.png) Expand the lists and choosing newest version to install. ![image](https://hackmd.io/_uploads/HkmvPTEY0.png) After completing the download, you will find the relevant information in `C:\Users\<USER>\STM32Cube\Repository\STM32Cube_FW_H7_V1.11.2\`. ![image](https://hackmd.io/_uploads/BkIpspEFR.png) And you can navigate to `.\Projects\NUCLEO-H743ZI\Examples` to find some examples. ![image](https://hackmd.io/_uploads/ByILQREYR.png) ## Other Information