http://processors.wiki.ti.com/index.php/TI81XX_PSP_DCAN_Driver_User_Guide
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.
http://processors.wiki.ti.com/index.php/TI81XX_PSP_DCAN_Driver_User_Guide
Hi Derec,
I am working on DM814x device, but I will try to provide you some pointers for DM8127 (DM812x) device.
First of all, you should check whether the DM8127 device has DCAN controler. You can check this into the DM8127 datasheet. This check because I can see in the below wiki page that the PSP DCAN driver is supported for DM814x and DM813x/DM385 devices:
http://processors.wiki.ti.com/index.php/TI81XX_PSP_User_Guide#DCAN_Driver
DCAN functionality is available only for TI814X and TI813X.
Derec Lo said:I can see the can0 when I use "ip link", so I think the kernel setting is done.
The kernel setting is explained in the below wiki page. If you follow all the steps, then it is done.
http://processors.wiki.ti.com/index.php/TI81XX_PSP_DCAN_Driver_User_Guide#Detailed_Kernel_Configuration
On DM814x device, when I use the default config file (ti8148_evm_defconfig), this file is doing all these DCAN settings into the linux kernel.
Derec Lo said:However, I only found the three lines about d_can in kernel booting message as below.CAN device driver interfaceCAN bus driver for Bosch D_CAN controller 1.0d_can d_can: d_can device registered (irq=52, irq_obj=53)
I think this is fine. I have also these three lines at kernel boot time.
Derec Lo said:But, there are five lines in the post below,http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/204027/724007.aspx.
I suspect they add these prints manually, just for additional information.
Without these additional two lines, the DCAN commands are working fine at my side:
root@dm814x-evm:~# ip link set can0 type can bitrate 50000
root@dm814x-evm:~# ip link set can0 up
d_can d_can: can0: setting CAN BT = 0x1c18
BR
Pavel