Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 1 : Ligne 1 : −
This page is currently under translation
  −
   
== Pre-requisites ==
 
== Pre-requisites ==
 
Note: [[FEATHER-CHARGER-MICROPYTHON-ESP8266|This page also exists in French]]
 
Note: [[FEATHER-CHARGER-MICROPYTHON-ESP8266|This page also exists in French]]
Ligne 87 : Ligne 85 :  
[[Fichier:OLI-ESP8266-EVB.jpg|180px]]
 
[[Fichier:OLI-ESP8266-EVB.jpg|180px]]
   −
Pour activer le FlashMode sur un {{pl|668|ESP8266-EVB}} (évaluation board d'Olimex), {{pl|667|ESP8266-DEV}} (version Olimex):
+
To activate the Flash Mode on the {{pl|668|ESP8266-EVB}} (Evaluation Board from Olimex) (using a {{pl|667|ESP8266-DEV}}):
* Il faut presser le bouton GPIO 0 (le bouton utilisateur de l'ESP8266-EVB est également branché sur le GPIO 0)
+
* Presse the USER button on the board (this button is wired to the small push-button on the ESP8266-EVB, himself wired to the GPIO 0)
* Puis mettre le module sous tension
+
* Plug the power cord on the evaluation board (5V max)
* Enfin relâcher le bouton GPIO 0.  
+
* Then release the GPIO 0 button.  
   −
A noter que l'{{pl|668|ESP8266-EVB}} et {{pl|667|ESP8266-DEV}} ne disposent pas de convertisseur USB-Série, il faut donc utiliser un {{pl|144|cable console (USB-Série-TTL)}} pour communiquer avec la carte ESP8266.
+
Please note that {{pl|668|ESP8266-EVB}} and {{pl|667|ESP8266-DEV}} do not have USB-to-Serial converter, you will have to use a {{pl|144|console cable (USB-Série-TTL)}} to communicates with the ESP8266 board.
    
[[Fichier:UEXT-SERIAL-wiring2.jpg|240px]] [[Fichier:UEXT-SERIAL-wiring.jpg|240px]]
 
[[Fichier:UEXT-SERIAL-wiring2.jpg|240px]] [[Fichier:UEXT-SERIAL-wiring.jpg|240px]]
    
== Erase the Flash ==
 
== Erase the Flash ==
Il est recommander d'effacer entièrement le contenu de la mémoire Flash d'une carte ESP8266 avant de téléverser un nouveau FirmWare. Exécutez le code suivant dans un terminal pour effectuer cette opération:
+
It is recommanded to completely erase the Flash memory of the ESP8266 board before to download the new FirmWare onto it. Execute the following code inside a terminal:
   −
  <nowiki>esptool.py --port /chemin/vers/ESP8266 erase_flash</nowiki>
+
  <nowiki>esptool.py --port /path/to/ESP8266 erase_flash</nowiki>
   −
{{fname|/chemin/vers/ESP8266}} est le chemin ou nom du port série connecté sur l'ESP8266. Le nom exacte du périhérique varie en fonction du type de convertisseur USB-vers-série. Lister vis port série avant de connecter le module ESP826 puis répétez l'opération avec le port série connecté. Le port qui vient d'apparaître est celui correspondant à votre ESP8266.
+
Where {{fname|/path/to/ESP8266}} is the path to the serial port attached on the ESP8266. The exact name of the peripheral depend of the USB-to-Serial converter used. List down the serial port before to connext you ESP module then repeat the operation with the serial port connected. The new port appearing is the one corresponding to the ESP8266.
    
{{ADFImage|FEATHER-CHARGER-MICROPYTHON-ESP8266-22.png}}
 
{{ADFImage|FEATHER-CHARGER-MICROPYTHON-ESP8266-22.png}}
Ligne 107 : Ligne 105 :  
== Flashing MicroPython on ESP8266 ==
 
== Flashing MicroPython on ESP8266 ==
 
=== ESP8266 from Adafruit Industries ===
 
=== ESP8266 from Adafruit Industries ===
Pour le {{pl|733|breakout HUZZAH ESP8266}} et le {{pl|846|Feather HUZZAH ESP8266}} + {{pl|77|FTDI Friend}}:
+
For the {{pl|733|breakout HUZZAH ESP8266}} and the {{pl|846|Feather HUZZAH ESP8266}} + {{pl|77|FTDI Friend}}:
    
[[Fichier:FEATHER-ESP8266-02.jpg|240px]] [[Fichier:ESP8266-HUZZA.png|400px]]  
 
[[Fichier:FEATHER-ESP8266-02.jpg|240px]] [[Fichier:ESP8266-HUZZA.png|400px]]  
   −
Remettez votre ESP8266 en "mode Flashage" et exécutez la commande suivante pour charger le nouveau firmware (celui que vous avez déjà téléchargé sur votre ordinateur):
+
Place our ESP8266 in "mode Flashage" and execute the following command to load the firmware (already downloaded):
    
  <nowiki>esptool.py --port /chemin/vers/ESP8266 --baud 115200 write_flash --flash_size=detect -fm dio 0 firmware.bin</nowiki>
 
  <nowiki>esptool.py --port /chemin/vers/ESP8266 --baud 115200 write_flash --flash_size=detect -fm dio 0 firmware.bin</nowiki>
   −
{{ambox|text=Depuis la version 1.3 d'EspTool, il est possible d'utiliser Python 2.7 et Python 3.5.  
+
{{ambox|text=Since EspTool V1.3, you can use either 2.7 or Python 3.5.  
 +
 
 +
From EspTool version 2.x, you can use the option --flash_size=detect to avoir error on flash size.}}
   −
Depuis la version du 2.x d'EspTool, il est possible d'utiliser l'option --flash_size=detect pour éviter les erreurs taille de flash.}}
+
Once again, {{fname|/path/to/ESP8266}} is the path (identification) of the serial port connected to the ESP8266. Remplace {{fname|firmware.bin}} with the real name (and access path) to the firmware file to upload to the ESP8266.
   −
Encore une fois, {{fname|/chemin/vers/ESP8266}} est le chemin ou nom du port série connecté sur l'ESP8266. Remplacez {{fname|firmware.bin}} avec le vrai nom (et chemin d'accès) du fichier firmware que vous voulez téléverser sur l'ESP8266.
      
{{ADFImage|FEATHER-CHARGER-MICROPYTHON-ESP8266-23.png}}
 
{{ADFImage|FEATHER-CHARGER-MICROPYTHON-ESP8266-23.png}}
    
=== ESP8266 WEMOS D1 Mini ===
 
=== ESP8266 WEMOS D1 Mini ===
Pour le {{pl|1221|Wemos D1}} dispose de 4MB de Flash comme pour la plupart des ESP8266 disponible sur le marché.  
+
The {{pl|1221|Wemos D1}} do have 4MB of Flash as many of ESP8266 available on the market.  
    
[[Fichier:Wemos-D1-Mini-ESP8266.jpg|180px]]   
 
[[Fichier:Wemos-D1-Mini-ESP8266.jpg|180px]]   
   −
Exécutez la commande suivante pour charger le nouveau firmware (celui que vous avez déjà téléchargé sur votre ordinateur):
+
Execute le following command to load the MicroPython firmware (already downloaded on the computer):
    
   <nowiki>esptool.py --port /chemin/vers/ESP8266 --baud 115200 write_flash --flash_size=detect -fm dio 0 firmware.bin</nowiki>
 
   <nowiki>esptool.py --port /chemin/vers/ESP8266 --baud 115200 write_flash --flash_size=detect -fm dio 0 firmware.bin</nowiki>
    
=== ESP8266 WEMOS D1 PRO ===
 
=== ESP8266 WEMOS D1 PRO ===
Pour le {{pl|1222|Wemos D1 '''Pro'''}} dispose de 16MB de Flash, la commande de Flash est donc différente:
+
The {{pl|1222|Wemos D1 '''Pro'''}} do have 16MB of Flash, the command to execute:
    
[[Fichier:Wemos-D1-Pro-Mini-ESP8266.jpg|180px]]
 
[[Fichier:Wemos-D1-Pro-Mini-ESP8266.jpg|180px]]
   −
Exécutez la commande suivante pour charger le nouveau firmware (celui que vous avez déjà téléchargé sur votre ordinateur):
+
Execute the following command to upload the MicroPython firmware:
    
  <nowiki>esptool.py --port /chemin/vers/ESP8266 --baud 115200 write_flash --fm dio --fs=32m 0 firmware.bin</nowiki>
 
  <nowiki>esptool.py --port /chemin/vers/ESP8266 --baud 115200 write_flash --fm dio --fs=32m 0 firmware.bin</nowiki>
   −
{{ambox|text=Bien que le module n'embarque que 16MB, il est nécessaire de mentionner une Flash Size de '''32m''' ! Flasher le module avec une Flash Size de 16m laisse celui dans un état instable après le redémarrage.}}
+
{{ambox|text=This module is fitted with 16MB but we have to stipulate a Flash Size of '''32m''' ! Flasher the module with 16m Flash Size did creates an unstable situation where the ESP8266 doesn't reboot.}}
    
=== ESP8266-EVB & ESP8266-DEV ===
 
=== ESP8266-EVB & ESP8266-DEV ===
Pour le {{pl|668|ESP8266-EVB}} evaluation board et {{pl|667|ESP8266-DEV}} carte de développement placée sur la carte ESP8266-EVB:
+
For the {{pl|668|ESP8266-EVB}} evaluation board and the {{pl|667|ESP8266-DEV}} development board like following:
    
[[Fichier:OLI-ESP8266-EVB.jpg|180px]] [[Fichier:OLI-ESP8266-DEV.jpg|110px]]
 
[[Fichier:OLI-ESP8266-EVB.jpg|180px]] [[Fichier:OLI-ESP8266-DEV.jpg|110px]]
   −
Exécutez la commande suivante pour charger le nouveau firmware (celui que vous avez déjà téléchargé sur votre ordinateur):
+
Please execute the following command to upload the MicroPython firmware (previously downloaded):
    
   <nowiki>esptool.py --port /chemin/vers/ESP8266 --baud 115200 write_flash --flash_size=detect -fm dio 0 firmware.bin</nowiki>
 
   <nowiki>esptool.py --port /chemin/vers/ESP8266 --baud 115200 write_flash --flash_size=detect -fm dio 0 firmware.bin</nowiki>
   −
Appliquer un cycle d'alimentation sur l'ESP8266-EVB pour réinitialiser la plateforme.
+
Do power cycle the plateform to properly restart the microcontroler.
    
== After Flash operation ==
 
== After Flash operation ==
Pressez le bouton RESET de votre carte une fois que l'outil à terminé le flashage du Firmware (la LED bleue clignote durant le flashage). Si vous ne possédez pas de bouton RESET, vous pouvez également déconnecter et reconnecter l'ESP8266 sur votre ordinateur.
+
Press tge RESET when available or power cycle the board.
 +
 
 +
Voila, you just have you MicroPython firmware running on your ESP!
 +
 
 +
You can now establish a [[FEATHER-CHARGER-MICROPYTHON-SERIAL-REPL|serial REPL]] with a software like [https://www.putty.org/ Putty] (Freeware, running on Linux, Windows, Mac).
 +
 
 +
When started, just write mention the path to serial device attached to the ESP8266.
 +
 
 +
 
 +
[[Fichier:FEATHER-CHARGER-MICROPYTHON-ESP8266-EN-10a.jpg]]
   −
Voila, vous venez de flasher votre ESP8266 avec la dernière version du firmware MicroPython!
     −
Vous pouvez sauter sur la section [[FEATHER-CHARGER-MICROPYTHON-SERIAL-REPL|REPL série]] de ce guide pour apprendre comment obtenir l'invite de commande de votre carte MicroPython.
+
[[Fichier:FEATHER-CHARGER-MICROPYTHON-ESP8266-EN-11.jpg]]
    
== Ressources ==
 
== Ressources ==
 
=== Error message ===
 
=== Error message ===
'''J'ai le message d'erreur "read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?" !'''
+
'''I do have the following error message "read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?" !'''
   −
Nous avons rencontré ce problème lorsque le câble console était branché sur un HUB USB externe. Essayez de brancher le câble console directement sur l'ESP8266.
+
We do meet that problem when the console cable (USB/Serial) where connected through an external USB HUB. Try to plug the console cable directly on the ESP8266.
    
=== EspTool Upgrade ===
 
=== EspTool Upgrade ===
Les firmwares récents nécessitent une version récente d'EspTool pour être flasher l'ESP8266.
+
Recent version of the MicroPython firmwares do requires a more recent version of the EspTool to be flashed on the ESP8266.
   −
Pour notre grand malheur, nous avons essayé de flasher un firmware 1.8.x avec un EspTool 1.0.1. Inutile de dire que nous n'avons plus grand chose de fonctionnel sur notre ESP8266 !
+
Since tghe release 1.8.x of MicroPython, the EspTool 1.0.1 doesn't make the job anymore.
   −
Un upgrade d'EspTool à la version la plus récente (2.0.1 en l’occurrence, voir [https://pypi.python.org/pypi/esptool ici sur pypi.python.org]) à résolu notre problème grâce à l'option --flash_size=detect
+
An upgrade to a more recent EspTool (version 2.0.1) will help to fix with --flash_size=detect .
   −
Pour forcer la mise-à-jour d'EspTool à une version donnée, il faut saisir:
+
The following command line can be used to force the upgrade to a given version of EspTool :
    
  sudo apt-get install esptool==2.0.1
 
  sudo apt-get install esptool==2.0.1
29 861

modifications

Menu de navigation