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*)))
|
|
|
|
|
2020-11-19 18:38:41 +01:00
|
|
|
# this board uses openocd with an HEXFILE
|
|
|
|
PROGRAMMER ?= openocd
|
2021-02-23 15:15:38 +01:00
|
|
|
PROGRAMMERS_SUPPORTED += openocd
|
2020-11-19 18:38:41 +01:00
|
|
|
FLASHFILE ?= $(HEXFILE)
|
2021-02-18 17:15:55 +01:00
|
|
|
OPENOCD_DEBUG_ADAPTER ?= dap
|
2017-10-06 14:59:07 +02:00
|
|
|
|
2016-05-03 22:08:18 +02:00
|
|
|
# generate image checksum from hex file
|
2021-02-18 18:18:54 +01:00
|
|
|
OPENOCD_PRE_FLASH_CHECK_SCRIPT = lpc_checksum --format hex
|
2016-05-03 22:08:18 +02:00
|
|
|
|
|
|
|
# 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'
|