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

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

Re: [avr-gcc-list] Diagnosing reboots


From: Bernard Fouché
Subject: Re: [avr-gcc-list] Diagnosing reboots
Date: Thu, 17 Mar 2005 12:26:12 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Joerg Wunsch a écrit :

Bernard Fouché <address@hidden> wrote:

So I'm looking for a byte just after the last used byte of the bss.

Either move the stack down so it's not starting at top of RAM, or use
a .noinit variable.

Well I'm trying with avr-gcc 3.4.3 to use -minit-stack=0x10FA (I'd like to keep away 5 bytes: I do some sort of circular buffer to have up to 4 reboot 'cause' + the current one) and when I look at main.sym, I see that __stack is still at 0x10FF.

However using (&__bss_end)+1 is okay, I made some tests and I'm able to get back my bytes after reboot.




reply via email to

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