avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] EEPROM section overlapping bootloader in stuffed mega


From: Louis Beaudoin
Subject: Re: [avr-gcc-list] EEPROM section overlapping bootloader in stuffed mega8
Date: Mon, 23 Feb 2004 01:44:44 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4

<x-flowed>
Richard Urwin wrote:

I would be tempted to plant the binary of jmp 0x1800 using .word directives.

I tried this, and it works:

// jmp 0xC00
asm volatile (".word 0x940E");
asm volatile (".word 0x0C00");

Separately, I changed the linker script avr4.x from:
  .eeprom  :
        AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.data))

to:
        AT (ADDR (.text) + 8*1024 + SIZEOF (.data))

This gets rid of the overlapping sections by pushing the position of the .eeprom section past the size of the Flash. I didn't really like this solution, because I have little knowledge of the linker scripts, and I don't want to break anything. Perhaps someone with more knowledge than I can change the linker scripts for the next release. Or, perhaps they are fine the way they are...

Thanks for everyone's suggestions,
Louis Beaudoin


_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list

</x-flowed>

reply via email to

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