From 896bbafc89b98ab50f563997fff04308206d89aa Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Mon, 21 Mar 2011 07:57:01 +0800 Subject: disabled nxos compilation for now --- SConstruct | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index b82d2af..4ca6207 100644 --- a/SConstruct +++ b/SConstruct @@ -162,11 +162,13 @@ else: myasflags.append('-Wa,-mcpu=arm7tdmi,-mfpu=softfpa') mycflags.append('-g') mycflags.append('-ggdb') -mycflags.append('-D__NXOS__') +# Test build for NXT Firmware first +#mycflags.append('-D__NXOS__') myasflags.append('-g') myasflags.append('-ggdb') -myasflags.append('-D__NXOS__') +# Test build for NXT Firmware first +#myasflags.append('-D__NXOS__') env.Replace(CCFLAGS = mycflags, ASFLAGS = myasflags ) -- cgit v1.2.3 From c675bd839f0f6c7466425a835ed5525623657534 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Mon, 21 Mar 2011 08:27:30 +0800 Subject: added gdb memory access commands --- Host/gdb-commands.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Host/gdb-commands.txt b/Host/gdb-commands.txt index 37b84d5..03f72a1 100644 --- a/Host/gdb-commands.txt +++ b/Host/gdb-commands.txt @@ -17,3 +17,12 @@ $p!#91 # Set R1 to 0xAA $P1=000000AA#60 + +# Read 16 bytes of Memory from 0x00201d74 (padding bytes after debug_mode + 4 bytes of debug_InUSBBuf) +$m00201D74,0010#FC + +# Write 2 bytes of memory to 0x00201d74 (padding bytes after debug_mode) +$M00201D74,0002:AA55#03 + +# Write 2 bytes of memory to 0x00201d74 (padding bytes after debug_mode) +$M00201D74,0002:9966#F5 \ No newline at end of file -- cgit v1.2.3 From edc8ef9f05a2f02f401990c8b1b73da538114099 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Mon, 21 Mar 2011 08:46:57 +0800 Subject: fixed incorrect argument size comparison for debug_mode --- Debugger/debug_stub.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S index c9b9ad7..839d661 100644 --- a/Debugger/debug_stub.S +++ b/Debugger/debug_stub.S @@ -429,8 +429,7 @@ cCommHandleDebug: bl dbg__copyNxtDebugMsg /* setup Debugger Message Buffers, validate input, CPSR returned in R0 */ /* pop {r1-r3} */ /* restore values */ _dbg_getmode r0 /* Get Debug Mode */ - ldr r1, =TRUE /* Thumb mode can't accept direct constant */ - cmp r0, r1 + cmp r0, #(TRUE & BYTE0) /* Confine it to Byte size */ /* If Debug Mode is TRUE, this means that we're already running the Debugger */ beq _cCommHandleDebug_cont -- cgit v1.2.3