Made this project to explore the AVR-toolchain.
Install CrossPack.
(untested)
Run sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude.
- Clone this repo
git clone [email protected]:TFE4850-group3/demo.git. - The code is in the firmware folder
cd demo/firmware. - If all dependencies are installed,
makeshould work, and if the AVR Dragon and the microcontroller is wired up and connected via USB,make flashshould work. - If
make flashdoesn't work, you might need to adddefault_programmer = dragon_jtag;to you~/.avrduderc-file.
All code is in main.c for now.
To try something else, edit it in your favorite text editor.
It should be possible to use Xcode on OS X.
I haven't tested this, but I assume File > Open and open the .xcodeproject thingy.