vgkits / vanguard-cli

VGkits' tools to connect to Micropython Vanguard Shell, reset, save and restore Vanguard firmware and other utility tasks.
GNU General Public License v3.0
1 stars 1 forks source link

Check board detection before erase #9

Open cefn opened 5 years ago

cefn commented 5 years ago

Currently as per https://twitter.com/biglesp/status/1109916932105474048 and https://github.com/vgkits/vgkits-vanguard/issues/8 the board detection routine is only triggered AFTER the erase cycle.

If the board is not recognised, it doesn't flash the board, leaving it blank after the erase.

Ideally vanguard shouldn't erase anything it knows it doesn't have a configuration to re-flash afterwards, and should fail BEFORE the erase cycle.