mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
flash: support flashing boards using Mass Storage Device (MSD) operation for uf2 and daplink bootloaders
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"inherits": ["atsamd21g18a"],
|
||||
"build-tags": ["sam", "atsamd21g18a", "circuitplay_express"],
|
||||
"flash": "uf2conv.py {bin}"
|
||||
"flash": "{uf2}",
|
||||
"flash-1200-bps-reset": "true",
|
||||
"flash-method": "msd",
|
||||
"flash-msd-volume-name": "CPLAYBOOT"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"inherits": ["atsamd21g18a"],
|
||||
"build-tags": ["sam", "atsamd21g18a", "feather_m0"],
|
||||
"flash": "bossac -d -i -e -w -v -R --port={port} --offset=0x2000 {hex}"
|
||||
"flash": "{uf2}",
|
||||
"flash-1200-bps-reset": "true",
|
||||
"flash-method": "msd",
|
||||
"flash-msd-volume-name": "FEATHERBOOT"
|
||||
}
|
||||
|
||||
@@ -3,5 +3,8 @@
|
||||
"build-tags": ["hifive1b"],
|
||||
"ldflags": [
|
||||
"-T", "targets/hifive1b.ld"
|
||||
]
|
||||
],
|
||||
"flash": "{hex}",
|
||||
"flash-method": "msd",
|
||||
"flash-msd-volume-name": "HiFive"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"inherits": ["atsamd21g18a"],
|
||||
"build-tags": ["sam", "atsamd21g18a", "itsybitsy_m0"],
|
||||
"flash": "bossac -d -i -e -w -v -R --port={port} --offset=0x2000 {hex}"
|
||||
"flash": "{uf2}",
|
||||
"flash-1200-bps-reset": "true",
|
||||
"flash-method": "msd",
|
||||
"flash-msd-volume-name": "ITSYBOOT"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"inherits": ["atsamd51g19a"],
|
||||
"build-tags": ["sam", "atsamd51g19a", "itsybitsy_m4"],
|
||||
"flash": "bossac -d -i -e -w -v -R --offset=0x4000 {bin}"
|
||||
"flash": "{uf2}",
|
||||
"flash-1200-bps-reset": "true",
|
||||
"flash-method": "msd",
|
||||
"flash-msd-volume-name": "ITSYM4BOOT"
|
||||
}
|
||||
|
||||
@@ -3,5 +3,7 @@
|
||||
"build-tags": ["microbit"],
|
||||
"flash": "openocd -f interface/cmsis-dap.cfg -f target/nrf51.cfg -c 'program {hex} reset exit'",
|
||||
"ocd-daemon": ["openocd", "-f", "interface/cmsis-dap.cfg", "-f", "target/nrf51.cfg"],
|
||||
"gdb-initial-cmds": ["target remote :3333", "monitor halt", "load", "monitor reset", "c"]
|
||||
"gdb-initial-cmds": ["target remote :3333", "monitor halt", "load", "monitor reset", "c"],
|
||||
"flash-method": "msd",
|
||||
"flash-msd-volume-name": "MICROBIT"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"inherits": ["atsamd21e18a"],
|
||||
"build-tags": ["sam", "atsamd21e18a", "trinket_m0"],
|
||||
"flash": "bossac -d -i -e -w -v -R --port={port} --offset=0x2000 {hex}"
|
||||
"flash": "{uf2}",
|
||||
"flash-1200-bps-reset": "true",
|
||||
"flash-method": "msd",
|
||||
"flash-msd-volume-name": "TRINKETBOOT"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user