This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How I can check memory for read or write access?

If I read from nonexistent address of memory or flash I will get interrupt. How can check ability to read or write to memory to avoid errors?

  • Yes, you will get a data abort (for data fetch) or a prefetch abort (for instruction fetch) if you read from a memory location that does not exist or has been blocked from reading by the MPU. You need to write a prefetch abort handler and a data abort handler to address these cases.

    Regards,
    Sunil