R5 MPU Background Region

I have a follow-up question from this.

I want to create a 4GB background region on R5 core. All I have to do is to fill following for region-0 in MPU?

starting address: 0

size: 2^32 = 0x100000000

Is anything else I need to do to declare a background region?

-ijaz

Parents
  • You'll need to program

    • DRBAR with the starting address (so 0x0)
    • DRSR with the size, enable and sub-regions
      • Remember that the size field is 2^(N+1), and shifted by 1 position due to the Enable field.  So a 4GB region, with no sub-regions), would be 0x0000_003F
    • DRACR with the settings (e.g. cacheable, read/write)
Reply
  • You'll need to program

    • DRBAR with the starting address (so 0x0)
    • DRSR with the size, enable and sub-regions
      • Remember that the size field is 2^(N+1), and shifted by 1 position due to the Enable field.  So a 4GB region, with no sub-regions), would be 0x0000_003F
    • DRACR with the settings (e.g. cacheable, read/write)
Children