This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi E2E-team,
I am using Sitara-62x evm board and mcu_plus_sdk_am62x_08_04_00_16 for development. I want to implement MCAN interface for external communication. So, I have started with Loopback example code from SDK examples and modify it for external communication.
Can anyone tell me how to configure MCAN instances for external communication and how to modify the example code for this application
sdk:
ti-processor-sdk-linux-am62xx-evm-08.04.01.09
mcu_plus_sdk_am62x_08_04_00_16
Thanks in advance
Vadivel
Hello Vadivel,
In the MCU+SDK example, the loopback mode should be disabled (set as FALSE) in the MCAN configuration below:
Also the below E2E thread is regarding the use of Main domain CAN, but I believe it can be used as reference for connections in your MCU-CAN use-case too:
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1196164/processor-sdk-am62x-testing-can-interface-on-am62x-sk/4517929
Since the AM62x board does not contain an on-board transceiver, it is required to connect an external CAN transceiver to the AM62x SK to test the full functionality of CAN.
Please refer to the below Linux guide for CAN external transceiver suggested part:
https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/08_05_00_21/exports/docs/linux/How_to_Guides/Target/How_to_test_MCAN_on_AM62x.html#transceiver-on-am62x
Regards,
Krithika
Hi Krithika,
I have followed CAN external transceiver page. I am getting following error when i execute the command\.
Note: I am trying to do(setup/test) (M4f)MCU-CAN communication. We are trying to do send the CAN data from MCU-CAN(m4f) to external viewer like PCAN-view, ..etc tool which connected to ext-transceiver and PC.
sitara-evm(m4f) --> Ex.Tranceiver(SN65HVD230) --> pcan_view --> pc (computer)
pcan-view: www.amazon.com/.../
Step-1:
In: serial@2800000
Out: serial@2800000
Err: serial@2800000
Net: eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 0
=>
=>
=> setenv name_overlays k3-am625-sk-mcan.dtbo
=> boot
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
Failed to load 'boot.scr'
1490 bytes read in 2 ms (727.5 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
Running uenvcmd ...
1 bytes read in 2 ms (0 Bytes/s)
Step-2: As per the CAN external transceiver page instruction
root@am62xx-evm:/opt/harman# ip link set can0 down
Cannot find device "can0"
root@am62xx-evm:/opt/harman# ip link set can0 type can bitrate 125000
Cannot find device "can0"
root@am62xx-evm:/opt/harman# ip link set can0 up
Cannot find device "can0"
root@am62xx-evm:/opt/harman#
Regards,
Vadivel
Hi Vadivel,
Apologies for the delay. Please let us know if you are still facing this issue.
Regards,
Aparna