Modifications

Sauter à la navigation Sauter à la recherche
Ligne 190 : Ligne 190 :     
== Accéder à la Flash SPI ==
 
== Accéder à la Flash SPI ==
Arduino doesn't have the ability to show up as a 'mass storage' disk drive. So instead we must use CircuitPython to do that part for us. Here's the full technique:
+
Arduino n'est malheureusement pas capable d'exposer un périphérique de stockage (dit "''mass storage''" en anglais). Par conséquent, il faut utiliser CircuitPython qui, lui, est capable de faire cela pour nous. Voici la technique à utiliser.Here's the full technique:
 
+
* Démarrer le bootloader de votre carte Express. Faites un glisser/déposer de la dernière version du fichier uf2 '''circuitpython'''.
 
+
* Après un moment, vous devriez voir apparaître le lecteur '''CIRCUITPY''' contenant un fichier '''boot_out.txt'''. Voilà, le système de fichier est initialisé sur la Flash SPI.
* Start the bootloader on the Express board. Drag over the latest '''circuitpython''' uf2 file
+
* Ouvrez maintenant Arduino IDE et téléversez l'exemple '''fatfs_circuitpython''' disponible dans la bibliothèque SPI d'Adafruit. Ouvrez la console série pour démarrer le croquis. Voilà, le système de fichier CircuitPython sera correctement monté et le fichier '''data.txt''' créé et initialisé.
* After a moment, you should see a '''CIRCUITPY''' drive appear on your hard drive with '''boot_out.txt''' on it
  −
* Now go to Arduino and upload the '''fatfs_circuitpython''' example sketch from the Adafruit SPI library. Open the serial console. It will successfully mount the filesystem and write a new line to '''data.txt'''
  −
 
      
{{ADFImage|FEATHER-M0-ArduinoIDE-SPI-Flash-02.png}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-SPI-Flash-02.png}}
   −
 
+
* Revenons sur notre ordinateur, redémarrez le bootloader de la carte Express --ET-- re-glissez/re-déposez '''circuitpython.uf2''' sur le lecteur '''BOOT''' rendu accessible par le bootloader. Voilà, CircuitPython est résintallé sur la carte Express.
* Back on your computer, re-start the Express board bootloader, and re-drag '''circuitpython.uf2''' onto the '''BOOT''' drive to reinstall circuitpython
+
* Au bout d'un moment, le lecteur '''CIRCUITPY''' redevient accessible. Celui-ci expose a nouveau le système de fichier MicroPython de la Flash SPI. Vous pouvez maintenant voir le fichier '''data.txt''', l'ouvrir et en consulté le contenu!
* Check the '''CIRCUITPY''' drive, you should now see '''data.txt '''which you can open to read!
      
{{ADFImage|FEATHER-M0-ArduinoIDE-SPI-Flash-03.png}}
 
{{ADFImage|FEATHER-M0-ArduinoIDE-SPI-Flash-03.png}}
   −
Once you have your Arduino sketch working well, for datalogging, you can simplify this procedure by dragging '''CURRENT.UF2''' off of the '''BOOT''' drive to make a backup of the current program before loading circuitpython on. Then once you've accessed the file you want, re-drag '''CURRENT.UF2''' back onto the '''BOOT''' drive to re-install the Arduino sketch!
+
Une fois que votre croquis de datalogging Arduino fonctionne comme attendu, vous pouvez simplifier la procédure en copiant '''CURRENT.UF2''' depuis le lecteur '''BOOT''' pour faire une copie de sauvegarde de votre programme Arduino. Vous pourrez ensuite charger CircuitPython pour accéder au système de fichier de la Flash SPI et enfin recopier votre '''CURRENT.UF2''' sur le lecteur '''BOOT''' de la carte Express pour réactiver votre croquis Arduino!
 
      
{{FEATHER-M0-EXPRESS-TRAILER}}
 
{{FEATHER-M0-EXPRESS-TRAILER}}
29 917

modifications

Menu de navigation