Skip to main content
Graduate
August 5, 2024
Question

Remoteproc error

  • August 5, 2024
  • 1 reply
  • 1704 views

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.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 9, 2024

    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