Skip to content

olin-electric-motorsports/MKV-Code

Repository files navigation

MKV-Code

MKV-Code

Getting Libraries

First run the setup.sh script to get all the defualt AVR libraries.

$ sudo bash setup.sh

Then you need to add an additional AVR library for the specific MCU we use (ATmega16m1)

$ bash getDir.sh

Compiling and Flashing Boards

To flash your C code onto an ATmega, you need to compile that code into a certain type that the ATmega can read. Sounds compilcated! Luckily, we have a nice series of scripts that does it all for you!

$ python3 make.py

Then just enter what board you want to flash and select if you want to flash it or just compile it. If you're flashing the board for the first time make sure to set the fuse bits on the MCU by typing "fuses" when prompted like so:

$ Flash (y/n) or Set Fuses(fuses):fuses

Voila! Happy programming

About

Repository for all firmware used on OEM MKV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published