Dear NXP,
We are working on IMX8QM-MEK board with Android 8.1 automotive OS.To enable the CAN driver in IMX8QM-MEK board, I have followed the below steps but not able to get the data in M4 core, when I send the data through PCAN tool.
Took reference as "flexcan_loopback_transfer.c" from this path ${Project directory path}/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QM/boards/mekmimx8qm/driver_examples/flexcan/loopback_transfer/cm4_core1 and created flexcan.c(attached).
In flexcan.c file inside flexcan_callback function definition always I am receiving status as "kStatus_FLEXCAN_ErrorStatus" when I send CAN data form PCAN. So, not able to process FlexCAN Rx/Tx event.
Will you please tell me how to configure Flexcan Rx/Tx event.
Thanks & Regards,
Siva sankar.
Hi @siva172901
I hope you are doing well.
Can you please share the connection details of CAN with it's end device?
Thanks & Regards
Sanket Parekh
Hi Sanket,
We are using PCAN-USB adapter for CAN connection. In IMX8QM-MEK board using CAN0 slot, from PCAN-View software sending CAN data & trying to observe data in M4 core debug port.
Thanks & Regards,
Siva Sankar.
Hi @siva172901
I understood your connections.
Have you connected all this connections with IMX8QM-MEK?
Thanks & Regards
Sanket Parekh
Yes connected in CAN0 slot.
Hi Sanket,
I didn't check loopback(can0).
In another project we had used IMX8QM-MEK with automotive android 11 os for CAN interface, their it was working.
So, without loopback(can0) check, I proceeded further by taking reference of that. Here we were working on automotive android 8.1 os with IMX8QM-MEK board.
Regards,
Siva.
Hi @siva172901
Loopback of can0 will give us more detail. Please check loopback of can0.
Thanks & Regards
Sanket Parekh
Hi Sanket,
Now able to get CAN data in M4 core. Please close the ticket.
Thanks & Regards,
Siva sankar.