1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/seeeduino_arch-pro/Makefile.include
Gaëtan Harter 5ce0c8f50d
boards/seeeduino_arch-pro: use FLASHFILE variable
Update to use FLASHFILE as file to be flashed on the board.

openocd.inc.mk now uses FLASHFILE variable so does not need to overwrite
FFLAGS anymore.
2019-03-26 19:26:42 +01:00

22 lines
611 B
Makefile

# define the used CPU
export CPU = lpc1768
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
DEBUG_ADAPTER ?= dap
# this board uses openocd with an HEXFILE
FLASHFILE ?= $(HEXFILE)
include $(RIOTMAKE)/tools/openocd.inc.mk
# generate image checksum from hex file
export PRE_FLASH_CHECK_SCRIPT = lpc_checksum --format hex
# remap flash to address 0x0, otherwise it verifies the rom bootloader
export OPENOCD_PRE_VERIFY_CMDS += '-c reset init'