Skip to content

Latest commit

 

History

History
105 lines (68 loc) · 2.28 KB

VI-Firmware-Config-Steps.md

File metadata and controls

105 lines (68 loc) · 2.28 KB

Steps

  1. To install prerequisites and for detailed information on JSON firmware specification, reference to vi-firmware.openxcplatform.com/en/master/index.html

Open up a terminal (for consistency, call it terminal 1)

$ cd vi-firmware $ vagrant up

Once the virtual machine is up,

$ vagrant ssh $ cd /vagrant

Open up a second terminal (terminal 2)

Assuming your firmware is in a directory labeled vi-firmware, make sure that your JSON file with the firmware specification is in this folder and type the following in the terminal:

$ cd vi-firmware $ openxc-generate-firmware-code --message-set CellTest1.json > src/signals.cpp

  1. Build firmware

Python hex to int function: print int("0x51", 0) Python int to hex function: hex(2025)

IF BUILDING WITH CROSSCHASM CELLULAR

in terminal 2

$ cd src

(should be at /Users/dmeroux/vi-firmware/src)

modify config.cpp file to reflect proper options

in terminal 1

$ fab c5cell build

Make any modifications (e.g. roaming, etc.) in the signals.cpp file per http://vi-firmware.openxcplatform.com/en/latest/advanced/c5_cell_config.html

NOTE: SPECIFY serverConnectSettings.host as “vidata1.azurewebsites.net” and serverConnectSettings.port as 1433 (try 80 if this fails)

IF BUILDING WITH CROSSCHASM BLE

$ fab c5ble build

IF BUILDING WITH FORDBOARD

$ fab reference build

ALL AVAILABLE COMMANDS FOR BUILD

Available commands:

auto_functional_test
baremetal
build
c5
c5ble
c5bt
c5cell
chipkit
chipkit_functional_test
clean
debug
emulator
flash
functional_test
functional_test_flash
json
messagepack
msd_enable
obd2
protobuf
reference
reference_functional_test
release
test
test_mode_only
translated_obd2
transmitter

  1. Retrieve firmware output file (.bin or .hex)

Output files are located in ~./vi-firmware/src/build/FORDBOARD for Reference VI firmware;

For the CrossChasm C5 Cellular, replace "FORDBOARD" with "CROSSCHASM_C5_CELLULAR"; For the CrossChasm C5 BLE, replace "FORDBOARD" with "CROSSCHASM_C5_BLE"; For the CrossChasm C5 BT, replace "FORDBOARD" with "CROSSCHASM_C5_BT"

  1. Close out

In terminal 1, type:

$ vagrant suspend