ALIEN – ALtitude Imaging Entering Near-space

June 19, 2010

It’s ALIVE!

Filed under: Uncategorized — Daniel Richman @ 10:44

Further to my last post – I’ve now had some time to play with the XPLAIN board and I have successfully followed this guide http://fourwalledcubicle.com/blog/archives/508 to program the device without any external programmers: using code from the “LUFA” project you flash the on-board ATUSB with a bridge to access the XMEGA’s PDI pins; and the USB device pretends to be an AVRISPmkII. Great success!

Couple of notes:

  • Don’t even bother trying FLIP on linux, especially not 64bit. Compile the LUFA code on linux if you don’t have WINAVR installed, reboot to your dual boot windows, do the first half of that article (flashing the ATUSB) and then come back to linux to use avrdude and access the ATXMEGA
  • The article mentions that AVRDUDE doesn’t yet support PDI programming. Since then it would appear to have been implemented, however, AVRDUDE for Ubuntu 9.10 is too old to do PDI programming. You can just install the 10.04 deb. You know your AVRDUDE is too old if you get either of these
    avrdude: Yikes!  Invalid device signature.
    avrdude: verification error; content mismatch
  • If you’re having trouble accessing the ATUSB’s bootloader, jumper pins 1 and 2 like it says, connect up the USB power, then using whatever metallic tool you have nearest to you, tap the RST (middle top) pin to one of the ground pins on the ATUSB’s header (pins 6 and 10, I believe).
  • Stuff like DDRB and PINB and PORTB as you knew it has been changed when using avrlibc in xmega mode: PORTB.DIR, PORTB.OUT, PORTB.IN.

PS: I attempted to restore the xplain to its funky-sound-flashy-state using the hex files that are provided by AVR, on the xplain pages, however this did not work (perhaps an oddity of avrdude). Instead, I used avrdude -U flash:r:temp.hex:i to back up the contents of its flash before I overwrote anything, and used that file to reset the xmega to its original state later.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: