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.
解決済! 解決策の投稿を見る。
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).
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.
Hi Erich,
but how do i get the ram size? is it READ_WRITE (R/W)?
Thanks.
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).
Thanks.
And for that i still needs to add the stack size or it is already calculated in the "(R/W)+(N/I)."?
(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.
Thank you!!!