Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HELLO, i tried esp32 with mcp2515 bun not working #40

Open
lepromer opened this issue Aug 14, 2022 · 6 comments
Open

HELLO, i tried esp32 with mcp2515 bun not working #40

lepromer opened this issue Aug 14, 2022 · 6 comments

Comments

@lepromer
Copy link

HELLO, i tried esp32 with mcp2515 bun not working, did you tested with esp32, what i can i doing wrong,
CS 5
INT 27
CLK 18
SI 19
SO 23

@collin80
Copy link
Owner

I'm not sure. The MCP2515 code is very old at this point. Fairly quickly we moved to the CAN-FD hardware and the 2515 code was not touched since. You will probably have to do some debugging by dumping registers and/or putting debugging statements at various places to see what is going on.

@AsmodeusX
Copy link

AsmodeusX commented Aug 15, 2022

I can confirm, it does initialize but won't work at all.

@jeroenveer
Copy link

Works fine on my ESP32 with MCP25625 did needed some minor changes.

@NMSTEC
Copy link

NMSTEC commented Oct 25, 2022

EDIT: Correction, seems MCPlibrary starts sending bullshit SPI register. Still working on it.

So receive works, as long as we are transmitting on the same bus. Go figure. Been checking every register state that could cause that, can't see why.

image

@NMSTEC
Copy link

NMSTEC commented Oct 25, 2022

@NMSTEC
Copy link

NMSTEC commented Oct 26, 2022

Seems we are never clearing the interrupt flags. So it stops interrupting as per docs.
image
Thats issue 1,

Issue 2 is everytime the MCP2515 stops transmitting it, we for some reason request to read "mode_normal"...
image

This has got to be a simple issue somwhere, and yet im still fighting it. half a mind to start rewriting library myself step by step. Currently on vacation so no JTAG debugging for me :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants