]> rtime.felk.cvut.cz Git - ortcan-www.git/blob - lincan/usbcan/index.mdwn
USB-CAN firmware build instructions.
[ortcan-www.git] / lincan / usbcan / index.mdwn
1 [[!meta title="USB-CAN1 Board and LinCAN Support"]]
2
3 The USB-CAN implements support for USB to CAN converters developed
4 at [Control Engineering Department][dce] of the [Czech Technical University][ctu].
5
6 The project includes embedded software/firmware of the USB-CAN converter as well
7 as Linux kernel side support (for both [[LinCAN|lincan]] driver and SocketCAN found in Linux mainline now).
8
9 LPC2148+SJA1000 and LPC1768 based hardware is supported by firmware which
10 is based on [[LinCAN|lincan]] driver sources adapted to run on bare MCU hardware.
11
12 The firmware sources are included in can-usb1 branch of [[LinCAN|lincan]] GIT repository.
13
14     git clone --branch can-usb1 git://ortcan.git.sourceforge.net/gitroot/ortcan/lincan
15     cd lincan
16
17 Edit build-embedded.sh to select required target board. The default select LPC2148+SJA1000
18 configuration. Change to next for LPC1768 based board
19
20     BUILD_DIR=embedded-build/lpc1768
21     OMK_CONFIG=embedded/board/arm/lpc17xx-common/config/config.usbcan
22
23 The firmware can be found in appropriate build output directory
24
25     embedded-build/lpc1768/_compiled/bin
26
27 The uLAN USB boot block is expected by default LPC1768 firmware build
28 for for firmware flashing and startup but variant for direct startup
29 can be compiled as well.
30
31 SocketCAN Linux side support is included in branch vanekjir branch of
32 [Real-Time Systems group][rtime]'s clone of [SocketCAN GIT][rtime-socketcan-devel].
33
34 [rtime]:http://rtime.felk.cvut.cz/
35 [rtime-socketcan-devel]:http://rtime.felk.cvut.cz/gitweb/socketcan-devel.git
36 [dce]:http://dce.fel.cvut.cz/
37 [ctu]:http://www.cvut.cz/