Other Parts Discussed in Thread: ISO1050
Hi ,
I am having some problems debugging DCAN on AM5728.
Actually i am using
Chip : AM5728
Sdk : ti-processor-sdk-linux-am57xx-evm-03.00.00.04
Board : custom board
Software : linux-4.4.12
Driver : SDK comes with
Kernel configuration :
I run these commands on the board when the print is as follows:
root@am57xx-evm:~# canconfig can0 bitrate 50000 ctrlmode triple-sampling on
can0 bitrate: 50000, sample-point: 0.875
can0 ctrlmode: loopback[OFF], listen-only[OFF], tripple-sampling[ON],one-shot[OFF], berr-reporting[OFF]
root@am57xx-evm:~# canconfig can0 start
[ 393.072922] net can0: c_can_hw_raminit_wait_syscon: time out
[ 393.078825] c_can_platform 4ae3c000.can can0: setting BTR=1c18 BRPE=0000
can0 state: ERROR-ACTIVE
root@am57xx-evm:~# cansend can0 -i 0x10 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88
interface = can0, family = 29, type = 3, proto = 1
[ 419.986200] can: controller area network core (rev 20120528 abi 9)
[ 419.992558] NET: Registered protocol family 29
[ 420.003311] can: raw protocol (rev 20120528)
root@am57xx-evm:~# dmesg | grep can
[ 6.398169] pinctrl-single 4a003400.pinmux: could not add functions for dcan1_pins_default 14288x
[ 6.408972] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=352)
[ 6.500225] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
[ 393.072922] net can0: c_can_hw_raminit_wait_syscon: time out
[ 393.078825] c_can_platform 4ae3c000.can can0: setting BTR=1c18 BRPE=0000
[ 419.986200] can: controller area network core (rev 20120528 abi 9)
[ 420.003311] can: raw protocol (rev 20120528)
[ 420.008568] c_can_platform 4ae3c000.can can0: entered error warning state
[ 420.008645] c_can_platform 4ae3c000.can can0: entered error passive state
[ 420.016469] c_can_platform 4ae3c000.can can0: entered bus off state
[ 420.016486] c_can_platform 4ae3c000.can can0: bus-off
I refer to this document: http://processors.wiki.ti.com/index.php/Linux_Core_DCAN_User's_Guide
This is described in the documentation: If the CAN bus is not properly connected or some hardware issues DCAN has the intelligence to generate an Error interrupt and corresponding error details on hardware registers.
So these problems should be how to solve it?
I hope to give some help or advice.
Thanks.
Butter.





