[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Data section and stack
From: |
Sebastien Chretien |
Subject: |
RE: [avr-gcc-list] Data section and stack |
Date: |
Thu, 13 Jan 2011 12:33:52 +0100 |
Guten Tag Wunch ^^,
Thank you very much for your help.
Your second solution is very interesting. I am going to use it.
Best regards,
Sebastien
-----Message d'origine-----
De : Joerg Wunsch [mailto:address@hidden
Envoyé : mercredi 12 janvier 2011 20:09
À : address@hidden
Cc : Sebastien Chretien
Objet : Re: [avr-gcc-list] Data section and stack
Salut Sebastien,
please, better subscribe to the list in order to not miss replies.
"Sebastien Chretien" <address@hidden> wrote:
> Is there a way to know if stack pointer is entering in data section ?
You can read out the stack pointer, and compare it against the symbol
_end which is provided by the linker and marks the last allocated SRAM
address.
While developing, you might monitor the stack usage by initially
filling up all SRAM with a known pattern, and then observe the amount
of stack that overwrites this pattern, e.g. using JTAG debugging.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)