Forum - MCS Electronics
View previous topic :: View next topic
Author
Message
jeremywilson Joined: 11 Jul 2011 Posts: 79 Location: United States
Posted: Thu Feb 18, 2021 8:55 pm Post subject: SRAM space left
I noticed something strange (or I don't understand) about the SRAM "space left" in the report:
I'm using ATMega2560 with 8K of internal SRAM.
from report:
Stack start : 21FF hex
Stack size : 80 hex (128)
S-Stacksize : 80 hex (128)
S-Stackstart : 2180 hex
Framesize : CE4 hex (3300)
Framestart : 141C hex
Space left : 563 dec
last variable is at 11E4 hex (4580)
Shouldn't space left be: 8192 - Stack size - S_stacksize - Framesize - last_var = 8192 - 128 - 128 -3300 - 4580 = 56 ?
Am I missing something in my equation?
Thanks !!
(BASCOM-AVR version : 2.0.8.3 , Latest : 2.0.8.3 )
Back to top
laborratte Joined: 27 Jul 2005 Posts: 299 Location: Berlin
Posted: Thu Feb 18, 2021 10:21 pm Post subject:
First var is at 200 hex.
Back to top
jeremywilson Joined: 11 Jul 2011 Posts: 79 Location: United States
Posted: Thu Feb 18, 2021 11:10 pm Post subject:
I figured it had to do with the 200 offset, but I see many variables with lower addresses. I guess those are all register variables.
Thanks for the response!
Back to top
MWS Joined: 22 Aug 2009 Posts: 2262
Posted: Fri Feb 19, 2021 8:27 am Post subject:
jeremywilson wrote: I guess those are all register variables.
Which is called I/O.
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum