cancel
Showing results for 
Search instead for 
Did you mean: 

Using STM32CubeIDE to load example Failed prelaunch for STM32MP257F-DK

EmilyB
Associate

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.

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @EmilyB 

 

Error you get is typical of a secure issue with your binary.

Which TSV did you use for OSTL ? 

 

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.
Announcement

We’re moving the ST Community to a new platform to give you a better and more reliable community experience.