Index: firmware/target/arm/as3525/debug-as3525.c =================================================================== --- firmware/target/arm/as3525/debug-as3525.c (revision 20983) +++ firmware/target/arm/as3525/debug-as3525.c (working copy) @@ -27,6 +27,7 @@ #include "system.h" #include "sprintf.h" #include "cpu.h" +#include "sd.h" #define _DEBUG_PRINTF(a,varargs...) \ snprintf(buf, sizeof(buf), (a), ##varargs); lcd_puts(0,line++,buf) @@ -66,10 +67,11 @@ { char buf[50]; int line; + char buf2[512*2]; lcd_clear_display(); lcd_setfont(FONT_SYSFIXED); - + sd_read_sectors(0, 0x7A7800 - 1, 2, buf2); while(1) { line = 0; @@ -86,6 +88,7 @@ line++; _DEBUG_PRINTF("[CP15]"); _DEBUG_PRINTF("CP15: 0x%8x", read_cp15()); + _DEBUG_PRINTF("DIR0: %x DIR4: %x", *(buf2+512), *(buf2+512+4)); lcd_update(); if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) break;