esp32_can icon indicating copy to clipboard operation
esp32_can copied to clipboard

HELLO, i tried esp32 with mcp2515 bun not working

Open lepromer opened this issue 2 years ago • 6 comments

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

lepromer avatar Aug 14 '22 11:08 lepromer

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.

collin80 avatar Aug 14 '22 22:08 collin80

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

AsmodeusX avatar Aug 15 '22 23:08 AsmodeusX

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

jeroenveer avatar Aug 16 '22 08:08 jeroenveer

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 avatar Oct 25 '22 20:10 NMSTEC

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 :(

NMSTEC avatar Oct 26 '22 02:10 NMSTEC