[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] New list member, and bootloader question
From: |
Mike van Meeteren |
Subject: |
[avr-gcc-list] New list member, and bootloader question |
Date: |
Fri, 26 Mar 2004 21:50:58 -0600 |
<x-flowed>
Good evening,
Just wanted to throw a quick hello out to the group. I'm a
hardware/software engineer, and one of the pieces I deal with are the AVR
parts from Atmel. I started using the GCC compiler about a month ago for a
variety of little projects, and I must say it's a pretty slick setup.
I've been writing software for roughly 10 years for a variety of platforms,
including Windows, Unix, and a bunch of embedded processors. I recently
got tasked with writing a bootloader for a ATMega16. I've figured out most
of the parts, including some unexpected nuances of the routines (for
example, you can not repeatedly call the boot_erase routine to erase an
entire chip, and calling fill,erase,flash in that order, doesn't work
either).
My question is how do I make the compiler generate the stack and register
setup at the bootloader location instead of at 0x0000 and how do I make the
data (in this case an ID string I send out the serial port) get located
there instead of in program space? I currently just used inline assembly
to set the stack up, but I can't quite figure out how to make the linker
stick the data in the bootloader area.
My goal is to set the bootsector fuse so it always goes to the loader, and
runs the program from the loader. This will allow me to screw up
reflashing the program and still have a usable boot loader.
Anyway, sorry for asking a question right out of the gate, but I would
really appreciate a pointer in the right direction.
-Mike
--
Mike vanMeeteren address@hidden FASTechnologies Corp.
Track Hauler: 2001 F150 Track toy: 89 Mustang LX 351W 10.93 @ 122.5 MPH
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list
</x-flowed>
- [avr-gcc-list] New list member, and bootloader question,
Mike van Meeteren <=