Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: johnabel on March 25, 2021, 10:21:23 AM

Title: CAN default connection in TE0803 / TE0808
Post by: johnabel on March 25, 2021, 10:21:23 AM
I have a TE0803 board on a TE0808 carrier. I noticed the CAN bus goes to the CPLD, I'm inteersted in knowing where the default CPLD firmware connects it to. Is it to the PS CAN port, so I can use CAN from the PS without any changes?
Title: Re: CAN default connection in TE0803 / TE0808
Post by: JH on March 29, 2021, 08:38:16 AM
Hi,

MIO <-> TEBF0808 Carrier Can are simple forwarded to:
https://wiki.trenz-electronic.de/display/PD/TEBF0808+CPLD#TEBF0808CPLD-CAN
Source code is available on the download area of the carrier
https://shop.trenz-electronic.de/en/Download/?path=Trenz_Electronic/Modules_and_Module_Carriers/5.2x7.6/5.2x7.6_Carriers/TEBF0808/REV04/Firmware

Quotewithout any changes?
I would not say without changes. You must setup PS and your Linux design correctly.
br
John
Title: Re: CAN default connection in TE0803 / TE0808
Post by: johnabel on March 29, 2021, 11:04:19 AM
Thanks. I meant without any changes in the CPLD firmware. In the PS configuration I can select the MIO pins for the CAN peripheral. So I'd like to know which MIO pins do the CPLD connect the CAN driver to.
Title: Re: CAN default connection in TE0803 / TE0808
Post by: JH on March 29, 2021, 11:08:16 AM
Hi,
MIO was my mistake, sorry.
it goes through PL, see:
https://wiki.trenz-electronic.de/display/PD/TEBF0808+CPLD#TEBF0808CPLD-PortDescription
or Starterkit reference design:
https://wiki.trenz-electronic.de/display/PD/TE0808+StarterKit#TE0808StarterKit-BlockDesign

br
John
Title: Re: CAN default connection in TE0803 / TE0808
Post by: johnabel on March 29, 2021, 11:33:19 AM
I'm ever more confused... do you mean the CPLD U17 connects CAN pins to the FPGA PL so I should use EMIO pins on the PS to use CAN?
Title: Re: CAN default connection in TE0803 / TE0808
Post by: JH on March 29, 2021, 12:06:42 PM
TE0803 PS CAN  ( over EMIO) <->  PL side (FPGA IO) <-> B2B connector  <-> TEBF0808 CPLD <->  TEBF0808 CAN Transceiver <-> TEBF0808 CAN connector

https://wiki.trenz-electronic.de/display/PD/TE0808+StarterKit#TE0808StarterKit-BlockDesign
https://wiki.trenz-electronic.de/display/PD/TEBF0808+CPLD#TEBF0808CPLD-PortDescription
https://wiki.trenz-electronic.de/display/PD/TEBF0808+TRM#TEBF0808TRM-CANFDTransceiver
https://wiki.trenz-electronic.de/display/PD/TEBF0808+Getting+Started#TEBF0808GettingStarted-Overview


br
John