MPC5XXX - How Much RAM / FLASH

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

MPC5XXX - How Much RAM / FLASH

1,958 次查看
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,873 次查看
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