codewarrior 10.2 used RAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

codewarrior 10.2 used RAM

跳至解决方案
864 次查看
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 解答
608 次查看
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 回复数
608 次查看
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.


608 次查看
ngsoftuser
Contributor III

Hi Erich,

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

Thanks.

0 项奖励
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 项奖励
608 次查看
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 项奖励
608 次查看
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.

608 次查看
ngsoftuser
Contributor III

Thank you!!!

0 项奖励