-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
COMPILING
28 lines (16 loc) · 1.03 KB
/
COMPILING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-= Compiling with make =-
To compile you need a the gcc-avr toolchain and standard make utilities.
On Ubuntu/Debian this can be installed with:
apt-get install build-essential gcc-avr avr-libc binutils-avr avrdude
After that execute "make" in the main directory, and the modem firmware should compile.
You can use avrdude to flash to an Arduino compatible board. Have a look at the "flash" script, it makes this easy. If your board is connected to /dev/ttyUSB0, simply run:
./flash USB0
And avrdude should upload the firmware to the board.
-= Eclipse =-
If you want to use the Eclipse IDE, follow these steps:
- Install the AVR-eclipse plugin from http://avr-eclipse.sourceforge.net/wiki/index.php/Plugin_Download
- In eclipse, create a new project (File -> New -> Project…)
- In the new project box, select C/C++ -> “Makefile Project with Existing Code”
- Select a name, and locate the MicroModem folder for “Existing Code Location”
- Select “AVR-GCC Toolchain” in “Toolchain for indexer settings”
- Click “Finish”