aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Griffis2021-03-02 08:09:37 -0600
committerBrad Griffis2021-03-02 08:09:37 -0600
commit82f0964a3bf6564fe5923f69ecbe04110451db1f (patch)
treee958c6783c7f6b4f9ccb45e16bafc58ead95fdd7
parentb0b71aff305356c4c340c75e90082e0275303421 (diff)
downloadam335x-dss-files-main.tar.gz
am335x-dss-files-main.tar.xz
am335x-dss-files-main.zip
[DDR] add some diagnostic printsHEADmain
-rw-r--r--am335x-ddr-analysis.dss6
1 files changed, 6 insertions, 0 deletions
diff --git a/am335x-ddr-analysis.dss b/am335x-ddr-analysis.dss
index 731dd84..4aa5872 100644
--- a/am335x-ddr-analysis.dss
+++ b/am335x-ddr-analysis.dss
@@ -105,6 +105,7 @@ debugSessionDAP = ds.openSession("*","CS_DAP_M3");
105use_dap_m3 = 1; 105use_dap_m3 = 1;
106 106
107try { 107try {
108 print("Attempting to connect to DAP_M3.");
108 debugSessionDAP.target.connect(); 109 debugSessionDAP.target.connect();
109} catch (ex) { 110} catch (ex) {
110 print("\n ERROR: Could not connect to DAP_M3.\n"); 111 print("\n ERROR: Could not connect to DAP_M3.\n");
@@ -116,6 +117,7 @@ value = debugSessionDAP.memory.readWord(0,0x44e10600,false);
116// If it is zero, switch to CS_DAP_DebugSS 117// If it is zero, switch to CS_DAP_DebugSS
117if (value == 0) 118if (value == 0)
118{ 119{
120 print("Switching to DAP_DebugSS.")
119 debugSessionDAP.target.disconnect(); 121 debugSessionDAP.target.disconnect();
120 debugSessionDAP = ds.openSession("*","CS_DAP_DebugSS"); 122 debugSessionDAP = ds.openSession("*","CS_DAP_DebugSS");
121 debugSessionDAP.target.connect(); 123 debugSessionDAP.target.connect();
@@ -124,6 +126,10 @@ if (value == 0)
124 value = debugSessionDAP.memory.readWord(0,0x44e10600,false); 126 value = debugSessionDAP.memory.readWord(0,0x44e10600,false);
125 file.write("Read value of " + d2h(value) + " from Device_ID register." + newline); 127 file.write("Read value of " + d2h(value) + " from Device_ID register." + newline);
126} 128}
129else
130{
131 print("Remaining connected to DAP_M3.")
132}
127 133
128var original_CM_WKUP_DEBUGSS_CLKCTRL = debugSessionDAP.memory.readWord(0,0x44e00414,false); 134var original_CM_WKUP_DEBUGSS_CLKCTRL = debugSessionDAP.memory.readWord(0,0x44e00414,false);
129var original_CM_PER_L3_CLKSTCTRL = debugSessionDAP.memory.readWord(0,0x44E0000C,false); 135var original_CM_PER_L3_CLKSTCTRL = debugSessionDAP.memory.readWord(0,0x44E0000C,false);