[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Re: sram initialization
From: |
Ewout Boks |
Subject: |
[avr-gcc-list] Re: sram initialization |
Date: |
Sun, 10 Apr 2005 20:48:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.6) Gecko/20050327 |
Hi,
I removed a small section of code I had put at location .init8 and after
that, the .bss initialization worked.
It is still unclear to mehow this could affect the __do_clear_bss
section, which resides in .init4 .
Ewout
Ewout Boks wrote:
> Hello everyone on this list,
>
> I hooked up an external sram to my stk501 dev board (which I use with an
> atmega64). The external sram is visible and useable (set SRE bit in
> .init1 ) in my application, but for some reason the variables I declare
> without an initial value (and thus should go into the .bss section) all
> appear to have a value 5 instead of 0. My app crashes because of this.
>
> Normally the .init4 section should clear anything in the .bss section.
> Does this work just as well with external sram? Has anyone else observed
> this behaviour ? Or am I seeing something wrong with my hw setup and do
> need to insert wait states. The memory I use is a Cypress CY7C1019B-15VC
> with 128x8 and 15 ns access time.
>
>
> Ewout Boks
>
>
thermiek.vcf
Description: Vcard