.UF2

UF2 Datei

UF2 Firmware File
Frage stellen
SCHNELLE ANTWORT

Eine UF2-Datei ist ein Firmware-Image im USB Flashing Format von Microsoft, das zur Programmierung von Mikrocontroller-Boards über USB verwendet wird. Sie öffnen sie nicht in einer App - Sie versetzen das Board in den Bootloader-Modus, sodass es als USB-Laufwerk erscheint, und ziehen dann die .uf2-Datei auf dieses Laufwerk. Das Board flasht die Firmware und startet neu. UF2 ist der Standardweg, um Code auf Boards wie den Raspberry Pi Pico, BBC micro:bit und Adafruit CircuitPython-Boards zu laden.

Entwickler: Microsoft (MakeCode / PXT) Kategorie: Developerdateien Offener Standard MIME: application/octet-stream
VERFÜGBAR AUF Windows macOS Linux Web
Verwandt: .DO · .MD · .HEX · .XSD

Auf dieser Seite

19k+ Erweiterungen indexiert
Zuletzt geprüft Jun 19, 2026

Nicht sicher, was Ihre Datei ist?

Legen Sie eine beliebige Datei in unseren Identifikator - wir lesen nur die ersten Bytes, um das Format zu benennen.

Datei identifizieren

Was ist das UF2-Dateiformat?

UF2 steht für USB Flashing Format, ein Dateiformat, das Microsoft 2017 für seine MakeCode (PXT)-Plattform entwickelt hat. Es wurde konzipiert, um Mikrocontroller über USB-Massenspeicher zu flashen: Das Board erscheint als gewöhnliches Wechselmedium, und Sie kopieren die Firmware wie jede andere Datei darauf. Die Spezifikation ist offen und wird von Microsoft unter einer MIT-Lizenz veröffentlicht.

Eine .uf2-Datei ist eine flache Sequenz von 512-Byte-Blöcken. Jeder Block ist in sich abgeschlossen - er trägt einen 32-Byte-Header mit Magic Numbers, der Ziel-Flash-Adresse, der Payload-Länge, dem Index und der Gesamtzahl des Blocks sowie einer Family-ID, die den Ziel-Chip identifiziert, gefolgt von bis zu 476 Bytes Firmware und einer abschließenden Magic Number. Dieses Design löst ein reales Problem: Ein Betriebssystem kann die Blöcke einer kopierten Datei in beliebiger Reihenfolge schreiben. Da jeder Block unabhängig ist, kann der Bootloader des Boards die Daten in dem Moment flashen, in dem sie ankommen, ohne jemals eine unvollständige Datei sehen zu müssen.

Die meisten Anwender begegnen UF2 beim Programmieren eines Hobby- oder Bildungs-Boards. Der Raspberry Pi Pico (RP2040), BBC micro:bit sowie viele Boards von Adafruit, Arduino und Seeed akzeptieren UF2, und so werden CircuitPython- und MakeCode-Projekte installiert. Normalerweise erhalten Sie eine .uf2, indem Sie sie aus einem Editor wie MakeCode exportieren oder eine vorgefertigte Firmware für Ihr exaktes Board herunterladen. Verwandte Firmware-Formate, die Ihnen begegnen könnten, sind rohe .BIN-Images und Intel .HEX-Dateien.

Sicherheit

RISIKO: MEDIUM

A UF2 file is passive data and cannot run on your PC, but flashing firmware rewrites a board's program memory. Only flash a .uf2 that is built for your exact board, and only from a source you trust, since the wrong or malicious firmware can leave a board unusable until you reflash a known-good image.

Formatdetails

kurz gefasst
VOLLSTÄNDIGER NAMEUF2 Firmware Filealias USB Flashing Format, UF2 file
ENTWICKLERMicrosoft (MakeCode / PXT)seit 2017 (Microsoft MakeCode / PXT)
MIME TYPEapplication/octet-stream
TYPBinary firmware container designed for flashing microcontrollers over USB Mass Storage
STANDARDOffen · lizenzfrei
MAGIC BYTES · DATEISIGNATUR
OFFSET
00010203
HEX
5546320A
ASCII
UF2·
First block magic (magicStart0 = 0x0A324655). A second magic 0x9E5D5157 follows at offset 4, and every 512-byte block ends with magicEnd 0x0AB16F30 at offset 508.

Programme zum Öffnen von UF2-Dateien

