Guide AN13970 Incorrect

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Guide AN13970 Incorrect

Jump to solution
942 Views
gfrung
Contributor II

This guide is incorrect and does not work for the i.MX 8ULP:

AN13970: Running Zephyr RTOS on Cadence Tensilica HiFi 4 DSP | NXP Semiconductors

Specifically, this line:

For i.MX 8ULP (imx8ulp_evk/mimx8ud7/adsp board), the above command can be used.

In fact, the command does not work for the i.MX 8ULP.  This command results in an error:

> west build -p always -b imx8ulp_evk/mimx8ud7/adsp samples/subsys/ipc/openamp_rsc_table

zephyrproject/zephyr/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c:31:2: error: #error "Sample requires definition of shared memory for rpmsg"
31 | #error "Sample requires definition of shared memory for rpmsg"
| ^~~~~

I'm not asking how to fix this error; I'm letting you know that the guide is incorrect.  Please correct the guide with any additional steps required for a successful build on the i.MX 8ULP, so it can aid future readers.

Note that the steps in the guide work fine for the other three processors: i.MX 8M Plus, i.MX 8QuadMax and i.MX 8QuadXPlus.  So, it is just the i.MX 8ULP portion that needs correcting.

Labels (1)
0 Kudos
Reply
1 Solution
903 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

According to the author, the following pull requests has not been fully merged at the moment:

https://github.com/zephyrproject-rtos/zephyr/pull/83049

https://github.com/zephyrproject-rtos/zephyr/pull/84170

You may try these code themselves, or wait until they get merged.

Note that for the sample to work on i.MX 8ULP, there's also a pending patch for Linux Kernel:

https://patchwork.kernel.org/project/linux-remoteproc/patch/20250305123923.514386-1-iuliana.prodan@o...


Best Regards,
Zhiming

View solution in original post

2 Replies
904 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

According to the author, the following pull requests has not been fully merged at the moment:

https://github.com/zephyrproject-rtos/zephyr/pull/83049

https://github.com/zephyrproject-rtos/zephyr/pull/84170

You may try these code themselves, or wait until they get merged.

Note that for the sample to work on i.MX 8ULP, there's also a pending patch for Linux Kernel:

https://patchwork.kernel.org/project/linux-remoteproc/patch/20250305123923.514386-1-iuliana.prodan@o...


Best Regards,
Zhiming

926 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Have reported this issue and i will update here once get the solution.

Best Regards,
Zhiming

%3CLINGO-SUB%20id%3D%22lingo-sub-2056603%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EGuide%20AN13970%20Incorrect%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2056603%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20guide%20is%20incorrect%20and%20does%20not%20work%20for%20the%20i.MX%208ULP%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.nxp.com%2Fbundle%2FAN13970%2Fpage%2Ftopics%2Fopenamp_rsc_table_application.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EAN13970%3A%20Running%20Zephyr%20RTOS%20on%20Cadence%20Tensilica%20HiFi%204%20DSP%20%7C%20NXP%20Semiconductors%3C%2FA%3E%3C%2FP%3E%3CP%3ESpecifically%2C%20this%20line%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%20class%3D%22%22%3EFor%20i.MX%208ULP%20(imx8ulp_evk%2Fmimx8ud7%2Fadsp%26nbsp%3Bboard)%2C%20the%20above%20command%20can%20be%20used.%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%20class%3D%22%22%3EIn%20fact%2C%20the%20command%20does%20not%20work%20for%20the%20i.MX%208ULP.%26nbsp%3B%20This%20command%20results%20in%20an%20error%3A%3C%2FP%3E%3CPRE%3E%26gt%3B%20west%20build%20-p%20always%20-b%20imx8ulp_evk%2Fmimx8ud7%2Fadsp%20samples%2Fsubsys%2Fipc%2Fopenamp_rsc_table%3CBR%20%2F%3E%3CBR%20%2F%3Ezephyrproject%2Fzephyr%2Fsamples%2Fsubsys%2Fipc%2Fopenamp_rsc_table%2Fsrc%2Fmain_remote.c%3A31%3A2%3A%20error%3A%20%23error%20%22Sample%20requires%20definition%20of%20shared%20memory%20for%20rpmsg%22%3CBR%20%2F%3E31%20%7C%20%23error%20%22Sample%20requires%20definition%20of%20shared%20memory%20for%20rpmsg%22%3CBR%20%2F%3E%20%20%20%7C%20%20%5E~~~~%3C%2FPRE%3E%3CP%20class%3D%22%22%3EI'm%20not%20asking%20how%20to%20fix%20this%20error%3B%20I'm%20letting%20you%20know%20that%20the%20guide%20is%20incorrect.%26nbsp%3B%20Please%20correct%20the%20guide%20with%20any%20additional%20steps%20required%20for%20a%20successful%20build%20on%20the%20i.MX%208ULP%2C%20so%20it%20can%20aid%20future%20readers.%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CEM%3ENote%20that%20the%20steps%20in%20the%20guide%20work%20fine%20for%20the%20other%20three%20processors%3A%20i.MX%208M%20Plus%2C%26nbsp%3Bi.MX%208QuadMax%20and%20i.MX%208QuadXPlus.%26nbsp%3B%20So%2C%20it%20is%20just%20the%26nbsp%3Bi.MX%208ULP%20portion%20that%20needs%20correcting.%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2056603%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX8ULP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2056819%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Guide%20AN13970%20Incorrect%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2056819%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAccording%20to%20the%20author%2C%20the%20following%20pull%20requests%20has%20not%20been%20fully%20merged%20at%20the%20moment%3A%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Fpull%2F83049%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Fpull%2F83049%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Fpull%2F84170%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Fpull%2F84170%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EYou%20may%20try%20these%20code%20themselves%2C%20or%20wait%20until%20they%20get%20merged.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3ENote%20that%20for%20the%20sample%20to%20work%20on%20i.MX%208ULP%2C%20there's%20also%20a%20pending%20patch%20for%20Linux%20Kernel%3A%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fpatchwork.kernel.org%2Fproject%2Flinux-remoteproc%2Fpatch%2F20250305123923.514386-1-iuliana.prodan%40oss.nxp.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fpatchwork.kernel.org%2Fproject%2Flinux-remoteproc%2Fpatch%2F20250305123923.514386-1-iuliana.prodan%40o...%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2056663%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Guide%20AN13970%20Incorrect%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2056663%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EHave%20reported%20this%20issue%20and%20i%20will%20update%20here%20once%20get%20the%20solution.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E