Adafruit is open and shipping! Let's build back better, together!
0

programming x0x atmega from serial port
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

programming x0x atmega from serial port

by gzifcak on Wed Jan 30, 2008 10:48 pm

hi,
the usb in my x0xb0x is apparently not working, so i was wondering about upgrading the firmware from a serial port.

does anyone know if it would be possible with one of these:
http://microcontrollershop.com/product_ ... ts_id=1820

and this program:
http://www.lancos.com/prog.html
?

if so, would i need to have it in bootload mode? or do i just turn on the x0xb0x and hook it up, then use ponyprog to send it the hexfile?

thanks in advance for any suggestions,
greg
gzifcak
 
Posts: 150
Joined: Wed Oct 26, 2005 3:46 pm
Location: san francisco

by Entropy on Thu Jan 31, 2008 8:46 am

I'm not entirely familiar with the x0x, but I do recall it has an AVR in it, and I'm fairly certain it has an ICSP header. (Not sure if it's 10-pin or 6-pin).

That serial programmer should work if there is an ICSP header, but Ladyada's USBTinyISP is more "future proof" since it doesn't rely on a (rapidly disappearing) RS-232 serial port. (Many USB-to-serial converters will not work for AVR programming.)
Entropy
 
Posts: 472
Joined: Tue Jan 08, 2008 12:43 am
Location: Owego, NY USA

by gzifcak on Thu Jan 31, 2008 12:19 pm

great! thanks for the info. would i need to have the x0x in its "bootload" mode or would it work just powered up in any state (that's my impression)?
gzifcak
 
Posts: 150
Joined: Wed Oct 26, 2005 3:46 pm
Location: san francisco

by adafruit on Thu Jan 31, 2008 3:15 pm

theres no ICSP on the x0xb0x....wish i had put one on :(

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by Entropy on Thu Jan 31, 2008 5:31 pm

Entropy
 
Posts: 472
Joined: Tue Jan 08, 2008 12:43 am
Location: Owego, NY USA

by gzifcak on Fri Feb 01, 2008 4:30 am

wait a sec, if i understand correctly, all this means is that i have to solder the wires from the serial port programmer to the applicable pins of the x0x microcontroller, no? i could care less about an actual pin socket, if that's what this is about.
gzifcak
 
Posts: 150
Joined: Wed Oct 26, 2005 3:46 pm
Location: san francisco

Please be positive and constructive with your questions and comments.