codewarrior 10.2 used RAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

codewarrior 10.2 used RAM

Jump to solution
810 Views
ngsoftuser
Contributor III

Hi all,

 

How can I tell the RAM amd flash used by my MCU (MC9S08DZ60)?

I looked in the map file but it is not very clear.

I am asking this because we are in a cost reduction phaze where we are looking for a MCU with less RAM and flash.

 

Thanks.

Labels (1)
Tags (2)
0 Kudos
1 Solution
554 Views
BlackNight
NXP Employee
NXP Employee

Hi Eran,

(R) is read-only (flash), (R/W) is initialized RAM and (N/I) is not initialized RAM (Stack).

So the RAM used is (R/W)+(N/I).

View solution in original post

0 Kudos
6 Replies
554 Views
BlackNight
NXP Employee
NXP Employee

Hello,

for Code/Flash size, the simplest way is to look at the end of the map file:

Total size of all blocks to be downloaded: 29963


That means: 29963 bytes in Flash.


To get more details, have a look at the text just above the vector allocation:

Summary of section sizes per section type:

READ_ONLY (R):        750B (dec:    29963)

READ_WRITE (R/W):      F63 (dec:     3939)

NO_INIT (N/I):          7E (dec:      126)


Again, here the code size (29963). The RAM is the sum of 3939+126=4065 bytes.


Hope this helps.


554 Views
ngsoftuser
Contributor III

Hi Erich,

but how do i get the ram size? is it READ_WRITE (R/W)?

Thanks.

0 Kudos
555 Views
BlackNight
NXP Employee
NXP Employee

Hi Eran,

(R) is read-only (flash), (R/W) is initialized RAM and (N/I) is not initialized RAM (Stack).

So the RAM used is (R/W)+(N/I).

0 Kudos
554 Views
ngsoftuser
Contributor III

Thanks.

And for that i still needs to add the stack size or it is already calculated in the "(R/W)+(N/I)."?

0 Kudos
554 Views
BlackNight
NXP Employee
NXP Employee

(N/I) *is* the stack size already. if you sum up (N/I) plus (R/W) then you have the total amount of RAM used.

554 Views
ngsoftuser
Contributor III

Thank you!!!

0 Kudos