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
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