This is an open-source dual channel CAN FD to USB-C adapter. It is meant to be used with the Zephyr-based CANnectivity firmware.
Assuming you already have a working Zephyr development environment (see Getting Started Guide), the firmware workspace can be initialized using:
west init -m "https://github.com/leonwip/ubiquitous-waddle" --mr main my-workspace
cd my-workspace
west updateThen to build the release variant (with reduced logging):
west build -b ubiquitous_waddle --sysbuild cannectivity/app -- -DSB_CONF_FILE=sysbuild-dfu.conf -DFILE_SUFFIX=usbd_next_releaseTo flash via JLink (SWD):
west flash --runner jlinkTo flash via USB DFU:
dfu-util -a 0 -D build/app/zephyr/zephyr.signed.bin.dfu
Verify successful connection:
$ lsusb | grep CANnectivity
Bus 005 Device 014: ID 1209:ca01 Generic CANnectivity USB to CAN adapterDetermine interface names:
$ ip link show type can
16: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
link/can
17: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
link/canBring up the interface (with FD on):
sudo ip link set can0 up type can bitrate 250000 dbitrate 1000000 fd onSend some frames (##1 opposed to just # turns on BRS):
cansend can0 123#11.22.33
cansend can0 123##111.22.33CANnectivity is licensed under the Apache-2.0 license. This board is licensed under the CERN-OHL-P-2.0 license.