diff options
author | Andrew Leech <andrew.leech@planetinnovation.com.au> | 2020-03-05 16:05:36 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-06-30 21:22:21 +1000 |
commit | 8bbaa20227285a724446bffdb89120f03cce1f40 (patch) | |
tree | a6ed85879ac90867d02db5855afdbf867be6123e /docs/esp32/tutorial | |
parent | 4d6f60d4286b3e6ea8c9fb0141ba13e4978882b6 (diff) |
stm32/mboot: Implement DFU mass erase.
The implementation internally uses sector erase to wipe everything except
the sector(s) that mboot lives in (by erasing starting from
APPLICATION_ADDR).
The erase command can take some time (eg an STM32F765 with 2MB of flash
takes 8 to 10 seconds). This time is normally enough to make pydfu.py fail
with a timeout. The DFU standard includes a mechanism for the DFU device
to request a longer timeout as part of the get-status response just before
starting an operation. This timeout functionality has been implemented
here.
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions