One more question:
I'd like to protect our bootloader ROM area to be not erasable. It starts at address 0 with a size of 0x8000 (32k). How should I set RASR?
In the referred example I read:
MPU->RBAR=0x00000011;
MPU->RASR=0x0306E23b;
That means for RASR:
ENABLE=1
SIZE=29 (1GB?)
SRD=0xE2 (some regions disabled)
B=0 (not bufferable because ROM and not RAM?)
C=1 (but cacheable (?))
S=1 (not shareable (?)
TEX=0 (Outer and inner write-back. No write allocate.)
AP=3 (Read only, by privileged or unprivileged software)
XN=0 (instruction fetches enabled)
Which values should I select?
ENABLE=1
SIZE=14 (32k)
SRD=0 (complete bootloader region active)
B=0 (not bufferable because it's ROM?)
C=1 (cacheable yes or no?)
S=1 (not shareable yes or no?)
TEX=0 (??? What would be normal here?)
AP=3 (Read only, by privileged or unprivileged software because I only want to prevent erasing and writing to bootloader area)
XN=0 (instruction fetches enabled?)
It would be really great if you could explain correct values B,C,S,TEX for protecting the bootloader area. I don't know what would be typical values for my purpose.
Thank you!
Best regards,
Daniel