Différences entre versions de « FEATHER-M0-MicroPython »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 8 : Ligne 8 :
 
[https://github.com/adafruit/circuitpython CircuitPython] est un dérivé de [https://micropython.org MicroPython] conçu pour simplifier L'expérimentation et l'apprentissage sur les microcontrôleurs abordables. Il rend le prototypage plus simple que jamais car il ne requière aucun logiciel spécifique sur votre ordinateur. [https://github.com/adafruit/circuitpython/releases/latest Téléchargez] simplement [https://github.com/adafruit/circuitpython CircuitPython] et déposez le sur le lecteur qui apparaît (uniquement disponible pour les cartes Express). Une fois CircuitPython installé, vous pouvez programmer votre carte express en CircuitPython en faisant de simples copiés/collés de vos scripts Python sur le lecteur.
 
[https://github.com/adafruit/circuitpython CircuitPython] est un dérivé de [https://micropython.org MicroPython] conçu pour simplifier L'expérimentation et l'apprentissage sur les microcontrôleurs abordables. Il rend le prototypage plus simple que jamais car il ne requière aucun logiciel spécifique sur votre ordinateur. [https://github.com/adafruit/circuitpython/releases/latest Téléchargez] simplement [https://github.com/adafruit/circuitpython CircuitPython] et déposez le sur le lecteur qui apparaît (uniquement disponible pour les cartes Express). Une fois CircuitPython installé, vous pouvez programmer votre carte express en CircuitPython en faisant de simples copiés/collés de vos scripts Python sur le lecteur.
  
== Downloading ==
+
== Télécharger ==
The latest builds of <a href="https://github.com/adafruit/circuitpython">CircuitPython</a> are available from the <a href="https://github.com/adafruit/circuitpython/releases/latest">GitHub release page</a>. Binaries for different boards are listed under the Downloads section. Pick the one that matches your board such as <code class="prettyprint">adafruit-circuitpython-feather_m0_express-0.9.3.bin</code> for the Feather M0 Express or <code class="prettyprint">adafruit-circuitpython-metro_m0_express-0.9.3.bin</code> for the Metro M0 Express.  
+
Les derniers build de [https://github.com/adafruit/circuitpython CircuitPython] sont disponibles sur [https://github.com/adafruit/circuitpython/releases/latest la page ''release''] du projet GitHub. Les fichiers binaires pour les différentes cartes sont disponibles sous la section "Downloads" (téléchargement).
  
Files that end with <code class="prettyprint">.bin</code> can be flashed with <code class="prettyprint">esptool.py</code> or <code class="prettyprint">bossac</code>. Files ending in <code class="prettyprint">.uf2</code> can be flashed onto a virtual drive when in bootloader mode.
+
Sélectionnez le fichier binaire correspondant à votre carte tel que:
 +
* {{fname|adafruit-circuitpython-feather_m0_express-0.9.3.bin}} pour le Feather M0 Express -ou-
 +
* {{fname|adafruit-circuitpython-metro_m0_express-0.9.3.bin}} pour le Metro M0 Express (carte au format Arduino R3).  
  
You will see a list of all available ''flavors'' of CircuitPython. Since we support a lot of different hardware, we have a long list of available downloads!
+
Les fichiers terminant par '''.bin''' peuvent être flashé sur la carte à l'aide d'outil comme '''esptool.py''' ou de '''bossac'''.
 +
 
 +
Les fichier terminant par '''.uf2''' peuvent être flashé sur le lecteur virtuel lorsque la carte est en '''mode bootloader'''.
 +
 
 +
La liste contient de nombreuses versions de CircuitPython. La liste des téléchargements est longue car Adafruit supporte de nombreuses versions matérielles différentes!
  
 
{{ADFImage|FEATHER-M0-MicroPython-02.png|640px}}
 
{{ADFImage|FEATHER-M0-MicroPython-02.png|640px}}
  
See below for which file to download!
+
Voyez ci-dessous le fichier à télécharger!
  
 
== Flashing ==
 
== Flashing ==

Version du 9 novembre 2017 à 23:00


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Introduction

FEATHER-M0-MicroPython-01.png
Crédit: AdaFruit Industries www.adafruit.com

CircuitPython est un dérivé de MicroPython conçu pour simplifier L'expérimentation et l'apprentissage sur les microcontrôleurs abordables. Il rend le prototypage plus simple que jamais car il ne requière aucun logiciel spécifique sur votre ordinateur. Téléchargez simplement CircuitPython et déposez le sur le lecteur qui apparaît (uniquement disponible pour les cartes Express). Une fois CircuitPython installé, vous pouvez programmer votre carte express en CircuitPython en faisant de simples copiés/collés de vos scripts Python sur le lecteur.

Télécharger

Les derniers build de CircuitPython sont disponibles sur la page release du projet GitHub. Les fichiers binaires pour les différentes cartes sont disponibles sous la section "Downloads" (téléchargement).

Sélectionnez le fichier binaire correspondant à votre carte tel que:

  • adafruit-circuitpython-feather_m0_express-0.9.3.bin pour le Feather M0 Express -ou-
  • adafruit-circuitpython-metro_m0_express-0.9.3.bin pour le Metro M0 Express (carte au format Arduino R3).

Les fichiers terminant par .bin peuvent être flashé sur la carte à l'aide d'outil comme esptool.py ou de bossac.

Les fichier terminant par .uf2 peuvent être flashé sur le lecteur virtuel lorsque la carte est en mode bootloader.

La liste contient de nombreuses versions de CircuitPython. La liste des téléchargements est longue car Adafruit supporte de nombreuses versions matérielles différentes!

FEATHER-M0-MicroPython-02.png
Crédit: AdaFruit Industries www.adafruit.com

Voyez ci-dessous le fichier à télécharger!

Flashing

Flashing is the process of updating the CircuitPython core. It isn't needed for updating your own code. There are two available methods: UF2 and bossac UF2 flashing is only available on Express boards, they have a UF2-capable beta bootloader. Flashing via bossac is possible with both the Express bootloader and the original "Arduino" one. We recommend using UF2 if you can. If UF2 fails, or is not available, try bossac.

Regardless of what method you use, you must first get the board into the bootloader mode. This is done by double clicking the reset button. The board is in bootloader mode when the red led fades in and out. Boards with the status neopixel will also show USB status while the red led fades. Green means USB worked while red means the board couldn't talk to the computer. The first step to troubleshooting a red neopixel is trying a different USB cable to make sure its not a charge-only cable.

Flashing UF2

Adafruit Express boards come with a new beta bootloader called UF2 that makes flashing CircuitPython even easier than before. This beta bootloader allows you to drag so-called ".uf2" type files onto the BOOT drive. <a href="../../../../adafruit-feather-m0-express-designed-for-circuit-python-circuitpython/uf2-bootloader">For more information, check out our UF2 bootloader page.</a>

Start by double-clicking the reset button while it is plugged into your computer. You should see a new disk drive 'pop up' called METROBOOT or FEATHERBOOT or similar, and the NeoPixel on your board glow green.

The drive will contain a few files. If you want to make a 'backup' of the current firmware on the device, drag-off and save the CURRENT.UF2 file. Other than that, you can ignore the index.htm and info_uf2.txt files. They cannot be deleted and are only for informational purposes.

Next up, find the Feather M0 Express UF2 or Metro M0 Express UF2 file in the github downloads list:

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

Click to download and save the file onto your Desktop or somewhere else you can find it

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

Then drag the uf2 file into the BOOT drive

FEATHER-M0-MicroPython-05.png
Crédit: AdaFruit Industries www.adafruit.com

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

FEATHER-M0-MicroPython-07.png
Crédit: AdaFruit Industries www.adafruit.com

Once the full file has been received, the board will automatically restart into CircuitPython. Your computer may warn about ejecting the drive early, if it does, simply ignore it because the board made sure the file was received ok.

Flashing with BOSSAC

This method is only recommended if you can't use UF2 for some reason!

To flash with bossac (BOSSA's command line tool) first download the latest version from <a href="https://github.com/shumatech/BOSSA/releases/latest">here</a>. The mingw32 version is for Windows, apple-darwin for Mac OSX and various linux options for Linux. Once downloaded, extract the files from the zip and open the command line to the directory with bossac.

bossac -e -w -v -R ~/Downloads/adafruit-circuitpython-feather_m0_express-0.9.3.bin

This will erase the chip, write the given file, verify the write and Reset 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.

FEATHER-M0-MicroPython-08.png
Crédit: AdaFruit Industries www.adafruit.com

<a href="#after-flashing" class="anchor-link"></a>After flashing

After a successful flash by bossac or UF2 you should see a CIRCUITPY drive appear.

FEATHER-M0-MicroPython-09.png
Crédit: AdaFruit Industries www.adafruit.com



Source: Adafruit Feather M0 Express - Designed for CircuitPython créé par LadyAda, Tony DiCola, Scorr Shawcroft, Dan Halbert pour AdaFruit Industries. Crédit AdaFruit Industries

Traduit par Meurisse D. pour MCHobby.be

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.