Re: [avr-gcc-list] memory layout for bootloader

2005-06-17 Thread Torsten Mohr
Hi, [ to use an own linker script or move section .text to 0x1e000 ?] > No preference, just different designs. One way is to build an > application with an integrated bootloader; that's what the example is > hinting at. Some people, the bootloader *is* the application and they do > move the .text

Re: [avr-gcc-list] memory layout for bootloader

2005-06-16 Thread Oleksandr Redchuk
Hi, Joerg Wunsch! 16-Jun-05 07:17 you wrote: JW> There are semi-SIYF fuses when you select a clock option that will JW> result in the device no longer being clocked, but you can usually JW> always resurrect them by supplying an external clock. Some people who JW> don't even own a simple pulse ge

RE: [avr-gcc-list] memory layout for bootloader

2005-06-16 Thread Parthasaradhi Nayani
Hello Larry Barello, Thank you very much for the reply. --- Larry Barello <[EMAIL PROTECTED]> wrote: > -nostdlib on the linker command line will drop all > library support and > rename "main" something else like "boot" will drop > the startup support. > _

RE: [avr-gcc-list] memory layout for bootloader

2005-06-16 Thread Larry Barello
-Original Message- From: Parthasaradhi Nayani ... How does one avoid putting interrupt table and cleanup code in the bootloader section? (this is what I am looking for) -nostdlib on the linker command line will drop all library support and rename "main

Re: [avr-gcc-list] memory layout for bootloader

2005-06-15 Thread Joerg Wunsch
Torsten Mohr <[EMAIL PROTECTED]> wrote: > Can i really DISABLE SPI programming by fuse bit SPIEN? You can. But read the text carefully: you cannot do that while using ISP programming. ;-) So it's not a shoot-into-your-foot (SIYF) fuse. The only real SIYF fuse they ever invented is the reset d

Re: [avr-gcc-list] memory layout for bootloader

2005-06-15 Thread Parthasaradhi Nayani
Hello, if you want to place other functions in the bootloader memory add the attribute to these functions as well. Ideally one must set the address of .text to boot address, as bootloader is a completely independent program. I tested by putting the .text in the bootloader section and it worked f

Re: [avr-gcc-list] memory layout for bootloader

2005-06-15 Thread E. Weddington
Torsten Mohr wrote: Hi, i'd like to write a bootloader for an ATMega128 and some questions came up, it would be great if you could give me some hints. In avr-libc-usermanual-1.2.3 there is an example in the FAQ how to put a function into a certain section and how to put that section to a certa

[avr-gcc-list] memory layout for bootloader

2005-06-15 Thread Torsten Mohr
Hi, i'd like to write a bootloader for an ATMega128 and some questions came up, it would be great if you could give me some hints. In avr-libc-usermanual-1.2.3 there is an example in the FAQ how to put a function into a certain section and how to put that section to a certain address. In that ex