/Importing STM32CubeMX Projects Using CrossWorks for ARM

Importing STM32CubeMX Projects Using CrossWorks for ARM

Video: Importing STM32CubeMX Projects Using CrossWorks for ARM


This video covers the import of projects created in STMicroelectronics STM32CubeMX. STM32CubeMX is a free graphical tool provided by STMicroelectronics. STM32CubeMX allows configuration of STM32 microcontrollers and generation of the corresponding initialization C code through a step-by-step process. To follow along with this tutorial you will need STM32CubeMX installed CrossWorks for ARM V3 or later installed and activated. Optionally an STM32 based evaluation board such as the Nucleo-L073RZ. Here we see a basic project setup in STM32CubeMX.

I have used the steps suggested in the Stmicroelectonics demo entitled 'STM32CubeMX in 5 points' to setup this project. Once the project is setup go to Project > Settings. Give your STM32CubeMX project a name and location. You can choose to export to various toolchains. CrossWorks can import both IAR's EWARM and Keil's MDK-ARM V4 or V5 project formats. I will use the MDK-ARM V5 project option. The other tabs of this form give you many more options but I will stick with the defaults for now. Choose Project > Generate Code Once done you can view the exported project file by clicking the 'Open Folder' button on the next dialogue box. Open CrossWorks Before we import the project file generated by STM32CubeMX We need to ensure that we have the relevant board support packages installed. I am using the Nucleo-L073RZ so I search for its's suppport package as shown.

CrossWorks will automatically install any other support packages required for the board I have selected. Go to File > Import IAR EWAR /Keil MDK project. Browse to the exported project file you created and double click on the project file as shown. A dialogue box opens called 'Project Template Chooser'. Displaying relevant templates. I am going to use the Nucleo_L073RZ template, but you could also use the more generic STM32 template. Click Okay The next dialogue allows you to confirm the target processor. This is the processor I have, so again I can click okay. And that's it, lets just see if everything is okay by creating a small program to check everything is working as expected. For more information about CrossWorks for ARM please visit us at www.rowley.co. uk or try one of our other videos.

READ  PlayBytes: Play Games Best Practices

Thanks for watching..