Permalink
Browse files

checkpoint

  • Loading branch information...
1 parent 41500ea commit 443953ac9442a859516c16155a1310969624b242 @iperry committed Feb 18, 2011
Showing with 1,052 additions and 16 deletions.
  1. +9 −0 .gdbinit
  2. +4 −1 .gitignore
  3. +1 −1 Makefile
  4. +1 −0 libmaple/exc.S
  5. +502 −0 libmaple/i2c.c
  6. +172 −0 libmaple/i2c.h
  7. +5 −0 libmaple/libmaple.h
  8. +33 −0 libmaple/nvic.c
  9. +40 −1 libmaple/nvic.h
  10. +2 −0 libmaple/rcc.c
  11. +2 −0 libmaple/rcc.h
  12. +1 −0 libmaple/rules.mk
  13. +58 −0 libmaple/scb.h
  14. +12 −0 libmaple/stm32.h
  15. +84 −0 main.cpp
  16. +4 −4 support/ld/names.inc
  17. +112 −0 test.gdb
  18. +10 −9 wirish/wirish.c
View
@@ -0,0 +1,9 @@
+target remote localhost:3333
+symbol-file build/maple.elf
+source test.gdb
+delete breakpoints
+##break main.cpp:setup()
+##monitor reset halt
+#display/i $pc
+# display/x *0xe000ed2c
+# display/x *0xE000ED28
View
@@ -1,10 +1,13 @@
build/
docs/build/
-main.cpp
libmaple.layout
tags
TAGS
*~
*.swp
docs/doxygen/
+<<<<<<< Updated upstream
arm
+=======
+notes/
+>>>>>>> Stashed changes
View
@@ -33,7 +33,7 @@ LIBMAPLE_PATH := $(SRCROOT)/libmaple
SUPPORT_PATH := $(SRCROOT)/support
# Useful variables
-GLOBAL_CFLAGS := -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib \
+GLOBAL_CFLAGS := -Os -g3 -gdwarf-2 -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib \
-ffunction-sections -fdata-sections -Wl,--gc-sections \
-DBOARD_$(BOARD) -DMCU_$(MCU)
GLOBAL_CXXFLAGS := -fno-rtti -fno-exceptions -Wall -DBOARD_$(BOARD) -DMCU_$(MCU)
View
@@ -44,6 +44,7 @@
.globl HardFaultException
.thumb_func
HardFaultException:
+ b HardFaultException
ldr r0, CPSR_MASK @ Set default CPSR
push {r0}
ldr r0, TARGET_PC @ Set target pc
Oops, something went wrong.

0 comments on commit 443953a

Please sign in to comment.