Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

SRAM space left

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
jeremywilson

Bascom Member



Joined: 11 Jul 2011
Posts: 79
Location: United States

usa.gif
PostPosted: Thu Feb 18, 2021 8:55 pm    Post subject: SRAM space left Reply with quote

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
View user's profile AIM Address
laborratte

Bascom Expert



Joined: 27 Jul 2005
Posts: 299
Location: Berlin

germany.gif
PostPosted: Thu Feb 18, 2021 10:21 pm    Post subject: Reply with quote

First var is at 200 hex.
Back to top
View user's profile
jeremywilson

Bascom Member



Joined: 11 Jul 2011
Posts: 79
Location: United States

usa.gif
PostPosted: Thu Feb 18, 2021 11:10 pm    Post subject: Reply with quote

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
View user's profile AIM Address
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2262

blank.gif
PostPosted: Fri Feb 19, 2021 8:27 am    Post subject: Reply with quote

jeremywilson wrote:
I guess those are all register variables.

Which is called I/O.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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