fix new debug routing and start debugging sram bulk

This commit is contained in:
David Voswinkel
2009-06-29 08:53:59 +02:00
parent f9724a3209
commit 2ebd2b75aa
9 changed files with 36 additions and 19 deletions

View File

@@ -47,14 +47,19 @@ void dump_memory(uint32_t bottom_addr, uint32_t top_addr)
{
uint32_t addr;
uint8_t byte;
sram_bulk_read_start(bottom_addr);
//sram_bulk_read_start(bottom_addr);
bottom_addr = 0x00;
top_addr = 0x80;
printf("%08lx - %08lx\n",bottom_addr, top_addr);
printf("%08lx:", bottom_addr);
for ( addr = bottom_addr; addr < top_addr; addr++) {
if (addr%0x16 == 0)
printf("\n%08lx:", bottom_addr);
byte = sram_bulk_read();
sram_bulk_read_next();
if (addr%0x10 == 0)
printf("\n%08lx:", addr);
byte = sram_read(addr);
//sram_bulk_read_next();
printf(" %02x", byte);
}
sram_bulk_read_end();
//sram_bulk_read_end();
}