To build for the Ford prototype, compile with the flag PLATFORM=FORDBOARD.
Pre-compiled binaries (built with the BOOTLOADER flag enabled, see all compiler flags) are compatible with the OpenLPC USB bootloader - follow the instructions for Flashing User Code to update the vehicle interface.
The OpenLPC USB bootloader is tested and working, and enables the LPC17xx to appear as a USB drive. See the documentation in that repository for instructions on how to flash the bootloader (a JTAG programmer is required).
If you are running a supported bootloader, you don’t need any special programming hardware. Compile the firmware to run under the bootloader:
$ make clean
$ PLATFORM=BLUEBOARD BOOTLOADER=1 make -j4
The compiled firmware will be located at build/lpc17xx/cantranslator-lpc17xx.bin. See the :doc:`bootloaders </installation/bootloaders>`_ page for instructions on how to load the firmware.
Once the dependencies are installed, attach a JTAG adapter to your computer and the CAN translator, then compile and flash:
$ make clean
$ PLATFORM=BLUEBOARD make -j4
$ PLATFORM=BLUEBOARD make flash
The config files in this repository assume your JTAG adapter is the Olimex ARM-USB-OCD unit. If you have a different unit, modify the src/lpc17xx/lpc17xx.mk Makefile to load your programmer’s OpenOCD configuration.
On the LPC17xx, UART1 is used for OpenXC output at the 230000 baud rate. Like on the chipKIT, hardware flow control (RTS/CTS) is enabled, so CTS must be pulled low by the receiving device before data will be sent.
Logging will be on UART0, which is exposed on the bottom of the board at J3, a 5-pin ISP connector.
The Ford prototype has 2 RGB LEDs.
LED A
LED B