cancel
Showing results for 
Search instead for 
Did you mean: 

How do I flash (download) an STM32MP157f-dk image created from IOC build?

smanger
Associate III

I created an STM project of the STM32MP157f-dk2 in eclipse.

smanger_0-1752001029479.png

I've tried to build the entire A7 core linux code. How do I replace what's on the dk2 now? The dk2 just has the starter package on it.

3 REPLIES 3
smanger
Associate III

I noticed that when I build the linux kernel, the output goes to:

 gcnano-driver-stm32mp-6.4.19-stm32mp1-r1-rc8-r0 -> STM32MPU-Ecosystem-v6.0.0/Developer-Package/stm32mp1-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/arm-ostl-linux-gnueabi/gcnano-driver-stm32mp-6.4.19-stm32mp1-r1-rc8-r0
linux-6.6.48 -> STM32MPU-Ecosystem-v6.0.0/Developer-Package/stm32mp1-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/arm-ostl-linux-gnueabi/linux-stm32mp-6.6.48-stm32mp-r1-r0/linux-6.6.48
Makefile.ide -> STM32MPU-Ecosystem-v6.0.0/Developer-Package/stm32mp1-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/arm-ostl-linux-gnueabi/linux-stm32mp-6.6.48-stm32mp-r1-r0/linux-6.6.48/../Makefile.ide

 I try following the same steps as building and copying linux kernel.

When it comes to the following step:

find ${OUTPUT_BUILD_DIR}/arch/${ARCH}/boot/dts/ -name 'st*.dtb' -exec cp '{}' ${OUTPUT_BUILD_DIR}/install_artifact/boot/ \;

there are not any `dtb` files.

most likely you built into source directory. have a look into linux-6.6.48/arch/arm64/boot/dts

albertelisa8
Associate

You’ll need to use STM32CubeProgrammer to flash the image. Make sure the board is in USB boot mode Juwa, then connect and flash the generated .stimg or .bin via DFU or UART.