Closed jupe closed 8 years ago
@RomanSaveljev could you also take a look?
>mbedflash <operation> {arguments}
operations:
"flash"
<--tid target_id|all> (--method pyocd|simple) <file>
"reset"
<--tid target_id|all> (--method pyocd|serial)
"erase"
<--tid target_id|all> (--method pyocd|simple)
Should we have platform somewhere ?
@VeliMattiLahtela yes, lets keep the old interface as close as possible to what it is
But, if there was no legacy, then I would say it is more important to support multiple --tid
as it is the lowest common denominator for all kinds of filtering.
Different tool exists for discovering devices and it does it well. "One tool should do one thing and do it well"
Python API:
flasher.FLASHERS
-->new:
flasher.SUPPORTED_TARGETS
-->Flashing a single device
optional
If all required fields are available do not call mbedls at all (possible to use without mbedls)
Flashing all devices by platform
-->
Flashing a device using pyOCD
-->
Command Line Interface
Command format:
(Roman: edited the interface a little bit)
Flashing a single device
**optional
-t K64F
Flashing a device using pyOCD
New:
reset
erase