Thursday, September 18. 2008Comments (0) Trackbacks (0) (AVR-)Dude, Arduino crashes fixed!
In anticipation of new thermoplast extruder parts, I built a Dremel toolhead for my RepRap. It should be able to do light milling, such as PCB isolation routing!
I was hoping to do some milling. But the G-Code firmware had problems, it kept crashing when I sent G-Codes. I've been debugging the firmware for quite a while. When I was just starting to go crazy, Wade (from the RepRap community) pointed out that it could be a compilation problem of ubuntu's AVR compilation toolchain [edit] Is fixed on Ubuntu Intrepid (8.10), so this problem will soon be irrelevant![/edit]. And that was it... all this time it wasn't a program bug, it was a compiler bug! The windows version of the avr-toolchain produced HEX code that DID run well! Here's how I did it: I used the Arduino software to compile the v.1.3 G-Code firmware (as described here). Recompiling it on Windows in a VM (I don't have windows computers around) created a ROM file. After some searching I found that it saves ROM files in a file named: C:\Documents and Settings\erik\Local Settings\Temp\build?????.tmp Make sure you don't exit the arduino software, or the build will be gone! Since I can't connect to the Arduino from windows (FTDI drivers won't install, device remains unrecognized), I transfer the .HEX file to Ubuntu again. There I downloaded and installed AVRDUDE, an open source package to program AVRs such as the one Arduino is based on. This is how I programmed it: $ wget http://download.savannah.gnu.org/releases/avrdude/avrdude-5.5.tar.gz No no no, thank you, AVRDUDE! |
QuicksearchCategoriesSyndicate This Blog |