News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

CAN bus with TE0803 + TEBF0808

Started by joseer, January 16, 2020, 06:02:57 PM

Previous topic - Next topic

joseer

Hello,

I'm trying to work with the CAN bus on these kit, which I routed through EMIO using the dedicated PL pins HDIO_SC18 and HDIO_SC19 but unfortunately when I boot petalinux I've got:

root@petalinux:~# dmesg | grep can
[    4.549207] vcan: Virtual CAN interface driver
[    4.562231] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    5.271851] can: controller area network core (rev 20170425 abi 9)
[    5.282329] can: raw protocol (rev 20170425)
[    5.286563] can: broadcast manager protocol (rev 20170425 t)
[    5.292190] can: netlink gateway (rev 20170425) max_hops=1
[    5.590828] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    5.774347] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.092708] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.105726] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.135895] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.166650] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.285767] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.442707] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.469466] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.499414] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.532316] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.566771] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    6.788985] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[    7.112159] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13


Did you test/try the CAN bus with this kit in petalinux? any ideas what could it be wrong?

Thanks.

joseer

I ran the vivado "starterkit" reference project and I've got it working now, it was down to get the correct setup in the device tree can node.

JH

Hi,
good to hear that it works now.

Short note: In case you change something on PS setup or PS-PL address space, always regenerate all files. Everything belongs together.

br
John