Building UF2 file

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
p_j
Posts: 102
Joined: Mon Aug 23, 2021 1:08 pm
Location: Sydney

Building UF2 file

Post by p_j » Fri Jul 22, 2022 2:47 pm

I noticed that the functionality to build UF2 files was added to micropython about 6 months ago.

https://github.com/micropython/micropyt ... 9d446498bb

I have tried a couple of different command line options but the UF2 file never gets built. Does anyone know how to build the UF2 file?

Code: Select all

idf.py -D MICROPY_BOARD=MYBOARD_V1 -D IDF_TARGET=ESP32S2 build
and

Code: Select all

make board=MYBOARD_V1   

p_j
Posts: 102
Joined: Mon Aug 23, 2021 1:08 pm
Location: Sydney

Re: Building UF2 file

Post by p_j » Sat Jul 23, 2022 4:13 am

I figured out how to do this manually from the esp docs but still unsure why it doesn't happen as part of the build process

https://github.com/adafruit/tinyuf2/tre ... ary-to-uf2

Code: Select all

uf2conv.py firmware.bin -c -b 0x00 -f ESP32S2

Post Reply