[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Re: Sharing code between a bootloader and an application.

From: Spiro Trikaliotis
Subject: [avr-gcc-list] Re: Sharing code between a bootloader and an application.
Date: Sat, 3 Jan 2009 19:44:37 +0100
User-agent: slrn/ (Debian)


Dave Hylands wrote:

> On Sun, Dec 28, 2008 at 10:10 PM,  <address@hidden> wrote:

>> How would one go about producing a header or library file that would let you
>> link references to the routines in the bootloader for use in the
>> application?
> I did this with an i2c bootloader I wrote. What I did was to store a
> header, with a magic number, and the address of a jump table. The jump
> table contained word addresses of the various functions I wanted
> within the bootloader.

I have implemented this approach (at least in a similar way) with the
"xu1541" project (using an ATMega8).  Here, I have a bootloader part
using USBtiny or AVRUSB, and the "real" firmware (using the soft-USB
implementation in the bootloader).

There is also a specific firmware available which can update the
bootloader itself.

The sources are available on SourceForge:


It is not very good documented, but it works.

If you have questions feel free to ask.


Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]