DESK-MP1-L/Development/Using the STM32CubeMX Configuration file (.ioc)

From DAVE Developer's Wiki
< DESK-MP1-L
Revision as of 17:39, 20 August 2023 by U0001 (talk | contribs) (Introduction)

Jump to: navigation, search
History
Issue Date Notes
August 2023 DESK-MP1-L-1.0.0 release


Introduction[edit | edit source]

This page explains the role of the STM32CubeMX Configuration file (.ioc) in the context of the DESK-MP1-L. Each hardware platform supported by the DESK-MP1-L has a specific .ioc file. For customers' convenience, these files are available in a dedicated repository available named stm32cubemx.git.

Generating the Device Tree files[edit | edit source]

U-Boot/Linux Device Tree (DT) files provided by the DESK-MX1-L are generated starting from a STM32CubeMX Configuration file as illustrated in the following image.

DESK-MP1-L-device-trees-generation.png

The first step consisted of creating a .ioc file with the help of the STM32CubeMX tool. The file name is the model version of the hardware platforms it is associated with. For instance, the file DCSB5000DD1R.ioc refers to the model of the SBC ETRA included in the evaluation kit (for more details about model version and serial numbers, please see this page).

STM32CubeMX is then used for exporting a set of intermediate files including the Device Trees. These DTs are subsequently tweaked by hand to add further hardware-specific definitions that it is not possible to handle with STM32CubeMX. The final DTs, along with other files, are eventually pushed to GitLab repositories accessible by the customers. These repositories are the same ones used by Yocto to build the Linux BSP.

Developing applications for the ARM Cortex M4[edit | edit source]

Another typical usage of the STM32CubeMX Configuration file is related to the development of applications for the ARM Cortex M4. In this case, the .ioc file can be imported in the STM32CubeIDE to start one's own project.