Différences entre versions de « FEATHER-M0-MicroPython »
Ligne 4 : | Ligne 4 : | ||
{{ADFImage|FEATHER-M0-MicroPython-01.png|640px}} | {{ADFImage|FEATHER-M0-MicroPython-01.png|640px}} | ||
+ | |||
+ | <a href="https://github.com/adafruit/circuitpython">CircuitPython</a> is a derivative of <a href="https://micropython.org">MicroPython</a> designed to simplify experimentation and education on low-cost microcontrollers. It makes it easier than ever to get prototyping by requiring no upfront desktop software downloads. Simply <a href="https://github.com/adafruit/circuitpython/releases/latest">download</a> <a href="https://github.com/adafruit/circuitpython">CircuitPython</a> and drag it onto the drive that appears (only available on Express boards currently). Once installed, simply copy and edit files on the drive to iterate. | ||
+ | |||
+ | == Downloading == | ||
+ | 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. | ||
+ | |||
+ | 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. | ||
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! | 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! | ||
Ligne 10 : | Ligne 17 : | ||
See below for which file to download! | See below for which file to download! | ||
+ | |||
+ | == 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 == | == Flashing UF2 == | ||
Ligne 33 : | Ligne 45 : | ||
{{ADFImage|FEATHER-M0-MicroPython-07.png|640px}} | {{ADFImage|FEATHER-M0-MicroPython-07.png|640px}} | ||
+ | |||
+ | 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 <code class="prettyprint">bossac</code> (BOSSA's command line tool) first download the latest version from <a href="https://github.com/shumatech/BOSSA/releases/latest">here</a>. The <code class="prettyprint">mingw32</code> version is for Windows, <code class="prettyprint">apple-darwin</code> for Mac OSX and various <code class="prettyprint">linux</code> options for Linux. Once downloaded, extract the files from the zip and open the command line to the directory with <code class="prettyprint">bossac</code>. | ||
+ | |||
+ | <code class="prettyprint">bossac -e -w -v -R ~/Downloads/adafruit-circuitpython-feather_m0_express-0.9.3.bin</code> | ||
+ | |||
+ | This will <code class="prettyprint">e</code>rase the chip, <code class="prettyprint">w</code>rite the given file, <code class="prettyprint">v</code>erify the write and <code class="prettyprint">R</code>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. | ||
{{ADFImage|FEATHER-M0-MicroPython-08.png|640px}} | {{ADFImage|FEATHER-M0-MicroPython-08.png|640px}} | ||
+ | |||
+ | <h2> | ||
+ | <a href="#after-flashing" class="anchor-link"><span class="fa fa-link"></span></a><span id="after-flashing" class="anchor-link-target"></span>After flashing</h2> | ||
+ | After a successful flash by <code class="prettyprint">bossac</code> or UF2 you should see a CIRCUITPY drive appear. | ||
{{ADFImage|FEATHER-M0-MicroPython-09.png|640px}} | {{ADFImage|FEATHER-M0-MicroPython-09.png|640px}} | ||
+ | |||
{{FEATHER-M0-EXPRESS-TRAILER}} | {{FEATHER-M0-EXPRESS-TRAILER}} |
Version du 9 novembre 2017 à 22:21
En cours de traduction/élaboration. |
Crédit: AdaFruit Industries www.adafruit.com
<a href="https://github.com/adafruit/circuitpython">CircuitPython</a> is a derivative of <a href="https://micropython.org">MicroPython</a> designed to simplify experimentation and education on low-cost microcontrollers. It makes it easier than ever to get prototyping by requiring no upfront desktop software downloads. Simply <a href="https://github.com/adafruit/circuitpython/releases/latest">download</a> <a href="https://github.com/adafruit/circuitpython">CircuitPython</a> and drag it onto the drive that appears (only available on Express boards currently). Once installed, simply copy and edit files on the drive to iterate.
Downloading
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 adafruit-circuitpython-feather_m0_express-0.9.3.bin
for the Feather M0 Express or adafruit-circuitpython-metro_m0_express-0.9.3.bin
for the Metro M0 Express.
Files that end with .bin
can be flashed with esptool.py
or bossac
. Files ending in .uf2
can be flashed onto a virtual drive when in bootloader mode.
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!
Crédit: AdaFruit Industries www.adafruit.com
See below for which file to download!
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:
Crédit: AdaFruit Industries www.adafruit.com
Click to download and save the file onto your Desktop or somewhere else you can find it
Crédit: AdaFruit Industries www.adafruit.com
Then drag the uf2 file into the BOOT drive
Crédit: AdaFruit Industries www.adafruit.com
Crédit: AdaFruit Industries www.adafruit.com
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 e
rase the chip, w
rite the given file, v
erify the write and 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.
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.
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.