Modifications

Sauter à la navigation Sauter à la recherche
4 083 octets ajoutés ,  9 novembre 2017 à 22:21
aucun résumé de modification
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}}
29 917

modifications

Menu de navigation