Bootloader written in arduino

Hi all!

I was trying to write a bootloader, with which I can upload a code from the internet, http request etc... My problem is that I can't change the memory location of the hex file. it always starts at 0x0000. Yes I did this with a makefile, I used the edam's makefile, and I tried to combine it with the bootloader's source code using the
LDSECTIONS = -Wl,--section-start=.text=0x3e00 -Wl,--section-start=.version=0x3ffe

but it does nothing. I don't know why? Where I have to put that command?

With the arduino bootloader makefile I can make hex file from all kind of c files. But when I tried to use the generated .c file by the IDE, and I put all the includes there, it doesen't see those includes.

So please help me, I have no idea what I'm doing wrong, and I'm sure it is feasible.

My problem is that I can't change the memory location of the hex file. it always starts at 0x0000

Start w/ this document; http://www.atmel.com/images/doc1644.pdf

It may be possible to write a bootloader within the Arduino GUI, but since bootloaders are lean pieces of code, my belief is that assembly or C would be the optimum environments. I just suspect the Arduino core libraries and start-up code will just be too much for a bootloader... but it is only my suspicion which needs confirmation from more senior members.

  • Ray