AM62 MCAN Interface¶
The AM62 devkit supports 2 CAN interfaces, controlled by the M4 processor (MCUSS). These interfaces are available on the devkit via J11 (MCAN0) and J12 (MCAN1) [ pins 256/258 MCU_MCAN0_TX/RX pins 252/254 MCU_MCAN1_TX/RX ].
Objective¶
This example demonstrates a simple loopback between the 2 CAN interfaces from the MCU processor. It is heavily based on the TI example project, which was a single interface loopback.
Prerequisites¶
To run this example, you will need to have installed Code Composer and the TI SDK as shown in the M4FMCU_Development page
Steps¶
- Connect the 2 CAN interfaces together as shown here
- Install one of the termination jumpers (J17/J18)
Example project¶
- This project is available on the Critical Link Git repository (https://support.criticallink.com/gitweb/?p=mcan_loopback_polling_am62x-sk_m4fss0-0_freertos_ti-arm-clang.git;a=summary)
- Clone the repository and then import the project into code Composer Studio
- From the Project menu, select Import CCS Projects...
- With Select search-directory selected, Click the "Browse..." button and Select the working directory you cloned
- Make sure the mcan_loopback project is selected and click "Finish"
- The project includes a target configuration suitable for JTAG connection via an XDS200 emulator pod.
- Build the project
The output file will located at Debug/mcan_loopback_polling_am62x-sk_m4fss0-0_freertos_ti-arm-clang.out - Load the program using the remoteproc system
When you run the project you will see its output in the MCU terminal
Conclusion¶
This example sets the stage for using the MCAN interfaces from the MCU. The M4 image can be loaded and run from Linux on the A53 processor using the remoteproc Framework.
Inter-processor communication is then supported via Linux rpmsg device (TI has written one for their processor families)
Go to top