Board Definition for Adafruit MagTag

I’d say to wait until a new stable Arduino-ESP32 release is out, which will then be integrated as normal with platform-espressif32. Everything beta is not supported / needs custom integration.

If that is really the option that breaks this, this binary and address needs to be added in the FLASH_EXTRA_IMAGES.

You can try and find this file locally (C:\Users\<user>\.platformio\packages\framework-arduinoespressif32@src-***\tools\platformio-build-esp32s2.py) and add

    ("0x2d0000", join(FRAMEWORK_DIR, "variants", env.BoardConfig().get("build.variant"), "tinyuf2.bin")

to that array. Make sure to use the project task “Advanced → Verbose Upload” to verify the results in the final esptool.py invocation.