
Educators: Earn a free Gold upgrade by joining the PBwiki Back To School Challenge.
Does not seem to be description on website of the compilation process.
Downloaded wiring source by:
svn co svn://wiring.uniandes.edu.co/trunk/wiring
Downloaded wiring environment (version 0013) from:
http://wiring.org.co/download/wiring-0013.dmg
wiringHello.pde
wiringHello.pde contains exactly the sketch written in the environment. No other metadata.
#include "WProgram.h"
#include "HardwareSerial.h"
#include "HardwareSerial.h"
(yes, it #included HardwareSerial.h twice...)
The header is followed by the main sketch file verbatim, followed by the subsketch text verbatim. So the file looks like this
<header> <sketch code> <subsketch code>
1/22/08 - Once you have your .cpp file, you can then compile it against the wiring libraries using a Makefile. The Makefile is based on the Arduino Makefile (I used the Arduino one because it was better organized and easier to modify. It was also more flexible in terms of easily changing what source files you need to include in your project). I unfortunately cannot try programming the chip just yet, since I need a 10 pin header on my programmer (mine has a 6 pin header). Will have to wait till I have access to the stk500.
The bootloader on our wiring boards seems to be incompatible with avrdude. Links:
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1192470635
http://www.chip45.com/index.pl?page=Crumb128_Downloads&lang=en
http://www.avride.com/article/wiring/
We burned the bootloader from avride onto the wiring board, and avrdude succeeded in uploading code. I uploaded my wiringHello.hex file that I compiled with the Makefile to the board and the LED blinked. Huzzah!
Used "make upload" in my updated makefile to program the wiring board.
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |