Running CAN-BUS Sample with different shield (NRF52840DK & Seeed CAN BUS Shield V2.0) #61182
Replies: 4 comments 1 reply
-
Hi, you could try enabling CAN and SPI logging to get some more info from the mcp2515 and SPI drivers by adding |
Beta Was this translation helpful? Give feedback.
-
Sure, the output is : Using
Using
|
Beta Was this translation helpful? Give feedback.
-
D9 looks like the right pin for CS but the SPI communication looks bad. You may have an issue with SPI voltage levels. The nRF52840 is probably at 3.3V levels and and CAN transceiver is at 5V. So it's possible the CAN transceiver can't 'hear' the nRF52840. If you can increase the nRF52's voltage supply a bit higher (but within it's limits) with the DK external supply feature maybe it will communicate. |
Beta Was this translation helpful? Give feedback.
-
I tried asking on the NRF forum. And their diagnostic is around the same as yours. It seems it should be an issue with the Shield running at 5v and the NRF52DK at lower. They suggested doing some hacking on the board, but that is above my skill level. I suggested running the Shield on the arduino and running the lines to the DK but they advised against. At this point i believe my best course of action is trying to get a different Can-shield.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Im very new to this firmware space and would love some help.
Currently i have a NRF52840 DK Board with a Seeed Canbus shield. (CAN-BUS Shield V2.0 | Seeed Studio Wiki)
From what i have read is very similar to the DFROBOT CanBus Shield. (Only changing the default pinout for the CS from D10 to D9)
Error starting CAN controller [-5]
I have tried modifying the dfrobot_can_bus_v2_0.overlay to make it work with my seeed shield. (changing the CS-GPIOS to 15 (D9) instead of 16 (D10).
The error remains the same, and i dont really know how to get a little bit more information to progress on this.
Im trying to run this sample: zephyr/samples/drivers/can/counter at main · zephyrproject-rtos/zephyr (github.com)
Beta Was this translation helpful? Give feedback.
All reactions