TEMP: Tests: ping_rpmsg: Override checkFrequency flags
authorSuman Anna <s-anna@ti.com>
Wed, 30 May 2018 01:18:59 +0000 (20:18 -0500)
committerSam Nelson <sam.nelson@ti.com>
Thu, 9 Aug 2018 20:01:32 +0000 (16:01 -0400)
This is a work around to avoid issues with dmtimer.
TODO: Need to check with updated build target.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
packages/ti/ipc/tests/ping_rpmsg_common.cfg.xs

index df402cc0153ff6dea147a5347cf4ac8b960c5d50..e338de0c4339bedf999ebc188bd279f61d705219 100644 (file)
@@ -225,6 +225,16 @@ else if (Program.platformName.match(/^ti\.platforms\.cortexR:AM65X/) &&
     SysMin.bufSize  = 0x8000;
 
     Program.sectMap[".tracebuf"] = "TRACE_BUF";
+
+    var dmTimer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
+    /* Skip the Timer frequency verification check. Need to remove this later */
+    dmTimer.checkFrequency = false;
+
+    /* Match this to the SYS_CLK frequency sourcing the dmTimers.
+     * Not needed once the appropriate build target is used (Make sure
+     * SYS/BIOS family settings are updated */
+    dmTimer.intFreq.hi = 0;
+    dmTimer.intFreq.lo = 25000000;
 }else {
     throw("ping_rpmsg_common.cfg: Did not match any platform!"
           + " platform:" +  Program.platformName + "cpuCore:"