kkuchera / canalyze-fw

Firmware for the CANalyze hardware.

Home Page:https://kkuchera.github.io/canalyze/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CANalyze Firmware

Native Linux CAN interface. This firmware can be used with the CANalyze hardware.

Features

  • Native CAN interface in Linux
  • Uses SocketCAN and 8dev device driver.
  • USB 2.0 FS and CAN 2.0 interface
  • Support for 11-bit and 29-bit CAN IDs
  • Normal, listen only, loopback and one shot modes
  • Reports CAN errors
  • User defined baud rates
  • Built entirely using open source software
  • Designed for reverse engineering

Installation

You need the CANalyze hardware.

Install required packages

$ sudo apt-get install gcc-arm-none-eabi openocd dfu-util
$ git clone https://github.com/kkuchera/canalyze-fw
$ cd canalyze-fw
$ mkdir lib

Download and unzip STM32CubeF0 to lib/.

Connect the BOOT pins and press reset. Then run

$ make dfu

to make and download the firmware onto the device. Finally remove the BOOT pins jumper and press reset again to start the application.

If you are going to do a lot of flashing it's probably easier to get a STM32 programmer, such as the ST-LINK/V2, and connect the SWD pins. Then you just need to run

$ make flash

when you want make and flash the firmware onto the device.

Getting started

Bring up CAN interface

$ sudo ip link set can0 up type can bitrate 500000

Sniff CAN messages

$ cansniffer -c can0

or dump all CAN messages

$ candump can0

Send a CAN message

$ cansend can0 666#01020304

About

Firmware for the CANalyze hardware.

https://kkuchera.github.io/canalyze/

License:MIT License


Languages

Language:C 87.5%Language:Assembly 9.6%Language:Makefile 2.7%Language:C++ 0.2%