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

RuntimeError: Cannot put MCP2517/18FD into config mode #12

Open
jhonrputra opened this issue Mar 25, 2022 · 5 comments
Open

RuntimeError: Cannot put MCP2517/18FD into config mode #12

jhonrputra opened this issue Mar 25, 2022 · 5 comments

Comments

@jhonrputra
Copy link

Hi,

I tried these commands:
from canpico import *
c = CAN()

Then it raised an error:
RuntimeError: Cannot put MCP2517/18FD into config mode

Any insight?

Thank you.

Regards,
Jhon R Putra

@kentindell
Copy link
Owner

That indicates the controller chip has failed to respond to the SPI command to put it into config mode. It could be a hardware failure: bad SPI connection, or a chip fault. Or it could possibly be the USB power supply isn't powering up the controller properly.

There are two versions of the CANPico: one where the Pico was hand-soldered down on the board, and one where the pick and place machine did it. Do you know which you have? (All the boards we send out are individually tested, and the "add your Pico" board was tested using a 'bed of nails' rig, so it's possible that the later hand soldering of a Pico had a problem).

@kentindell
Copy link
Owner

Also is it a MCP2517FD or a MCP2518FD CAN controller on the PCB?

@kentindell
Copy link
Owner

Have been doing some investigation and I think the pick and place machine that assembled the Pico on to the CANPico didn't do a proper job in some cases, causing the soldering of the SPI pins on the Pico to be bad, which in turn causes a lack of communication with the CAN controller, and then the software doesn't hear back and gives that error message.

We are now going back to our PCB assembler to get the boards re-worked. But if you want to get up and running now this can be fixed easily enough with a quick bit of soldering: if you're confident enough for that: hand solder the pins on the Pico that are connected to the CANPico underneath (you don't have to do all the Pico's pins: just the ones that have labels on the underside of the CANPico PCB).

@zelat
Copy link

zelat commented Dec 6, 2023

Why your board don't share GND with Pico board? Do I need to connect the CAN board's GND to Pico's GND?

@kentindell
Copy link
Owner

It does share a ground. The boards come assembled with a Pico W, so this should not be an issue.

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

3 participants