cancel
Showing results for 
Search instead for 
Did you mean: 

ST32MP1 - CUBEMX Generated dts file , unable to compile

NPal.2
Senior

Hi ,

I am trying to follow the tutorial which is here : https://www.youtube.com/watch?list=PLnMKNibPkDnFeV4sBarnsAtFTg7h6V-9_&v=XhB0rGLjl_Q&feature=youtu.be

This is one of the workshop which i am trying to recreate. At 11:50 , the commands are listed to generate the dtb file from dts file. But when i try to follow it , it is not working and unable to generate dtb file from dts file.

I have OpenSTLinux dunfell 5.10.10 flashed on the STM32MPU.

I also tried folllowing this tutorial but this also does not seem to work on latest version :

https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package

Any leads will be appreciated how to achieve it as in latest SDK it is not working.

4 REPLIES 4
OlivierK
ST Employee

Hello NPal.2 (Community Member),

Could you please check which tool version of CubeIDE you use to generate the dts file?

With OpenSTLinux Dunfell 5.10.10, STM32CubeIDE v1.6.1 should be used to generate the DTS,

Also make sure the boot image partitions are also compliant with this version of kernel (use a Starter package image V3.0 with STM32CubeProgrammer v2.7 if not sure). Then follow the same tutorial and it should work (as I did).

Best Regards,

Olivier

LudovicR
ST Employee

Hello NPal.2,

I confirm that the recommended IDE is now STM32CubeIDE that provides now much more support in order to address dts update

You will find explanation here : https://wiki.st.com/stm32mpu/wiki/STM32CubeIDE, in order to create STM32 Cube project and configure peripherals thanks to embedded CubeMX but also the way inside CubeIDE:

. to install Yocto SDK - https://wiki.st.com/stm32mpu/wiki/How_to_install_the_Yocto_Project_SDK_in_STM32CubeIDE

. to manage OpenSTLinux projects and compile dts - https://wiki.st.com/stm32mpu/wiki/How_to_manage_OpenSTLinux_projects_in_STM32CubeIDE

STM32CUbeIDE is making the link in between CubeMX generated .dts and OpenSTLinux projects compilation, providing dedicated build target.

Hope this help.

Best Regards,

LudovicR

NPal.2
Senior

Thanks a lot @LudovicR​ , @OlivierK​ 

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question.

See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.