Portenta H7 CAN Bus

Hello,

I have been trying for several weeks to get my Portenta H7 with expansion board to read or write to a CAN bus. I have been using the read/write examples in the machine control library with no success. I have tried connecting my transceiver to both the CAN 0 and CAN 1 connections on the breakout board because I cannot tell which one the example program uses. However with either example and either CAN connection I have been unable to get the Portenta to read or write to a known good CAN bus with proper termination resistors. Has anyone been able to get CAN working with the Portenta's built-in CAN controllers? Thanks in advance!

Collin,
Did you figure out CAN on the Portenta H7? If you did please, let us know what you've learned. I am heading down the same trail soon.

I would like to get it working with CAN FD but for regular CAN it works fine with Adafruit CAN Pal - CAN Bus Transceiver - TJA1051T/3. Adafruit CAN Pal - CAN Bus Transceiver [TJA1051T/3] : ID 5708 : $3.95 : Adafruit Industries, Unique & fun DIY electronics and kits

Hi @rlr_jcn ,
I have been trying to use the Adafruit CAN pal TJA1051T/3 with the Portenta H7 to read regular CAN messages but couldn't figure it out. Could you maybe help me out with some source material or documentation to get going?
Thank you so much

Hello :slight_smile:

If you are using the Portenta Breakout or your custom board, an external transceiver is therefore required.

Alternatively, you can use the Portenta Hat Carrier or Portenta Mid Carrier, which come with a high-speed CAN FD transceiver.

Further information is available on Arduino Docs:

Best,