Skip to content

Commit

Permalink
tinytile: support flashing
Browse files Browse the repository at this point in the history
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
nashif authored and Anas Nashif committed Mar 27, 2017
1 parent a432cc5 commit 8eea1d7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
15 changes: 15 additions & 0 deletions boards/x86/tinytile/Makefile.board
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
12 changes: 12 additions & 0 deletions boards/x86/tinytile/support/openocd.cfg
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
}

0 comments on commit 8eea1d7

Please sign in to comment.