codewarrior 10.2 used RAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

codewarrior 10.2 used RAM

ソリューションへジャンプ
865件の閲覧回数
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.

ラベル(1)
タグ(2)
0 件の賞賛
1 解決策
609件の閲覧回数
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 件の賞賛
6 返答(返信)
609件の閲覧回数
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.


609件の閲覧回数
ngsoftuser
Contributor III

Hi Erich,

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

Thanks.

0 件の賞賛
610件の閲覧回数
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 件の賞賛
609件の閲覧回数
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 件の賞賛
609件の閲覧回数
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.

609件の閲覧回数
ngsoftuser
Contributor III

Thank you!!!

0 件の賞賛