Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The RDC example does not work on evkmimx8mp #17

Open
zionst opened this issue Apr 19, 2023 · 3 comments
Open

The RDC example does not work on evkmimx8mp #17

zionst opened this issue Apr 19, 2023 · 3 comments

Comments

@zionst
Copy link

zionst commented Apr 19, 2023

https://github.com/nxp-mcuxpresso/mcux-sdk-examples/blob/main/evkmimx8mp/driver_examples/rdc/
IMX8MP evaluation board: SCH-46370 REV B1
Affected BSP: All BSPs from NXP website with kernel lf-5.10.y and lf-5.15.y
MCUXpresso SDK version: SDK_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 board: SCH-31407 REV C4
Tested BSP: All BSPs from NXP website with kernel lf-5.10.y and lf-5.15.y
MCUXpresso SDK version: SDK_2.13.0_EVK-MIMX8MM

@zionst
Copy link
Author

zionst commented Apr 19, 2023

Please kindly note that I had also tried removing this RDC configuration assigned by SPL, to ensure only this example configures RDC. After booting from the newly compiled UBoot, the example still doesn't work.

@zejiang0jason
Copy link

Hi @zionst , Thanks for reporting this.

This project's binary can't be loaded and run by uboot. The right way is load M core binary using debugger. The project readme mention the limitation that can't run with uboot, but didn't mention the binary must be load by debugger, will update the readme.

thanks.

@zionst
Copy link
Author

zionst commented May 26, 2023

Thank you @zejiang0jason.

Does it support running from remoteproc in Linux? (I tried that as mentioned in the first thread, it didn't work.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants