2016-05-03 22:08:18 +02:00
|
|
|
# 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
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2016-05-03 22:08:18 +02:00
|
|
|
|
2017-10-06 14:59:07 +02:00
|
|
|
DEBUG_ADAPTER ?= dap
|
|
|
|
|
2019-03-20 16:44:40 +01:00
|
|
|
# this board uses openocd with an HEXFILE
|
|
|
|
FLASHFILE ?= $(HEXFILE)
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|
2016-05-03 22:08:18 +02:00
|
|
|
|
|
|
|
# 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
|
2020-03-26 09:20:51 +01:00
|
|
|
OPENOCD_PRE_VERIFY_CMDS += '-c reset init'
|