-
Notifications
You must be signed in to change notification settings - Fork 12
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
RaspberryPi Pico(RP2040) with MCP2518FDClick #23
Comments
Hello @rn-ksheer These pins correspond to SPI1, not SPI (aka SPI0 according to the documentation) Best regards |
hi @Koryphon , The pins I have used are default SPI (SPI0), When i disconnect any one of the SPI pins from pico , i get Configuration error 0x1 & when all pins are connected the below info gets printed on serial monitor which confirms lib is communication with pico.
I must be missing some other setting. |
Oups. Sorry. I checked the PIN number instead of the GPIO number. |
Finally got it working !! regards,
|
Hi Pierre,
I was successful in using acan2517 lib on Arduino nano with MCP2518FDClick board as sender and UNO with MCP2515 as receiver. I am unable to do the same with pico development board, The program compiles and uploads without any errors but not receiving any frames at UNO side. I have read your pdf document and made the changes to use custom SPI pins, still no success. Please point the necessary settings required to make pico work with MCP2518FDClick.
`SPI.setRX(16);
SPI.setTX(19);
SPI.setSCK(18);
SPI.setCS(17);
SPI.begin();
ACAN2517Settings settings (ACAN2517Settings::OSC_20MHz, 500UL * 1000UL) ;
settings.mRequestedMode = ACAN2517Settings::Normal20B; // Select loopback mode`
The text was updated successfully, but these errors were encountered: