Other Parts Discussed in Thread: HALCOGEN,
Tool/software:
I've been experimenting with the MPU background region and have noticed that calling HALcoGen's _mpuEnableBackgroundRegion_() function from sys_mpu.asm seems to perform the opposite operation compared to what I'm expecting and disables the background region. As detailed in the ARMv7-A/ARMv7-R reference manual, "When the SCTLR.BR bit is set to 0, the MPU behaves as if there is a background region that generates a Background fault memory abort on any access."
The _mpuEnableBackgroundRegion_() function sets the SCTLR.BR bit to 1 via "orr r0, r0, #0x20000". When performing a read or write to a memory address which does not correspond to a configured MPU region and does not generate a data abort by default as defined in table 6.9.2 within the TMS570LS3137 datasheet (e.g: 0x80000000), no data abort is generated. When removing the call to _mpuEnableBackgroundRegion_() (i.e: SCTLR.BR is 0), a data abort is generated.
Just want to confirm whether or not this behaviour is expected and my understanding is backwards, or if HALcoGen's "Enable" and "Disable" terminology in this case is backwards in reference to the ARM reference manual.
Thanks!

