MPC5XXX - How Much RAM / FLASH

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5XXX - How Much RAM / FLASH

681 Views
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,

Labels (1)
Tags (2)
1 Reply

596 Views
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