Skip to content

MCP2515 and SPI #264

Open
Open
@d-r-s-e

Description

@d-r-s-e

Having issues with the following hardware configuration:

Arduino Portenta H7
Arduino Portenta H7 Breakout Board
DFRobot MCP2515 CAN shield

I've used this shield as part of development programs with other Arduino based boards and some STM32 stuff in the past.
I have an oscilloscope on hand to verify issues and dedicated CAN network tools.

Using the base "send" example from the DFRobot library, it needed some work to allow the CS pin to operate correctly, however I'm still struggling to get connection via SPI.

I'm using pins as below:
CK = PI_1
SO = PC_2
SI = PC_3
CS = PI_0

I've verified that the connection from the code to the pin works by creating a simple "blink" program for each pin and verifying signal at the MCP2515.

Changing the code away from using the <SPI.h> library and using the mbed API for SPI gives similar results.

Has anyone got some worked examples with the SPI pins on the Portenta, even better one that uses the MCP2515...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions