Firmware Development
The Heavy Duty Option
One option for firmware development (on windows) is to install WinAvr and Eclipse. Eclipse is a rather large, but featurefull IDE. It is also excellent for Java Programming (if you want to work on the BootLoader), and quite probably has a python package as well.
-
-
-
Install make from somewhere. Microsoft distributes a version i think. I Prefer Cygwin. Ming is another option.
Launch Eclipse
Goto Window → Perspectives → Other and select C/C++
Right click on the project window and select Import → CVS Project
enter in x0xb0x.cvs.sourceforge.net for server, /cvsroot/x0xb0x for cvsroot
goto Project Properties→ C/C++ Make Project → Discovery Options → Compiler Invocation Command → C:\WinAVR\bin\avr-gcc.exe
While you're still in the C/C++ Make Project properties sheet, goto the "Make Builder" tab, deselect "use default" in "Build Command", and point that to your make command.
Select the environment tab, and add a new environmnet variable "PATH", set it to $PATH$;<winavr path>;<make path>
With any luck, once you click okay, the project should start building.
Development On Debian Linux
These instructions should get you up and running under Debian GNU/Linux or similar environments (Ubuntu, etc).
apt-get install gcc-avr avr-libc make cvs
cvs -d:pserver:anonymous@x0xb0x.cvs.sourceforge.net:/cvsroot/x0xb0x login (hit enter for password)
cvs -z3 -d:pserver:anonymous@x0xb0x.cvs.sourceforge.net:/cvsroot/x0xb0x co -P firmware
cd firmware/
make
Development On Gentoo Linux
These instructions will set up a dev environment under Gentoo GNU/Linux, as of 2006.0 or so
emerge crossdev
crossdev -t avr (this takes a while)
emerge cross-avr/avr-libc ; emerge dev-embedded/avr-libc ; emerge cvs
cvs -d:pserver:anonymous@x0xb0x.cvs.sourceforge.net:/cvsroot/x0xb0x login (hit enter for password)
cvs -z3 -d:pserver:anonymous@x0xb0x.cvs.sourceforge.net:/cvsroot/x0xb0x co -P firmware
cd firmware/
make
Development On Mac OS X
downlaod and install the avrmacpack
cvs -d:pserver:anonymous@x0xb0x.cvs.sourceforge.net:/cvsroot/x0xb0x login (hit enter for password)
cvs -z3 -d:pserver:anonymous@x0xb0x.cvs.sourceforge.net:/cvsroot/x0xb0x co -P firmware
cvs -z3 -d:pserver:anonymous@x0xb0x.cvs.sourceforge.net:/cvsroot/x0xb0x co -P c0ntr0l
cd firmware/
make
download pySerial 2.4 and extract it, go into the created folder and type:
python setup.py install
Now change into the c0ntr0l folder and start the c0ntr0l application to upload the firmware
Connect your x0xb0x via USB, switch the Mode Button to Bootload and then power up your x0x
chage to the c0ntr0l folder and type
python c0ntr0l.py
The
GUI should appear, in the Menu choose: Serial → Port → /dev/usbserial-??????
In the Menu: x0xbox → upload Firmware; choose the file x0xb0x.hex from your firmware folder
Power off your x0x, switch to any ohter mode, power it on again and enjoy the new firmware
CategoryFirmware