2017-03-12 21:50:08 +08:00
|
|
|
ifeq (${ZEPHYR_FLASH_OVER_DFU},y)
|
|
|
|
FLASH_SCRIPT = dfuutil.sh
|
|
|
|
DFUUTIL_PID = 8087:0aba
|
|
|
|
DFUUTIL_ALT = sensor_core
|
|
|
|
DFUUTIL_IMG = ${O}/${KERNEL_BIN_NAME}
|
|
|
|
export DFUUTIL_PID DFUUTIL_ALT DFUUTIL_IMG
|
|
|
|
else
|
2016-01-16 01:18:53 +08:00
|
|
|
FLASH_SCRIPT = openocd.sh
|
2017-03-12 21:50:08 +08:00
|
|
|
endif
|
2017-01-08 02:22:21 +08:00
|
|
|
DEBUG_SCRIPT = openocd.sh
|
|
|
|
|
2017-03-31 21:12:59 +08:00
|
|
|
OPENOCD_PRE_CMD = "targets 1"
|
2016-04-24 09:37:48 +08:00
|
|
|
OPENOCD_LOAD_CMD = "load_image ${O}/${KERNEL_BIN_NAME} $(CONFIG_FLASH_BASE_ADDRESS)"
|
|
|
|
OPENOCD_VERIFY_CMD = "verify_image ${O}/${KERNEL_BIN_NAME} $(CONFIG_FLASH_BASE_ADDRESS)"
|
2016-01-16 01:18:53 +08:00
|
|
|
|
2016-02-02 11:24:21 +08:00
|
|
|
GDB_PORT = 3334
|
|
|
|
|
2016-04-01 21:00:44 +08:00
|
|
|
export OPENOCD_PRE_CMD FLASH_SCRIPT OPENOCD_VERIFY_CMD OPENOCD_LOAD_CMD GDB_PORT
|
2016-01-16 01:18:53 +08:00
|
|
|
|