Merge pull request #28 in PROCESSOR-SDK/edma3_lld from PRSDK-3314 to master
authorRaghu Nambiath <a0850439@ti.com>
Thu, 1 Feb 2018 18:50:15 +0000 (12:50 -0600)
committerRaghu Nambiath <a0850439@ti.com>
Thu, 1 Feb 2018 18:50:15 +0000 (12:50 -0600)
* commit '93b3bc284324354729ddd5a2aedeea853dc135ca':
  Fix for OMAPL138 ARM example build error

examples/edma3_driver/evmOMAPL138_ARM/rtsc_config/edma3_drv_bios6_arm_omapl138_st_sample.cfg

index 7c1afd94b6e3feb0d38f9e1954a98b30ddfa1ead..9f5165d499beb9301a05796673ed303fb9d571b1 100644 (file)
@@ -7,11 +7,20 @@ var Log       = xdc.useModule ("xdc.runtime.Log");
 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
 var Cache = xdc.useModule('ti.sysbios.hal.Cache');
+var Mmu   = xdc.useModule('ti.sysbios.family.arm.arm9.Mmu');
 
+// Enable the MMU
+Mmu.enableMMU = true;
 
-/* USE EDMA3 Sample App */
-//xdc.loadPackage('ti.sdo.edma3.drv.sample');
+var attrs = {
+        type: Mmu.FirstLevelDesc_SECTION,  // SECTION descriptor
+        bufferable: true,                  // bufferable
+        cacheable: false,                  // cacheable
+        imp: 1,                            // implementation defined
+        domain: 0,                         // domain between 0-15
+        accPerm: 3,                        // read/write permission
+    };
 
 for (var i=0x01E30000; i < 0x01E37FFF; i = i + 0x00000400) {
          Mmu.setFirstLevelDescMeta(i, i, attrs);
-    }
\ No newline at end of file
+    }