0
edits
Changes
no edit summary
== Using JTAG to debug x-loader on a linux host ==
6. I started ccsv5, and did a Launch Selected Configuration on my xloader141.ccxml. Within moments, it connected, and halted at the infinite loop, showing the source code and all the variables, etc. Then I stepped through the code. (Right-click on the line after the loop, and select Move to Line, or some such thing, thereby skipping the loop.)
<pre>
diff --git a/lib/board.c b/lib/board.c
index 1947e5a..a495620 100644
--- a/lib/board.c
+++ b/lib/board.c
@@ -92,6 +92,8 @@ void start_armboot (void)
misc_init_r();
+ volatile int i=0; while (i==0);
+
buf = (uchar*) CFG_LOADADDR;
*(int *)buf = 0xffffffff;
</pre>