mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 14:03:55 +01:00
boards/openmote-b: Fix openmote-b flasher
This fixes the JTAG flasher which needs a hw_reset This is needed since the standard jtag reset command does not work Since FLASHFILE is assigned in the jlink makefile only the bsl needs something The FLASHFILE is assigned a hex since the bin takes much longer to flash
This commit is contained in:
parent
08ef6a7e22
commit
36ca186bd1
@ -16,19 +16,20 @@ ifeq ($(PROGRAMMER),cc2538-bsl)
|
||||
else ifeq ($(OS),Darwin)
|
||||
PORT_BSL ?= $(PORT_DARWIN)
|
||||
endif
|
||||
FLASHFILE ?= $(HEXFILE)
|
||||
FLASHER = $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
|
||||
FFLAGS = -p "$(PORT_BSL)" --bootloader-invert-lines -e -w -v -b 460800 $(FLASHFILE)
|
||||
RESET ?= $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
||||
RESET_FLAGS ?= -p "$(PORT_BSL)" --bootloader-invert-lines
|
||||
else ifeq ($(PROGRAMMER),jlink)
|
||||
FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
|
||||
FFLAGS = $(BINDIR) $(FLASHFILE)
|
||||
DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
|
||||
DEBUGSERVER = JLinkGDBServer -device CC2538SF53
|
||||
RESET ?= $(RIOTBOARD)/$(BOARD)/dist/reset.sh
|
||||
# Special flashing and reset scripts are required due to board hardware
|
||||
export FLASH_ADDR = 0x200000
|
||||
export JLINK_DEVICE = CC2538SF53
|
||||
export JLINK_IF = JTAG
|
||||
export JLINK_RESET_FILE = $(RIOTBOARD)/$(BOARD)/dist/hw_reset.seg
|
||||
include $(RIOTMAKE)/tools/jlink.inc.mk
|
||||
endif
|
||||
|
||||
FLASHFILE ?= $(BINFILE)
|
||||
DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
|
||||
RESET_FLAGS ?= $(BINDIR)
|
||||
export OBJDUMPFLAGS += --disassemble --source --disassembler-options=force-thumb
|
||||
|
||||
# setup serial terminal
|
||||
|
||||
4
boards/openmote-b/dist/hw_reset.seg
vendored
Normal file
4
boards/openmote-b/dist/hw_reset.seg
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
r0
|
||||
sleep 100
|
||||
r1
|
||||
exit
|
||||
Loading…
x
Reference in New Issue
Block a user