cancel
Showing results for 
Search instead for 
Did you mean: 

Using STM32CubeIDE to load example Failed prelaunch for STM32MP257F-DK

EmilyB
Visitor

Hello,

I am attempting to run the OpenAMP_TTY_echo_CM33_NonSecure example following this guide Modify, rebuild and reload the firmware but run into the following error when attempting to run the example.

IDE Error

Error in final launch sequence:
 
Failed pre launch
Failed pre launch
Firmware remoteproc load failed, please:
    1. make sure that /lib/firmware on your target has space
    2. make sure that /lib/firmware has write access
 
  > you can open a Console View for this..

Serial Terminal Logs
[   82.376063] remoteproc remoteproc0: powering up m33
[   82.378336] remoteproc remoteproc0: Image is corrupted (bad magic)
[   82.381610] remoteproc remoteproc0: Boot failed: -22

Run configuration
Screenshot 2025-11-17 094808.pngScreenshot 2025-11-17 094854.png

 

I have attempted to use the .elf file as suggested here https://community.st.com/t5/stm32-mpus-software-development/error-using-cubeide-ro-run-an-example-application-for-the/m-p/721825 but get the a similar IDE error with the following logs.

Serial Terminal Logs
[ 64.542307] remoteproc remoteproc0: powering up m0
[ 64.629520] remoteproc remoteproc0: Booting fw image OpenAMP_TTY_echo_CM33_NonSecure.elf, size 3362196
[ 64.633466] remoteproc remoteproc0: bad phdr da 0x80100000 mem 0x540
[ 64.639731] remoteproc remoteproc0: Failed to load program segments: -22
[ 64.646805] remoteproc remoteproc0: Boot failed: -22


Any assistance would be greatly appreciated.

0 REPLIES 0