BOSSA icon indicating copy to clipboard operation
BOSSA copied to clipboard

Fix unlock and erase for `bossac`

Open torfinnberset opened this issue 7 years ago • 2 comments

Previously, for a locked device, bossac would fail if you passed both an --unlock and an --erase flag at the same time, as the erase was scheduled before the unlocking. This PR enforces that any --unlock operation is committed immediately, so that any following erase or write operation can succeed.

torfinnberset avatar Nov 08 '18 17:11 torfinnberset

Looks fine except I don't think the timer is useful for such a fast operation.

shumatech avatar Jun 04 '19 02:06 shumatech

On my board, the unlock operation takes a 'significant' time to complete, so I added the timer to measure.

torfinnberset avatar Jun 04 '19 09:06 torfinnberset