forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now both flashing over DFU and JTAG are supported, however JTAG needs a special connection, so DFU is the current out of the box supported method for flashing. Jira: ZEP-1785 Change-Id: I47ffce3b332b99ef6c6afdce2214709a4fa5b946 Signed-off-by: Anas Nashif <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ifeq (${ZEPHYR_FLASH_OVER_DFU},y) | ||
FLASH_SCRIPT = dfuutil.sh | ||
DFUUTIL_PID = 8087:0aba | ||
DFUUTIL_ALT = x86_app | ||
DFUUTIL_IMG = ${O}/${KERNEL_BIN_NAME} | ||
export DFUUTIL_PID DFUUTIL_ALT DFUUTIL_IMG | ||
else | ||
FLASH_SCRIPT = openocd.sh | ||
endif | ||
DEBUG_SCRIPT = openocd.sh | ||
OPENOCD_PRE_CMD = "-c targets 1" | ||
OPENOCD_LOAD_CMD = "load_image ${O}/${KERNEL_BIN_NAME} ${CONFIG_PHYS_LOAD_ADDR}" | ||
OPENOCD_VERIFY_CMD = "verify_image ${O}/${KERNEL_BIN_NAME} ${CONFIG_PHYS_LOAD_ADDR}" | ||
|
||
export FLASH_SCRIPT OPENOCD_VERIFY_CMD OPENOCD_LOAD_CMD OPENOCD_PRE_CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
source [find interface/ftdi/flyswatter2.cfg] | ||
source [find board/quark_se.cfg] | ||
|
||
quark_se.quark configure -event gdb-attach { | ||
reset halt | ||
gdb_breakpoint_override hard | ||
} | ||
|
||
quark_se.quark configure -event gdb-detach { | ||
resume | ||
shutdown | ||
} |