cancel
Showing results for 
Search instead for 
Did you mean: 

Remoteproc error

nielsenni101
Associate

Hello,

I have compiled a custom image to run on the M4 core on my stm32mp157f-dk2. I generated the code using STM32CubeMX. I am able to build it fine but am having issues launching it on the m4 core. Here are the commands that I run.

 

echo executable.elf > /sys/class/remoteproc/remoteproc0/firmware
echo start > /sys/class/remoteproc/remoteproc0/state

 

The output I get is this

 

root@stm32mp1-brady:/lib/firmware# echo start > /sys/class/remoteproc/remoteproc0/state
[  169.647382] remoteproc remoteproc0: powering up m4
[  169.651669] remoteproc remoteproc0: Image is corrupted (bad magic)
[  169.657239] remoteproc remoteproc0: Boot failed: -22
-sh: echo: write error: Invalid argument

 

 I could not find a clear solution or cause to this. Does anyone know what this error means? 

 

I am able to run the OpenAMP_TTY_echo.CM4.elf on the M4 core using the same commands with no issues.

Thanks.

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @nielsenni101 ,

 

Did you test that your application is running find on engi boot ? 

 

Maybe comparison between CubeMX generated project and working exemple may help to identify the issue

 

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.