|
From: | Adib Taraben |
Subject: | Re: [avr-gcc-list] How not to use special memory area |
Date: | Fri, 19 Mar 2004 09:47:59 +0100 |
User-agent: | Mozilla Thunderbird 0.5 (Windows/20040207) |
<x-flowed> Hello Erik, let me clarify: yes, the internal RAM goes until 0xfff.But there is an external SRAM connected to the AtMega103. The size of the RAM is 64kB. The RAM is via glue-logik selected in the memory area 0x2000-0xffff.
The area from 0x1000-0x1fff is used for external IO-Chips. I see the linkerscript from the ldscrips directory avrmega103.x etc.I have no glue how to extend the data section, so that it has a hole from 0x1000-0x1fff.
Any help appreciated, Thanks, Adib. Erik Christiansen wrote:
On Thu, Mar 18, 2004 at 02:21:40PM +0100, Adib Taraben wrote:On my board (ATMega103) there is the area from 0x1000 to 0x1fff used for special IO chips. The CS is generated via GALs. Now I am afraid that the compiler put some variables in that area. How can I prevent this?AFAIK, the ATMega103 RAM ends at 0xFFF, so a correctly set up linker script should only allocate that much, and an attempt to pour in more Spaten than a maß holds should result in an error like: avr-ld: address 0x801000 of app.elf section .bss is not within region data or avr-ld: address 0x801000 of app.elf section .noinit is not within region data To check, have a look at your linker script, or simply declare larger arrays until the error is triggered. Then you'll know if it knows what you know. Regards, Erik
_______________________________________________ avr-gcc-list mailing list address@hidden http://www.avr1.org/mailman/listinfo/avr-gcc-list </x-flowed>
[Prev in Thread] | Current Thread | [Next in Thread] |