MCUXpresso RDC example does not work on i.MX8M Plus

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

MCUXpresso RDC example does not work on i.MX8M Plus

710 Views
sonfly
Contributor I

https://github.com/nxp-mcuxpresso/mcux-sdk-examples/blob/main/evkmimx8mp/driver_examples/rdc/

IMX8MP evaluation boardSCH-46370 REV B1
Affected BSPAll BSPs from NXP website with kernel lf-5.10.y and lf-5.15.y
MCUXpresso SDK versionSDK_2.13.0_EVK-MIMX8MP

 

Testing Procedure:

Case 1, in U-Boot:

load mmc 2:2 0x70000000 lib/firmware/rdc.bin
cp.b 70000000 0x7e0000 20000
bootaux 0x7e0000

Case 2, in Linux:

echo -n rdc.elf > /sys/class/remoteproc/remoteproc0/firmware
echo start > /sys/class/remoteproc/remoteproc0/state

Expected Output:

RDC Example:
RDC Peripheral access control
RDC Peripheral access control with SEMA42
RDC memory region access control

RDC Example Success

Actual Output (in both cases):

RDC Example:
RDC Peripheral access control

I also tried running each of the three test cases APP_RDC_Periph(), APP_RDC_PeriphWithSema42() and APP_RDC_Mem() by commenting out the other two, all failed. Even though HardFault_Handler was triggered, memDemoError equals 3 in Fault_Handler.

However, the same RDC example for IMX8MM evk works perfectly:

https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/evkmimx8mm/driver_examples/rdc

IMX8MM evaluation boardSCH-31407 REV C4
Tested BSPAll BSPs from NXP website with kernel lf-5.10.y and lf-5.15.y
MCUXpresso SDK versionSDK_2.13.0_EVK-MIMX8MM


Any help or suggestion is much appreciated!

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

609 Views
sonfly
Contributor I

Hi, would someone be able to confirm if this is a bug please?

0 Kudos
Reply

692 Views
Chavira
NXP TechSupport
NXP TechSupport

Thank you for contacting NXP support!

This application can't support running with Uboot! and accordingly, it does not support Flash target and DDR target!

This example aims to show the basic usage of the IP's function, some of the used Resources are assigned to the Cortex-A core by uboot.

 

mcux-sdk-examples/readme.txt at main · nxp-mcuxpresso/mcux-sdk-examples (github.com)

0 Kudos
Reply

685 Views
sonfly
Contributor I

Thanks for the prompt help, Chavira.

This application can't support running with Uboot!

As I mentioned, I also tried running it by remoteproc in Linux. 

accordingly, it does not support Flash target and DDR target!

OK. But the application is compiled with MIMX8ML8xxxxx_cm7_ram.ld rather than MIMX8ML8xxxxx_cm7_ddr_ram.ld nor MIMX8ML8xxxxx_cm7_flash.ld. It should have supported running from TCM.

some of the used Resources are assigned to the Cortex-A core by uboot

I believe you were referring to this RDC configuration assigned by SPL. I have removed them and loaded the new UBoot, the example still doesn't work.

Could you please suggest what else I can try?

0 Kudos
Reply