Skip to main content
Visitor II
November 17, 2025
Question

Using STM32CubeIDE to load example Failed prelaunch for STM32MP257F-DK

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.

3 replies

Olivier GALLIEN
ST Technical Moderator
November 27, 2025

Hi @EmilyB 

 

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

Which TSV did you use for OSTL ? 

 

Olivier

 

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.
Associate
October 22, 2026

Hello Emily I am getting the same fault, did you figured out what was wrong?

Associate
October 22, 2026

Nevermind, figured it out (:

You can check here if you are interested: