imx93 无法加载 mcimx93evk_ethosu_apps.elf,如果 mcimx93evk_ethosu_apps.elf 需要 OCRAM。我正在尝试示例代码。
mcimx93evk_ethosu_apps。在这种情况下,elf 需要使用 OCRAM(某些变量太大)。
在精灵建造完成后。我将这个 elf 文件加载到 m33 中。
它总是失败:
remoteproc remoteproc0:已注册的例外情况不符合请求要求
remoteproc remoteproc0:错误的 phdr da 0x20480000 mem 0x60000
remoteproc remoteproc0:加载程序段失败:-22
远程进程 remoteproc0:启动失败:-22
可能是由于冲突导致内存分配失败。
为什么?
示例代码如下:
来自 sdk_examples 的 mcimx93evk_ethosu_apps。请您查看一下这个示例好吗?
i.MX 8M | i.MX 8M Mini | i.MX 8M NanoRe: imx93 failed to load mcimx93evk_ethosu_apps.elf if mcimx93evk_ethosu_apps.elf need OCRAM.NXP 网站上的 SDK 版本为:
2.14.xx
有人成功将 mcimx93evk_ethosu_apps 加载到 m33 吗?
如何在m33中成功运行mcimx93evk_ethosu_apps?
谢谢。Re: imx93 failed to load mcimx93evk_ethosu_apps.elf if mcimx93evk_ethosu_apps.elf need OCRAM.我没有修改ld。
m_ocram(RW):ORIGIN = 0x20480000,LENGTH = 0x00060000
__attribute__ ((section(".bss.tensor_arena_ocram"),aligned(32))) uint8_t inferenceProcessTensorArena[TENSOR_ARENA_SIZE];
将 elf 文件加载到 m33 后的结果:
remoteproc remoteproc0:错误的 phdr da 0x20480000 mem 0x60000
Re: imx93 failed to load mcimx93evk_ethosu_apps.elf if mcimx93evk_ethosu_apps.elf need OCRAM.Hi,
这个app仅适合在Uboot中加载。对于remoteproc,drivers/remoteproc/imx_rproc.c中并未定义OCRAM的memory属性。

Best Regards,
Zhiming