Modifications

Sauter à la navigation Sauter à la recherche
1 739 octets ajoutés ,  29 décembre 2017 à 16:10
Ligne 2 : Ligne 2 :     
== UF2 Bootloader Details ==
 
== UF2 Bootloader Details ==
{{traduction}}
  −
   
{{ambox|text=Ceci est une page d'information pour les utilisateurs avancés qui sont curieux d'apprendre comment Adafruit transfert du code depuis votre ordinateur vers la carte Express!}}
 
{{ambox|text=Ceci est une page d'information pour les utilisateurs avancés qui sont curieux d'apprendre comment Adafruit transfert du code depuis votre ordinateur vers la carte Express!}}
   Ligne 61 : Ligne 59 :     
== Utiliser le Bootloader BOSSA ==
 
== Utiliser le Bootloader BOSSA ==
{{traduction}}
+
Comme mentionné ci-avant, le bootloader est également compatible avec BOSSA. BOSSA est une méthode standard de mise-à-jour des cartes lorsque l'on est dans Arduino IDE. C'est un utilitaire en ligne de commande qui peut être utilisé sur tous les systèmes d'exploitation. Cet article ne couvre pas complètement l'utilisation de l'utilitaire '''bossa''', mais suffisamment pour déjà en faire pas mal! Il y a plus d'information disponible sur [http://www.shumatech.com/web/products/bossa ShumaTech].
As mentioned before, the bootloader is also compatible with BOSSA, which is the standard method of updating boards when in the Arduino IDE. It is a command-line tool that can be used in any operating system. We won't cover the full use of the '''bossac''' tool, suffice to say it can do quite a bit! More information is available at [http://www.shumatech.com/web/products/bossa ShumaTech].
      
=== Pilotes pour Windows 7 ===
 
=== Pilotes pour Windows 7 ===
If you are running Windows 7 (or, goodness, something earlier?) You will need a Serial Port driver file. Windows 10 users do not need this so skip this step.
+
Si vous utilisez Windows 7 (ou version antérieur) alors vous aurez besoin d'un pilote pour le port série. Les utilisateurs de Windows 10 n'ont pas besoin d'un tel pilote et peuvent donc sauter cette étape.
   −
You can download our full driver package here:
+
Vous pouvez télécharger la paquet complet des pilotes chez Adafruit:
    
{{download-box|Télécharger le dernier installeur de pilote Adafruit|https://github.com/adafruit/Adafruit_Windows_Drivers/releases/download/2.0.0.0/adafruit_drivers_2.0.0.0.exe}}
 
{{download-box|Télécharger le dernier installeur de pilote Adafruit|https://github.com/adafruit/Adafruit_Windows_Drivers/releases/download/2.0.0.0/adafruit_drivers_2.0.0.0.exe}}
   −
Download and run the installer. We recommend just selecting all the serial port drivers available (no harm to do so) and installing them.
+
Téléchargez et exécutez le programme d'installation. Adafruit recommande de sélectionner tous les pilotes séries disponibles (cela ne pose pas problèmes) et de les installer.
    
{{ADFImage|FEATHER-M0-Bootloader-UF2-20.png}}
 
{{ADFImage|FEATHER-M0-Bootloader-UF2-20.png}}
   −
Verifying Serial Port in Device Manager
+
Vérivez les ports séries dans le gestionnaire de périphérique.
   −
If you're running Windows, its a good idea to verify the device showed up. Open your Device Manager from the control panel and look under '''Ports (COM & LPT)''' for a device called '''Feather M0''' or '''Circuit Playground''' or whatever!
+
Si vous utilisez Windows alors il serait judicieux de vérifier les périphériques affichés. Ouvrez votre gestionnaire de périphérique (''Device Manager'') depuis le panneau de contrôle et ouvrez le noeux '''Ports (COM & LPT)''', vous devriez y trouver un périphérique nommé '''Feather M0''' ou '''Circuit Playground''' ou quelque-chose dans le genre!
    
{{ADFImage|FEATHER-M0-Bootloader-UF2-21.png}}
 
{{ADFImage|FEATHER-M0-Bootloader-UF2-21.png}}
   −
If you see something like this, it means you did not install the drivers. Go back and try again, then remove and re-plug the USB cable for your board
+
Si vous voyez un tel périphérique alors cela signifie que vous n'avez pas besoin d'installer de pilote. Sinon, revenez en arrière dans le tutoriel et essayer une nouvelle fois, puis retirez et rebranchez le câble USB de votre carte.
    
{{ADFImage|FEATHER-M0-Bootloader-UF2-22.png}}
 
{{ADFImage|FEATHER-M0-Bootloader-UF2-22.png}}
   −
=== Running bossac on the command line ===
+
=== Exécuter bossac en ligne de commande ===
If you are using the Arduino IDE, this step is not required. But sometimes you want to read/write custom binary files, say for loading CircuitPython or your own code. We recommend using bossac v 1.7.0 (or greater), which has been tested. The Arduino branch is most recommended.
+
Cette étape n'est pas nécessaire, si vous utilisez Arduino IDE. Mais quelque chose qui sera nécessaire si vous voulez lire/écrire des fichiers binaires personnalisés, disons pour charger CircuitPython ou vos propres codes. Adafruit recommande l'utilisation de bossac v 1.7.0 (ou supérieur), la version qu'ils ont testés. La branche Arduino est la plus recommandée.
   −
You can download the latest builds here. The {{fname|mingw32}} version is for Windows, {{fname|apple-darwin}} for Mac OSX and various {{fname|linux}} options for Linux. Once downloaded, extract the files from the zip and open the command line to the directory with {{fname|bossac}}
+
[https://github.com/shumatech/BOSSA/releases Vous pouvez télécharger le dernier build ici]. La version {{fname|mingw32}} est destinée à Windows, {{fname|apple-darwin}} pour Mac OSX et les différentes options {{fname|linux}} pour Linux. Une fois téléchargé, faites une extraction des fichiers depuis l'archive et ouvrez une ligne de commande dans répertoire de {{fname|bossac}}
   −
For example here's the command line you probably want to run:
+
Voici, par exemple, la ligne de commande que vous aurez probablement besoin d'exécuter:
    
  <nowiki>bossac -e -w -v -R ~/Downloads/adafruit-circuitpython-feather_m0_express-0.9.3.bin</nowiki>
 
  <nowiki>bossac -e -w -v -R ~/Downloads/adafruit-circuitpython-feather_m0_express-0.9.3.bin</nowiki>
   −
This will {{fname|-e}}rase the chip, {{fname|-w}}rite the given file, {{fname|-v}}erify the write and {{fname|-R}}eset the board. After reset, CircuitPython should be running. Express boards may cause a warning of an early eject of a USB drive but just ignore it. Nothing important was being written to the drive. A hard power-reset is also  recommended after '''bossac''', just in case.
+
Cela effacera le contenu de la puce {{fname|-e}}rase, puis écrira le fichier mentionné {{fname|-w}}rite, vérifiera l'écriture {{fname|-v}}erify et redémarrera la carte {{fname|-R}}eset. CircuitPython devrait fonctionner après la réinitialisation de la carte. Les cartes Express pourraient provoquer des messages d'alertes ("''lecteurs éjecté du port USB prématurément''") mais vous pouvez simplement les ignorer. Rien n'est d'important est en cours d'écriture sur le lecteur. Une réinitialisation matérielle est également recommandé après un flashage '''bossac''' (juste au cas où...).
    
{{ADFImage|FEATHER-M0-Bootloader-UF2-23.png}}
 
{{ADFImage|FEATHER-M0-Bootloader-UF2-23.png}}
    
== Faire une mise-à-jour du bootloader ==
 
== Faire une mise-à-jour du bootloader ==
The UF2 bootloader is a new bootloader, and while we've done a ton of testing, it may contain bugs. Usually these bugs effect reliability rather than fully preventing the bootloader from working. If the bootloader is flaky then you can try updating the bootloader itself to potentially improve reliability.
+
Le bootloader UF2 est un tout nouveau bootloader et bien qu'il ait été abondement testé, il pour pourrait encore contenir des bogues. Ces bogues affecte généralement la fiabilité plutôt que d'empêcher le bootloader de fonctionner. Si le bootloader est instable alors vous pouvez essayer de mettre le bootloader à jour pour améliorer sa fiabilité.
   −
Updating the bootloader is as easy as flashing CircuitPython, Arduino or MakeCode. Simply enter the bootloader as above and then drag the update bootloader uf2 file below. This uf2 contains a program which will unlock the bootloader section, update the bootloader, and re-lock it. It will overwrite your existing code such as CircuitPython or Arduino so make sure everything is backed up!
+
Faire la mise-à-jour du bootloader est tout aussi simple de flasher CircuitPython, Arduino ou MakeCode. Activez simplement le bootloader comme précédemment puis glissez le fichier de mise-à-jour du bootloader présent ci-dessous. Ce fichier uf2 contient un programme qui débloque la section du bootloader, fait une mise-à-jour du bootloader et re-bloque la section. Il écrasera votre code existant (CircuitPython, Arduino ou autre) alors pensez à en faire une copie avant d'appliquer la mise-à-jour!
   −
After the file is copied over, the bootloader will be updated and appear again. The '''INFO_UF2.TXT''' file should show the newer version number inside.
+
Après la copie du fichier, le bootloader sera mis-à-jour et réapparaitra à nouveau. Le fichier '''INFO_UF2.TXT''' doit contenir une information indiquant la nouvelle version.
   −
For example:
+
Par exemple:
 
  <nowiki>UF2 Bootloader v1.20.0 SFHR
 
  <nowiki>UF2 Bootloader v1.20.0 SFHR
 
Model: Adafruit Feather M0
 
Model: Adafruit Feather M0
 
Board-ID: SAMD21G18A-Feather-v0</nowiki>
 
Board-ID: SAMD21G18A-Feather-v0</nowiki>
   −
Lastly, reload your code from Arduino or MakeCode or flash the latest CircuitPython core.
+
Pour terminer: recharger votre code Arduino ou MakeCode ou flashez le dernier noyaux CircuitPython.
 +
 
 +
Voici les dernières mise-à-jour pour les différentes cartes. N'hésitez pas à [https://learn.adafruit.com/adafruit-feather-m0-express-designed-for-circuit-python-circuitpython/uf2-bootloader-details consulter le tutoriel Adafruit pour une information plus récente/mise-à-jour].
   −
The latest updaters for various boards:
      
{{download-box|Circuit Playground Express v1.23 update-bootloader.uf2|https://cdn-learn.adafruit.com/assets/assets/000/045/717/original/update-bootloader.uf2?1503523524}}
 
{{download-box|Circuit Playground Express v1.23 update-bootloader.uf2|https://cdn-learn.adafruit.com/assets/assets/000/045/717/original/update-bootloader.uf2?1503523524}}
Ligne 125 : Ligne 123 :     
== Eliminer les popups Windows ==
 
== Eliminer les popups Windows ==
If you do a lot of development on Windows with the UF2 bootloader, you may get annoyed by the constant "Hey you inserted a drive what do you want to do" pop-ups.
+
Si vous désirez faire des développement avec le bootloader UF2 sous Windows alors vous serez certainement dérangé par la constante apparition boîte de dialogue "Hey! vous avez inséré un lecteur, que voulez-faire avec?"  
    
<small>Toutes les images ci-dessous sont créditées à [http://www.adafruit.com Adafruit Industries] - All images here under are credited to [http://www.adafruit.com Adafruit Industries]</small>
 
<small>Toutes les images ci-dessous sont créditées à [http://www.adafruit.com Adafruit Industries] - All images here under are credited to [http://www.adafruit.com Adafruit Industries]</small>
Ligne 132 : Ligne 130 :     
{{asm-row|img=FEATHER-M0-Bootloader-UF2-30.png}}
 
{{asm-row|img=FEATHER-M0-Bootloader-UF2-30.png}}
{{asm-text}} Go to the Control Panel. Click on the '''Hardware and Sound''' header
+
{{asm-text}} Rendez-vous dans le panneau de configuration (''Control Panel''). Cliquez sur l'entête '''Matériel et son''' (''Hardware and Sound'')
    
{{asm-row|img=FEATHER-M0-Bootloader-UF2-31.png}}
 
{{asm-row|img=FEATHER-M0-Bootloader-UF2-31.png}}
{{asm-text}} Click on the '''Autoplay''' header
+
{{asm-text}} Cliquer sur l'entête '''Jouer automatiquement''' (''Autoplay'')
    
{{asm-row|img=FEATHER-M0-Bootloader-UF2-32.png}}
 
{{asm-row|img=FEATHER-M0-Bootloader-UF2-32.png}}
{{asm-text}} Uncheck the box at the top, labeled '''Use Autoplay for all devices'''
+
{{asm-text}} Décochez la case (au dessus) libellé '''Juer automatiquement sur tous les périphériques''' (''Use Autoplay for all devices'')
    
{{asm-end}}
 
{{asm-end}}
    
== Faire votre propre UF2 ==
 
== Faire votre propre UF2 ==
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.
+
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.
   −
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:
    
  <nowiki>uf2conv.py -c -o build-circuitplayground_express/revg.uf2 build-circuitplayground_express/revg.bin</nowiki>
 
  <nowiki>uf2conv.py -c -o build-circuitplayground_express/revg.uf2 build-circuitplayground_express/revg.bin</nowiki>
   −
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.
    
{{FEATHER-M0-EXPRESS-TRAILER}}
 
{{FEATHER-M0-EXPRESS-TRAILER}}
29 917

modifications

Menu de navigation