[rtems commit] atsam: Use normal memory for DTCM

Sebastian Huber sebh at rtems.org
Tue Jul 26 08:04:16 UTC 2016


Module:    rtems
Branch:    master
Commit:    c51e6d915cd18e087e594975c62e89ff19817d64
Changeset: http://git.rtems.org/rtems/commit/?id=c51e6d915cd18e087e594975c62e89ff19817d64

Author:    Alexander Krutwig <alexander.krutwig at embedded-brains.de>
Date:      Mon Jul 18 13:20:18 2016 +0200

atsam: Use normal memory for DTCM

Avoids problems with unaligned data access.

---

 c/src/lib/libbsp/arm/atsam/libraries/libboard/source/board_lowlevel.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/c/src/lib/libbsp/arm/atsam/libraries/libboard/source/board_lowlevel.c b/c/src/lib/libbsp/arm/atsam/libraries/libboard/source/board_lowlevel.c
index 3ac6ecc..0003885 100644
--- a/c/src/lib/libbsp/arm/atsam/libraries/libboard/source/board_lowlevel.c
+++ b/c/src/lib/libbsp/arm/atsam/libraries/libboard/source/board_lowlevel.c
@@ -138,6 +138,7 @@ void _SetupMemoryRegion(void)
 
 	dwRegionAttr =
 		MPU_AP_PRIVILEGED_READ_WRITE |
+		INNER_NORMAL_NOCACHE_TYPE(NON_SHAREABLE) |
 		MPU_CalMPURegionSize(DTCM_END_ADDRESS - DTCM_START_ADDRESS) |
 		MPU_REGION_ENABLE;
 



More information about the vc mailing list