Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
esp32: Create .uf2 binaries for S2 and S3 chips.
The name of the filesystem partition is updated to support "ffat", as used by TinyUF2. Signed-off-by: Damien George <damien@micropython.org>
- Loading branch information
Showing
3 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
from esp32 import Partition | ||
|
||
# MicroPython's partition table uses "vfs", TinyUF2 uses "ffat". | ||
bdev = Partition.find(Partition.TYPE_DATA, label="vfs") | ||
if not bdev: | ||
bdev = Partition.find(Partition.TYPE_DATA, label="ffat") | ||
bdev = bdev[0] if bdev else None |