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:
Ron Evans
2019-10-11 17:54:30 +02:00
committed by Ayke
parent 02facb8568
commit ba49148644
9 changed files with 122 additions and 37 deletions
+4 -1
View File
@@ -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"
}