MPU Regions

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Freaks, 

 

MPU Regions!

 

If I was to assign a region for internal RAM for the full size, i.e. 64K, and then suppose I assign another region for internal RAM for a size of say 4K...  Will the region set for 4K cause an exception if the MCU tries to access outside of the 4K despite the fact that another region has been set to allow full access????

  

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My guess it would - note that i have zero exposure to avr32. I would think it should be easy to prove/disprove with a little test.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From the AVR32 "Technical Reference" and the "Architecture Document"

Quote:
When an access hits into a memory region set up by the MPU, hardware proceeds to determine
which subregion the access hits into. This information is used to determine whether the access
permissions for the subregion are given in MPUAPRA/MPUBRA/MPUCRA or in
MPUAPRB/MPUBRB/MPUCRB.