[DDR] add some diagnostic prints main
authorBrad Griffis <bgriffis@ti.com>
Tue, 2 Mar 2021 14:09:37 +0000 (08:09 -0600)
committerBrad Griffis <bgriffis@ti.com>
Tue, 2 Mar 2021 14:09:37 +0000 (08:09 -0600)
am335x-ddr-analysis.dss

index 731dd84d2afa24582f8023994d9ccbf78b68a1f1..4aa5872f0b2edaf9991df4294e615b712892c522 100644 (file)
@@ -105,6 +105,7 @@ debugSessionDAP = ds.openSession("*","CS_DAP_M3");
 use_dap_m3 = 1;
 
 try {
+       print("Attempting to connect to DAP_M3.");
        debugSessionDAP.target.connect();
 } catch (ex) {
        print("\n ERROR: Could not connect to DAP_M3.\n");
@@ -116,6 +117,7 @@ value = debugSessionDAP.memory.readWord(0,0x44e10600,false);
 // If it is zero, switch to CS_DAP_DebugSS
 if (value == 0)
 {
+       print("Switching to DAP_DebugSS.")
        debugSessionDAP.target.disconnect();
        debugSessionDAP = ds.openSession("*","CS_DAP_DebugSS");
        debugSessionDAP.target.connect();
@@ -124,6 +126,10 @@ if (value == 0)
        value = debugSessionDAP.memory.readWord(0,0x44e10600,false);
        file.write("Read value of " + d2h(value) + " from Device_ID register." + newline);
 }
+else
+{
+       print("Remaining connected to DAP_M3.")
+}
 
 var original_CM_WKUP_DEBUGSS_CLKCTRL = debugSessionDAP.memory.readWord(0,0x44e00414,false);
 var original_CM_PER_L3_CLKSTCTRL = debugSessionDAP.memory.readWord(0,0x44E0000C,false);