https://github.com/kevin-doolaeghe/initiation-esp32
Chargement d'une carte ESP32
https://github.com/kevin-doolaeghe/initiation-esp32
documentation esp32 learning-by-doing
Last synced: 8 months ago
JSON representation
Chargement d'une carte ESP32
- Host: GitHub
- URL: https://github.com/kevin-doolaeghe/initiation-esp32
- Owner: kevin-doolaeghe
- Created: 2021-07-09T10:59:47.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T22:10:23.000Z (over 4 years ago)
- Last Synced: 2025-07-19T00:40:46.665Z (11 months ago)
- Topics: documentation, esp32, learning-by-doing
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chargement d'une carte ESP32
## Auteur
### Kevin Doolaeghe
## Connexion de la carte ESP32
* Installation de l'utilitaire `esptool` :
```
sudo apt update && sudo apt install wget python3 python3-pip
pip3 install esptool
```
* Attribution des droits d'utilisation des ports USB à l'utilisateur :
```
sudo usermod -aG dialout,tty {USER}
```
* Vérifier que le périphérique est correctement reconnu par le système :
```
ls -l /dev/ttyUSB*
```
* Installation du moniteur série `minicom` :
```
sudo apt install minicom
```
* Connexion au périphérique `ttyUSB0` avec l'utilitaire `minicom` :
```
minicom -D /dev/ttyUSB0
```
* Réinitialisation de la mémoire FLASH :
```
esptool.py --chip esp32 --port /dev/ttyUSB0 erase_flash
```
* Chargement du firmware :
```
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 [firmware].bin
```
## Installation du firmware Tasmota pour ESP32-CAM sous Linux
1. Installer l'utilitaire `esptool`
2. Télécharger les fichiers requis pour flasher le firmware :
```
wget https://github.com/arendst/Tasmota-firmware/tree/main/static/webcam/boot_app0.bin
wget https://github.com/arendst/Tasmota-firmware/tree/main/static/webcam/bootloader_dout_40m.bin
wget https://github.com/arendst/Tasmota-firmware/tree/main/static/webcam/bootloader_qio_80m.bin
wget https://github.com/arendst/Tasmota-firmware/tree/main/static/webcam/partitions.bin
```
3. [Télécharger](http://ota.tasmota.com/tasmota32/release/) le firmware `tasmota32-webcam.bin`
```
wget http://ota.tasmota.com/tasmota32/release/tasmota32-webcam.bin
```
4. Flasher l'ESP32 :
```
esptool.py --chip esp32 --port COM5 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dout --flash_freq 40m --flash_size detect 0x1000 bootloader_dout_40m.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 tasmota32.bin
```
## Installation du firmware Tasmota pour ESP32-CAM sous Windows
1. [Télécharger](https://github.com/Jason2866/ESP_Flasher/releases) l'exécutable `ESP-Flasher`
2. [Télécharger](https://tasmota.github.io/docs/ESP32/) le firmware Tasmota
3. [Télécharger](http://www.wch-ic.com/downloads/CH341SER_ZIP.html) le driver pour le composant CH340 du module USB
4. Connecter le module ESP32-CAM au PC par l'intermédiaire du module USB
5. Installer le driver du module USB
6. Démarrer l'exécutable `ESP-Flasher` et sélectionner le port série adéquat ainsi que le firmware téléchargé précédemment
7. Flasher l'ESP32
## Sources
- [Dépôt Git de l'utilitaire `esptool`](https://github.com/espressif/esptool)
- [Driver CH340 de la carte ESP32-CAM-MB](https://github.com/juliagoda/CH341SER)
- [Installation du driver pour le composant CH340 du module USB](https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all)
- [Chargement d'une carte ESP32-CAM sous Tasmota](https://easydomoticz.com/forum/viewtopic.php?f=24&p=94316)
- [Utilisation du module EPS32-CAM avec Arduino® - Le Blog Gotronic](https://www.gotronic.fr/blog/guides/utilisation-du-module-eps32-cam-avec-arduino/)
- [Installation du firware Tasmota sur ESP32](https://tasmota.github.io/docs/ESP32/)
- [Programmation d'une carte ESP32-CAM via une carte Arduino Uno](https://www.youtube.com/watch?v=q-KIpFIbRMk)
- [Erreur `rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))`](https://github.com/espressif/arduino-esp32/issues/577)