patchAVR Downloader/UploaDEr - Patches: patch #8719, Support Over-the-Air bootloading...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #8719: Support Over-the-Air bootloading with XBeeBoot

Submitter:  David Sainty <dsainty>
Submitted:  Wed 19 Aug 2015 04:23:01 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  joerg_wunsch Open/Closed:  Closed

Mon 22 Nov 2021 09:35:47 PM UTC, comment #1: 

Applied in r1477, thanks!

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 19 Aug 2015 04:23:01 AM UTC, original submission:  

I have developed a solution for flashing AVR devices via XBee Series 2 Over-The-Air with avrdude (with no extra hardware, just a matching bootloader on the AVR).

The avrdude side requires a new "xbee" programmer type, which is essentially the Arduino module (as used with optiboot), but with the I/O streams encapsulated in a packet-based protocol delivered over XBee's API, and XBee GPIO pin toggling to perform the hard reset. The code is just a single xbee.c/xbee.h, with associated changes to register the new programmer type, so it's very self-contained.

The bootloader is at https://github.com/davidsainty/xbeeboot

It is an extension of optiboot, fits [pretty snugly!] in 1kB, and auto-detects whether the standard "arduino" (~STK500v1) or "xbee" protocol is in use. I.e. the bootloader can be flashed via standard unmodified avrdude (at a reduced baud rate, XBee defaults to 9600bps) or flashed OTA by avrdude with the new "xbee" programmer type.

Over-The-Air it takes around 3 minutes to flash around 20kB, and a comparable time to verify. I'm personally thrilled it's so fast, I would have been excited even if it was an order of magnitude slower than that :)

David Sainty <dsainty>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #52310:  avrdude-xbee-agaainst-trunk-r1476.diff added by dsainty (59KiB - application/octet-stream - Update tested against trunk Rev: 1476 @ 2021-11-15 04:48:53 +1300 (Mon, 15 Nov 2021))
file #34675:  patch-xbee added by dsainty (29KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by dsainty (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-22 joerg_wunsch StatusNone Done
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2021-11-20 dsainty Attached File- Added avrdude-xbee-agaainst-trunk-r1476.diff, #52310
    2015-08-19 dsainty Attached File- Added patch-xbee, #34675

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code