Skip to content

Commit

Permalink
boards/msbiot: Switch from st-util to openocd
Browse files Browse the repository at this point in the history
  • Loading branch information
fnack committed Mar 6, 2015
1 parent 96e6d2a commit 869a6dc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
16 changes: 10 additions & 6 deletions boards/msbiot/Makefile.include
Expand Up @@ -23,10 +23,12 @@ export AS = $(PREFIX)as
export LINK = $(PREFIX)gcc
export SIZE = $(PREFIX)size
export OBJCOPY = $(PREFIX)objcopy
export DBG = $(PREFIX)gdb
export TERMPROG = $(RIOTBASE)/dist/tools/pyterm/pyterm
export FLASHER = st-flash
export DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
export DEBUGSERVER = st-util
export FLASHER = $(RIOTBASE)/dist/tools/openocd/openocd.sh
export DEBUGGER = $(RIOTBASE)/dist/tools/openocd/openocd.sh
export DEBUGSERVER = $(RIOTBASE)/dist/tools/openocd/openocd.sh
export RESET = $(RIOTBASE)/dist/tools/openocd/openocd.sh

# define build specific options
CPU_USAGE = -mcpu=cortex-m4
Expand All @@ -36,10 +38,12 @@ export CFLAGS += -ffunction-sections -fdata-sections -fno-builtin
export ASFLAGS += -ggdb -g3 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian
export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -static -lgcc -mthumb -mno-thumb-interwork -nostartfiles
export LINKFLAGS += -T$(LINKERSCRIPT)
export OFLAGS = -O binary
export FFLAGS = write bin/$(BOARD)/$(APPLICATION).hex 0x8000000
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(BINDIR)/$(APPLICATION).elf
export OFLAGS = -O ihex
export TERMFLAGS += -p "$(PORT)"
export FFLAGS = flash
export DEBUGGER_FLAGS = debug
export DEBUGSERVER_FLAGS = debug-server
export RESET_FLAGS = reset

# unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++
export CXXUWFLAGS +=
Expand Down
4 changes: 0 additions & 4 deletions boards/msbiot/dist/debug.sh

This file was deleted.

1 change: 0 additions & 1 deletion boards/msbiot/dist/gdb.conf

This file was deleted.

1 change: 1 addition & 0 deletions boards/msbiot/dist/openocd.cfg
@@ -0,0 +1 @@
source [find board/stm32f4discovery.cfg]

0 comments on commit 869a6dc

Please sign in to comment.