From d50dd5ab9567cc308e412c5e9e775dc8e15fb509 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan Date: Fri, 3 Feb 2012 23:57:04 +0100 Subject: merge armdebug rc1 This enables the use of GDB or GDB based debuggers to debug the code running on the NXT brick using the USB connection. --- AT91SAM7S256/SAM7S256/Include/sam7s256.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'AT91SAM7S256/SAM7S256/Include/sam7s256.c') diff --git a/AT91SAM7S256/SAM7S256/Include/sam7s256.c b/AT91SAM7S256/SAM7S256/Include/sam7s256.c index cc22ca3..8ff0ab4 100644 --- a/AT91SAM7S256/SAM7S256/Include/sam7s256.c +++ b/AT91SAM7S256/SAM7S256/Include/sam7s256.c @@ -11,6 +11,9 @@ // // Platform C // +#ifdef __ARMDEBUG__ +#include "debug_stub.h" +#endif void main(void) { @@ -18,6 +21,9 @@ void main(void) { HARDWAREInit; mSchedInit(); +#ifdef __ARMDEBUG__ + dbg__bkpt_init(); +#endif while(TRUE == mSchedCtrl()) { OSWatchdogWrite; -- cgit v1.2.3