Créer vos propes UF2 est très facile! tout ce dont vous avez besoin est d'un fichier .bin (un programme) que vous désirez flasher et [https://github.com/Microsoft/uf2/blob/master/utils/uf2conv.py d'un script de conversion Python]. Assurez vous que votre programme à été compilé pour démarrer à 0x2000 (8k) parce que le bootloader utilise les 8 premiers kilo octets. [https://github.com/adafruit/circuitpython/blob/master/atmel-samd/boards/samd21x18-bootloader.ld script de liaison (''linker'')] de CircuitPython montre comment réaliser cela.
−
Making your own UF2 is easy! All you need is a .bin file of a program you wish to flash and [https://github.com/Microsoft/uf2/blob/master/utils/uf2conv.py the Python conversion script]. Make sure that your program was compiled to start at 0x2000 (8k) because the bootloader takes the first 8k. CircuitPython's [https://github.com/adafruit/circuitpython/blob/master/atmel-samd/boards/samd21x18-bootloader.ld linker script] is an example on how to do that.
−
Once you have a .bin file, you simply need to run the Python conversion script over it. Here is an example from the directory with uf2conv.py:
+
Une fois que vous avez votre fichier .bin, vous avez simplement besoin d'exécuter le script de conversion python sur ce dernier. voici un exemple provenant du répertoire uf2conv.py:
This will produce a revg.uf2 file in the same directory as the source revg.bin. The uf2 can then be flashed in the same way as above.
+
Cela produira un fichier revg.uf2 dans le même répertoire que le fichier source (revg.bin). Le fichier uf2 peut donc être utilisé pour flasher la carte comme indiqué ci-avant.