AnsweredAssumed Answered

MPC5XXX - How Much RAM / FLASH

Question asked by Christopher Holland on Jun 24, 2020
Latest reply on Jun 25, 2020 by Peter Vlna

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,

Outcomes