MPC5XXX - How Much RAM / FLASH

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

MPC5XXX - How Much RAM / FLASH

1,867件の閲覧回数
cholland
Contributor V

I know I could probably look at the Data Sheet, but is there another way to tell how much FLASH or RAM is available in a programatic way?

Maybe the data sheet is true, but the MPU does not match?

I am just curios if something like this is even possible.

I could do a combination of  WriteToAddress(), followed by ReadFromAddress(), which would tell me how much memory exists. Whether it is RAM ROM or FLASH, exists in peripheral space, I am not sure how to tell the difference.

Is something like that theoretically possible?

The operations would throw an exception if the address does not exist, is read-only or is secure, etc,

I am not sure how to write an exception handler to prevent the exception from crashing the program.

Is there something that I could do through software that could tell me how much FLASH and RAM exist?

Thank you,

ラベル(1)
タグ(2)
1 返信

1,782件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Well I can only say always use datasheet.

Is there something that I could do through software that could tell me how much FLASH and RAM exist?

I do no think there is such 100% certain possibility.

What could be use-case of such approach?

I suppose you know what is the size of chip memory you are using.

regards,

Peter