possible error in optiboot.c ... ???

[quote author=Coding Badly link=topic=241103.msg1729206#msg1729206 date=1400486324]

oric_dan:
I see you put the mighty maniac library in the IDE folder, instead of in the sketch folder.

I tend to put "production" cores with the IDE and "development" cores under the Sketchbook.

As another aside, I'm cooking up a way to spoof avrdude so I can use it reliably for RF uploading.

Have you searched for an existing upload protocol designed for radios? For example, I worked for a company that designed an AVR upload protocol specifically for CANBUS. It was a much better solution than trying to smash one of the Atmel programming protocols onto a CANBUS connection.

While you are pursuing the subject, bear in mind that the IDE has support for "custom" upload utilities. You are not constrained to use avrdude.[/quote]

Thanks again. I got the bootloader recompiles working now. In regards RF-uploading, over the past year and a half, I've tried several of the schemes found on the web [starting with adafruit] with no real success, and also tried getting people around here who are knowledgeable with avrdude and the bootloaders interested, but also with no success either. So, I decided to do it myself.

There are some systems [for sale] that use special hardware and custom software, but I wanted to use standard XBee radios and try to stay within the Arduino environment, and also not have to write software for Windows.

I think I have it about figured out now. The avrdude source is about impossible for me to decipher, but optiboot is pretty simple, and I grabbed a .HEX file for a sketch, and decoded what happens during uploading using the IDE compile window display. (that's where the topic of this thread came from). The transfers are really pretty straightforward, and how they get hosed by the XBee radio transmissions is fairly evident, I think. So, I think it can be spoofed - we'll see. I'll keep the other things you mentioned in mind, however. Thanks.