cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the fw_cortex_m4.sh. in a STM32MP157C DK2 Yocto build?

lsalv
Associate II

Hi all,

yesterday I just booted the amazing STM32MP1 DK2 device with a brand new Yocto build (st-image-weston). Can't find the fw_cortex_m4.sh . Is that available just in the STM32CubeMP1_Package or maybe I need to add another layer and build for another target?

1 ACCEPTED SOLUTION

Accepted Solutions

You can find more informations about boot modes here :

https://wiki.st.com/stm32mpu/index.php/STM32CubeMP1_Package#Select_boot_mode_for_m4_examples

Otherwise the M4 firmware are also built in yocto image. You can find more informations here :

https://wiki.st.com/stm32mpu/index.php/STM32CubeMP1_Package#Introduction_to_m4projects_recipe

View solution in original post

4 REPLIES 4
Olivier GALLIEN
ST Employee

Hi,

fw_cortex_m4.sh is specific to an M4 firmware application.

You can find one in each Cube-M4-examples pre-load in the image here :

root@stm32mp1:/usr/local/Cube-M4-examples/STM32MP157C-DK2/Examples/

Olivier

Olivier GALLIEN
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.
lsalv
Associate II

I think I'm missing something.

I build and flash the yocto OpenSTLinux then I was following this doc...

https://wiki.st.com/stm32mpu/index.php/OpenSTLinux_directory_structure

But now that I booted with a terminal on /dev/ttyACM0 I got this ...

Select the boot mode

1:   stm32mp157c-dk2-sdcard

2:   stm32mp157c-dk2-a7-examples-sdcard

3:   stm32mp157c-dk2-m4-examples-sdcard

And run some of them:

root@stm32mp1:/usr/local/Cube-M4-examples/STM32MP157C-DK2#

But means that those are built an pushed as separate images?

I can't find event the M4 images, like the OpenAMP_TTY_echo.elf, it's on the board but no in the Yocto build directory.

I'm sure I didn't get where this data comes from :D

You can find more informations about boot modes here :

https://wiki.st.com/stm32mpu/index.php/STM32CubeMP1_Package#Select_boot_mode_for_m4_examples

Otherwise the M4 firmware are also built in yocto image. You can find more informations here :

https://wiki.st.com/stm32mpu/index.php/STM32CubeMP1_Package#Introduction_to_m4projects_recipe

Thank you very much.

This doc was exactly what I was looking for.

Thank you!