Closed zbrown23 closed 2 years ago
I'm not sure why that would be.
I've added a document describing some known working tools that you can try testing with to confirm your hardware: https://github.com/KevinOConnor/can2040/blob/master/docs/Tools.md
As mentioned in that document, note that you need a fully functioning can bus containing at least two can bus chips before you can perform any code testing.
-Kevin
Hi Kevin,
I followed your advice and just set up my a bus with a CAN to usb dongle and a TI SN65HVD230D CAN transceiver connected to the pico. I didn't get anything out of the CAN to usb dongle, and also still got -1 from can2040_transmit()
, although I haven't put a logic analyzer on the TX or RX lines, nor the CANH/CANL lines. I'll see what those look like and report back.
Resolved by PRs associated with issue #14
Thanks for the update. Glad the issue was resolved.
-Kevin
Hi All,
I'm really looking forward to getting this library working, but I've been fighting with it a decent amount as time goes on.
currently my code looks as follows:
When I run it, I get nothing out of pins 0 and 1, and get a -1 from
can2040_transmit()
. This leads me to believe that the PIO FIFO is filling up and it's never starting in the first place. I do get a single pin pulled high, (either 0 or 1), but I'm not sure why that would be.for other reference, here's the CMakelists.txt for the target itself:
and the CMakelists.txt for my generic libraries folder
Thanks in advance! Zach