Force damage partition.
Force damage partition.
How to force intentional damage to partition or fs corrupt? I need for tests. Thanks.
Re: Force damage partition.
On the Pyboard, you can use the following script: https://github.com/dhylands/upy-example ... aord-fs.sh which I'll also show the contents of here:
Code: Select all
#!/bin/sh
#
# This script demonstates how to erase just the filesystem on a pyboard.
#
# It actually only erases the first sector of the filesystem, but this
# is enough to make micropython reinitialize things.
set -x
echo -e -n "\xff" > ff.bin
dfu-util -s 0x08004000:leave -a 0 -d 0483:df11 -D ff.bin
Re: Force damage partition.
Thank you, do you have an idea for esp32?