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

Submitted by:  David Sainty <dsainty>
Submitted on:  Wed 19 Aug 2015 04:23:01 AM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

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>

 

Attached Files
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
  • -unavailable- added by dsainty (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 19 Aug 2015 04:23:02 AM UTCdsaintyAttached File-=>Added patch-xbee, #34675

    Back to the top


    Powered by Savane 3.1-cleanup1