This repository contains sources for the slcan CANable 2.0 firmware. This firmware implements non-standard commands to support CANFD messaging (beta) alongside a LAWICEL-style command set.
O- Opens channelC- Closes channelsddxxyyzz- Sets nominal bitrate and bittimingyddxxyyzz- Sets data bitrate and bittimingtiiildd...- Transmits a classical base data frameTiiiiiiiildd...- Transmits a classical extended data framediiildd...- Transmits a FD base data frame without bit rate switchDiiiiiiiildd...- Transmits a FD extended data frame without bit rate switchbiiildd...- Transmits a FD base data frame with bit rate switchBiiiiiiiildd...- Transmits a FD extended data frame with bit rate switchVandv- Returns firmware version and remote path as a stringZandz- Configures reporting mechanism including time stamp and Tx eventMandm- Configures CAN acceptance filterF- Returns status flags
Please find more information in the doc directory or the wiki.
Firmware builds with GCC. Specifically, you will need gcc-arm-none-eabi, which
is packaged for OS X, and Linux on
Launchpad. Download for your
system and add the bin folder to your PATH.
Your Linux distribution may also have a prebuilt package for arm-none-eabi-gcc or gcc-arm-none-eabi, check your distro's repositories to see if a build exists. Simply compile by running make.
Plug in your CANable2 while boot pins are shorted with jumper. Neither the blue nor the green LED should be illuminated. Next, type make flash and your CANable will be updated to the latest firmware. Unplug/replug the device after moving the boot jumper back, and your CANable2 will be up and running.
See LICENSE.md