[sam] have the adk2 use the adk2install tool to flash and reboot a board

This commit is contained in:
Travis Geiselbrecht 2012-05-29 14:33:32 -07:00
parent afe66ac82b
commit b99d525a91
3 changed files with 13 additions and 1 deletions

View File

@ -395,6 +395,8 @@
<chmod perm="755" file="linux/work/hardware/tools/avrdude" />
<chmod perm="755" file="linux/work/hardware/tools/bossac" />
<chmod perm="755" file="linux/work/hardware/tools/bossac64" />
<chmod perm="755" file="linux/work/hardware/tools/adk2tool" />
<chmod perm="755" file="linux/work/hardware/tools/adk2install" />
<copy todir="linux/work" file="linux/dist/arduino" />
<chmod perm="755" file="linux/work/arduino" />

View File

@ -33,7 +33,7 @@ arduino_due_x.build.pid=0x003e
##############################################################
adk2.name=Google ADK2
adk2.upload.tool=bossac
adk2.upload.tool=adk2install
adk2.upload.protocol=sam-ba
adk2.upload.maximum_size=49152
adk2.build.mcu=cortex-m3

View File

@ -61,3 +61,13 @@ tools.bossac.upload.params.verbose=-i -d
tools.bossac.upload.params.quiet=
tools.bossac.upload.pattern={path}/{cmd} {upload.verbose} --port={serial.port.file} -e -w -v -b {build.path}/{build.project_name}.bin
# specialized tool for adk2 to twiddle the erase line before running bossac
tools.adk2install.cmd=adk2install
tools.adk2install.cmd.windows=bossac.exe
tools.adk2install.path={runtime.ide.path}/hardware/tools
tools.adk2install.upload.params.verbose=
tools.adk2install.upload.params.quiet=
tools.adk2install.upload.pattern={path}/{cmd} {path}/adk2tool {serial.port.file} {path}/bossac {build.path}/{build.project_name}.bin