arduino / arduino/ArduinoCore-mbed
MCP2515 and SPI
- Dominant language
- C
- Stars
- 411
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
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 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...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the DFRobot library's base "send" example and the Portenta H7 SPI pin configuration for CK, SO, SI, and CS. Compare the behavior using SPI.h and the mbed SPI API while checking the signals at the MCP2515. Done means providing a worked Portenta H7/MCP2515 SPI example that establishes communication.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino, c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100