Windows4 apps
The board's UF2 bootloader (USB drive) Integriert Put the board in bootloader mode so it appears as a USB drive, then drag the .uf2 file onto that drive.
Microsoft MakeCode Kostenlos Build a project in MakeCode and use Download to export and flash a .uf2.
uf2conv.py (Microsoft UF2 tools) Open Source Convert firmware with uf2conv.py firmware.bin -o firmware.uf2, or inspect a UF2 with uf2conv.py -i firmware.uf2.
Arduino IDE Open Source Install the board package, then Upload to compile and flash via the UF2 bootloader.
macOS2 apps
The board's UF2 bootloader (USB drive) Integriert Drag the .uf2 file onto the removable drive the board presents in bootloader mode.
Microsoft MakeCode Kostenlos Export the project as .uf2 from MakeCode and copy it to the board.
Linux2 apps
The board's UF2 bootloader (USB drive) Integriert Mount the board's USB drive and copy the .uf2 file onto it.
uf2conv.py (Microsoft UF2 tools) Open Source Run python3 uf2conv.py firmware.bin -o firmware.uf2 to build or inspect UF2 files.
Web1 app
Microsoft MakeCode Kostenlos Create and download UF2 firmware directly in the browser.

Technische Details

technische Spezifikation
Encodingbinary
Byte orderlittle-endian (all 32-bit fields)
Containerflat sequence of independent 512-byte blocks
Typical sizea few KB to about 1 MB
StructureA series of 512-byte blocks; each has a 32-byte header (magic numbers, target flash address, payload size, block index and count, family ID), up to 476 bytes of firmware payload, and a trailing magic number
Versioningflags and 32-bit family-ID field identify the target chip (for example RP2040)
Integritythree magic numbers per block (0x0A324655, 0x9E5D5157, 0x0AB16F30) validate each block; no CRC
PlatformsWindows, macOS, Linux, ChromeOS
Initial Release Full2017, with Microsoft MakeCode
NotesYou do not open a UF2 to view it; you copy it onto the board's USB drive to flash firmware. Because each 512-byte block is self-contained, the operating system can write the blocks in any order and the bootloader still flashes correctly.
Veröffentlicht2017 (Microsoft MakeCode / PXT)
Offener StandardJa · lizenzgebührenfrei
Spezifikationgithub.com

UF2-Konvertierungen

Community Q&A

von Nutzern gefragt
Schnelle Frage stellen
Holen Sie sich Hilfe von Menschen, die mit UF2-Dateien arbeiten. Seien Sie konkret - geben Sie Ihr System und die Softwareversion an.
Kein Konto erforderlich · Antworten meist innerhalb eines Tages

Noch keine Fragen - stellen Sie die erste Frage zu UF2-Dateien.

Häufig gestellte Fragen

Wie öffne ich eine UF2-Datei?
Sie öffnen sie nicht in einer App. Versetzen Sie Ihr Board in den Bootloader-Modus, sodass es als USB-Laufwerk erscheint, und ziehen Sie dann die .uf2-Datei auf dieses Laufwerk. Das Board flasht sie und startet neu.
Wie versetze ich einen Raspberry Pi Pico in den Bootloader-Modus?
Halten Sie die BOOTSEL-Taste gedrückt, während Sie den Pico an USB anschließen. Er wird als Laufwerk namens RPI-RP2 eingebunden; kopieren Sie die .uf2 darauf, und das Board startet mit der neuen Firmware neu.
Kann ich eine UF2-Datei in BIN konvertieren?
Ja. Microsofts uf2conv.py extrahiert die rohe Binärdatei mit uf2conv.py file.uf2 -c -o file.bin. Behalten Sie die im UF2-Header gespeicherte Flash-Adresse im Auge.
Warum akzeptiert mein Board die UF2-Datei nicht?
Die Datei wurde wahrscheinlich für einen anderen Chip erstellt. UF2-Blöcke tragen eine Family-ID, und ein Bootloader ignoriert Firmware, die nicht zu seinem Board passt. Laden Sie daher den Build herunter, der für Ihr exaktes Modell erstellt wurde.
Ist eine UF2-Datei sicher?
Die Datei selbst kann nicht auf Ihrem Computer ausgeführt werden. Das Risiko liegt auf der Hardware-Seite: Das Flashen von Firmware aus einer nicht vertrauenswürdigen Quelle oder von Firmware, die für ein anderes Board gedacht ist. Verwenden Sie daher nur UF2-Dateien, die für Ihr Gerät bestimmt sind.

Quellen

1Microsoft - USB Flashing Format (UF2) specificationmicrosoft.github.io
2microsoft/uf2 on GitHub (spec and uf2conv tool)github.com

Weiter entdecken

in der Datenbank

Top-Erweiterungen dieser Woche

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.CRDOWNLOADChrome Partial Download File
4.MDMarkdown Document
5.RPMSGRestricted Permission Message
6.PARTPartial Download File
7.NOMEDIAAndroid No-Media Marker File
8.DBSQLite Database File
9.EXEWindows Executable (Portable Executable)
10.SWFSmall Web Format (Shockwave Flash)

Verwandte Erweiterungen

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Kostenlose Datei-Tools

Ein Browser-Dateiidentifikator und Bildkonverter - alles läuft auf Ihrem Gerät.

Toolbox öffnen

Dateierweiterungen A-Z durchsuchen