EPC-R3720 CAN control

@Jems_Cheng
Thank you for your answer about Stby.
However, I checked the link and could not find a way to operate CAN1/CAN2 on the M7.
On the EPC-R3720 that I currently own, CAN1 works normally from the M7. Why is it working normally even though the Stby signal is not connected? Also, which signal is the Stby signal of CAN1/CAN2 on the EPC-R3720 connected to?
I apologize for asking a similar question, but please tell me how to set up CAN1/CAN2 to work on the EPC-R3720.
I checked the operation with [imx8mp-rsb3720-a1-rpmsg-can2.dtb] that Jems_Cheng provided in his previous answer, but no data was sent from either CAN1 or CAN2.
Could you please publish the circuit diagram for the EPC-R3720?

The “SPDIF_EXT_CLK” has been connected to the “UART1_WAKE#” pin:
The SAI2_MCLK has been connected to the “GPIO_LED” pin:

If so, how should the CAN1/CAN2 Stby signal be set?

On A53 (Linux), both CAN1 and CAN2 are working normally.
What is the setting of the Stby signal in that case?

@Jems_Cheng
Current status is shown below.

  1. DTB file: “imx8mp-rsb3720-a1-can-1_nt.dtb”
    Original tree with CAN1 and 2 settings added based on imx8mp-evk.dts (dts attached)
  2. M7 program: MCUX_SDK2.12 [evkmimx8mp\driver_examples\flexcan\interrupt_transfer] modified for CAN1 and 2
  3. CAN1_PCAN.png: Screens when data is sent from CAN1 to PCAN-USB, and then sent from PCAN-USB to CAN1 after successful completion
  4. CAN2_PCAN.png: Sending data from CAN2 to PCAN-USB. Looping because transmission is not complete


    imx8mp-rsb3720-a1-can-1_nt.dts.pdf (79.5 KB)

Again, I would like to ask you to please make the circuit diagram for EPC-R3720 publicly available.

Self-solved
It was discovered that the problem was in the CAN driver (fsl_flexcan) in MCUX-SDK Ver2.12.0. Line 4647
s_flexcanIsr(FLEXCAN1, s_flexcanHandle[2]);
The correct setting for the first argument above is [FLEXCAN2]

1 Like