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 134 : |
Ligne 132 : |
| | | |
| === 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 |