- Using the Cortex M4 on IMX7D
Re: Using the Cortex M4 on IMX7D
toggle quoted messageShow quoted text
From: Kumar Gala <firstname.lastname@example.org>
Sent: vendredi 26 février 2021 17:27
To: Michael Graichen <email@example.com>
Cc: firstname.lastname@example.org; Arnaud POULIQUEN
Subject: Re: [Zephyr-users] Using the Cortex M4 on IMX7D
On Feb 26, 2021, at 3:43 AM, Michael Graichen<email@example.com> wrote:
factors/smarc/smarc-samx7.html) together with Zephyr I noticed that the
I have just started working on a IMX7D
Colibri iMX7 Board has support for the Cortex M4.
So I've build an example by using:resource table.
cmake -GNinja -DBOARD=colibri_imx7d_m4 ../samples/basic/blinky
and tried to load that on the Cortex M4
echo -n zephyr.elf > /sys/class/remoteproc/remoteproc0/firmware
echo -n start > /sys/class/remoteproc/remoteproc0/state
Unfortunatly the start fails because the elf-file has no resource table.
I can select TOP ---> Additional libraries ---> [*] coprocessor
resource table within menuconfig but the resulting elf-file is still missing the
What am i missing? How can a add a resource table to the elf-file?
The Linux remoteproc framework allows you to load a firmware without a resource table.
The resource table is useful only if you want to use the RPMsg protocol or a trace buffer.
So this should work, except if the IMX platform driver doesn't allow this....
I don’t believe the remoteproc loading was ever supported for the imx family
with zephyr. This is something you’d need to add support for. I think it might
be supported on the STM32 MP1 as an example. (I added Arnaud on CC as he
added the STM32 MP1 support).
Right, I think today only the stm32mp1 support the resource table in zephyr, but this should be enough generic to
be supported by another platform.
Anyway if you don't want to use RPMsg, probably better as a first step to understand why you
can not load a firmware without resource table.
For the i.mx I think you can load via u-boot and there’s a section in the zephyr
board docs here about it:
Join firstname.lastname@example.org to automatically receive all group messages.