-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adafruit RP2040 CAN Bus Feather??? #1
Comments
Hello, unfortunately I dont have this board for testing. |
I have not worked with RP2040. And I do not know all the features of the SPI interface. I changed the SPI settings and changed the quartz frequency. It does not work. I need a speed of 1000000. I connected two CAN interfaces and connected them on a cable. I checked who transmits and who receives. Your adapter transmits five... CANsend, and then goes into nirvana. I look messages on another CAN. Candump does not work at all. |
I will take a look, i have ordered the board. |
Got it working on latest master. Can you try flashing |
thank you. the cansend, candump works. it seems that extended packages are not supported. DroneCan Gui does not see anything. sudo ip link set can1 up type can bitrate 1000000 You can run two copies of DroneCan Gui on different interfaces and connect them with a cable. |
29bit extended message ids are supported, but CAN-FD with up 64 bytes of payload is not supported with MCP25625 chip. So you can send just standard CAN frames with payload up to 8 bytes. |
I don't use CAN-FD. Just run DroneCan Gui. You won't see anything. DroneCan word only extended message ids. |
There was issue in USB communication with received CAN frames - they should be sent individually and not batched. |
On my PEAK I see that a new node has appeared. But on rp2040-can-mcp2515 I don't see the PEAK node or other devices. :( |
can you try setting dronecan splits bigger messages into several CAN messages with same CAN ID and the sent order is important to join messages |
I tried buffer 1 and both one. nothing is visible. I think the problem is not in transmission, but in reception. Maybe the timing is not set correctly? |
Can you reflash with modification again and verify if you are receiving messages via
change and stress testing for both directions:
I had around 4000 messages per second, and |
FAILED tests/hw_test.py::test_msgids[rp2040_receiver-0x1-extended] - assert None |
hmm, did you just change MCP2515_TX_BUFS to 1? Are all these tests failing everytime or randomly? Is it reproducible if you reconnect it in usb? maybe without hubs etc... |
everytime, without hubs. :( |
Sorry about delay, but I am still not able to reproduce any issue on two hardwares I have :( Tests cannot receive extended frames - this is really strange. Can you check CAN bus termination? you should be able to measure 60 ohm between HIGH and LOW. There should be 120 Ohm resistor on both furthest ends of the bus. |
Hi, have you tried adapting your project for Adafruit RP2040 CAN Bus Feather?
https://www.adafruit.com/product/5724 there is another crystal and other gpios.
The text was updated successfully, but these errors were encountered: