Added CodeLite Debug DLL
authorKevin Townsend <kevin@ktownsend.com>
Sun, 13 Nov 2011 18:46:43 +0000 (19:46 +0100)
committerKevin Townsend <kevin@ktownsend.com>
Sun, 13 Nov 2011 18:46:43 +0000 (19:46 +0100)
build/codelite/LPC1343 Workspace.workspace.session
build/codelite/LPC1343_CodeBase.project
main.c
tools/codelite_debug/CM3.zip [new file with mode: 0644]
tools/codelite_debug/README.txt [new file with mode: 0644]

index 3eb326e..dca8e6b 100644 (file)
@@ -5,14 +5,14 @@
   <TabInfoArray Name="TabInfoArray">
     <TabInfo>
       <wxString Value="C:\Dropbox\microBuilder\Code\LPC1343\LPC1343_CodeBase_GIT\Makefile" Name="FileName"/>
-      <int Value="0" Name="FirstVisibleLine"/>
-      <int Value="5" Name="CurrentLine"/>
+      <int Value="39" Name="FirstVisibleLine"/>
+      <int Value="0" Name="CurrentLine"/>
       <wxArrayString Name="Bookmarks"/>
     </TabInfo>
     <TabInfo>
       <wxString Value="C:\Dropbox\microBuilder\Code\LPC1343\LPC1343_CodeBase_GIT\main.c" Name="FileName"/>
-      <int Value="21" Name="FirstVisibleLine"/>
-      <int Value="62" Name="CurrentLine"/>
+      <int Value="44" Name="FirstVisibleLine"/>
+      <int Value="24" Name="CurrentLine"/>
       <wxArrayString Name="Bookmarks"/>
     </TabInfo>
   </TabInfoArray>
index 655a180..6dbe1c0 100644 (file)
       </Linker>
       <ResourceCompiler Options=""/>
     </GlobalSettings>
-    <Configuration Name="Debug" CompilerType="gnu gcc" DebuggerType="GNU gdb debugger" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
+    <Configuration Name="Debug" CompilerType="gnu gcc" DebuggerType="GNU gdb debugger Cortex M3" Type="Dynamic Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
       <Compiler Options="-g" C_Options="-g" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" UseDifferentPCHFlags="no" PCHFlags="">
         <IncludePath Value="."/>
       </Compiler>
diff --git a/main.c b/main.c
index 1ab3bf2..6d5c158 100644 (file)
--- a/main.c
+++ b/main.c
@@ -68,7 +68,7 @@ int main(void)
     if (currentSecond != lastSecond)
     {
       lastSecond = currentSecond;
-         gpioSetValue(CFG_LED_PORT, CFG_LED_PIN, ~(gpioGetValue(CFG_LED_PORT, CFG_LED_PIN)));
+      gpioSetValue(CFG_LED_PORT, CFG_LED_PIN, ~(gpioGetValue(CFG_LED_PORT, CFG_LED_PIN)));
     }
 
     // Poll for CLI input if CFG_INTERFACE is enabled in projectconfig.h
diff --git a/tools/codelite_debug/CM3.zip b/tools/codelite_debug/CM3.zip
new file mode 100644 (file)
index 0000000..2290c04
Binary files /dev/null and b/tools/codelite_debug/CM3.zip differ
diff --git a/tools/codelite_debug/README.txt b/tools/codelite_debug/README.txt
new file mode 100644 (file)
index 0000000..0ea7a8a
--- /dev/null
@@ -0,0 +1,19 @@
+This slightly modified debug DLL can be used to allow full step-through and HW debugging in CodeLite using a Segger J-Link.
+
+It was created by AC Verbeck, and the original announcement can be found here:
+
+http://codelite.org/forum/viewtopic.php?f=11&t=1537
+
+To include debug information in the compiled firmware, open the make file and set the following field to TRUE
+
+--------------
+
+##########################################################################
+# Debug settings
+##########################################################################
+
+# Set DEBUGBUILD to 'TRUE' for full debugging (larger, slower binaries), 
+# or to 'FALSE' for release builds (smallest, fastest binaries)
+DEBUGBUILD = FALSE
+
+--------------
\ No newline at end of file
This page took 0.0314 seconds and 4 git commands to generate.