This project is intended to provide firmware for emulating a car on a single PCB.
/
└─── verification/
└─── firmware/
└─── c
└─── py
└─── tests/
└─── deps/
Files in this folder are for use by manufacturer to verify that all electrical connections are correct.
Firmware folder contains the firmware which actually emulates the car.
Each language subfolder is dedicated to implementations for those langages. For example, the py folder contains the required integrations and code to run the emulation in python.
This should contain any unit tests or similar items.
Any source code dependencies needed to build the project
You will need the following packages installed
gcc-arm-none-eabi
cmake
install elftools with:
pip install 'pyelftools>=0.25'
NOTE: Run the following command to fetch git the dependencies.
git submodule update --init
To build run:
./build.sh
You can rebuild cleanly by running:
./build.sh clean
WARNING: you need to remove main.py
before uploading a new set of firmware. This will prevent a large number of issues involving automatic code execution.
Install ampy
pip3 install adafruit-ampy
Move to the release dir and start the install script
cd release
./install.sh
Press and hold the BootSel and Reset buttons. release the Reset button, then release the BootSel button. The script should take over from there.
rp3 is set up to log output in a format readable by socketcan. Run the following commands to get everything setup.
sudo slcand /dev/ttyACM0
sudo ip link set slcan0 up
cansniffer slcan0