Not able to get the CAN data in M4 core in IMX8QM-MEK board

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

Not able to get the CAN data in M4 core in IMX8QM-MEK board

1,139 Views
siva172901
Contributor I

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.

@vinothkumars  

0 Kudos
8 Replies

1,121 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,116 Views
siva172901
Contributor I

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.

@vinothkumars   

0 Kudos

1,112 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @siva172901 

I understood your connections.

Have you connected all this connections with IMX8QM-MEK?

PCAN connection.png

Thanks & Regards

Sanket Parekh

0 Kudos

1,110 Views
siva172901
Contributor I

Yes connected in CAN0 slot.

0 Kudos

1,106 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @siva172901 

Have you checked loopback(can0) on M4 core?

Thanks & Regards

Sanket Parekh

0 Kudos

1,103 Views
siva172901
Contributor I

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.

0 Kudos

1,092 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @siva172901 

Loopback of can0 will give us more detail. Please check loopback of can0.

Thanks & Regards

Sanket Parekh

0 Kudos

1,085 Views
siva172901
Contributor I

Hi Sanket,

Now able to get CAN data in M4 core. Please close the ticket.

 

Thanks & Regards,

Siva sankar.

0 Kudos