User Tools

Site Tools


informatica:arduino:esp32

This is an old revision of the document!


ESP32

https://randomnerdtutorials.com/install-esp32-filesystem-uploader-arduino-ide/

/usr/share/arduino/tools

wget https://github.com/me-no-dev/arduino-esp32fs-plugin/releases/download/1.0/ESP32FS-1.0.zip

Abrimos arduino IDE y ya nos aparece tools > ESP32 sketch data upload

#include "WiFi.h"
 
const char* ssid = "yourNetworkName";
const char* password =  "yourNetworkPass";
 
void setup() {
 
  Serial.begin(115200);
 
  WiFi.begin(ssid, password);
 
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.println("Connecting to WiFi..");
  }
 
  Serial.println("Connected to the WiFi network");
 
}
 
void loop() {}

Python

apt-get install esptool

Descargamos el firmware:

https://micropython.org/download/esp32/

Descargo este:

 GENERIC : esp32-idf3-20210202-v1.14.bin 

Para borrar la memoria. Si no sabemos el puerto, no lo ponemos y lo detecta, es /dev/ttyUSB0:

esptool erase_flash

<code> esptool.py v2.8 Found 1 serial ports Serial port /dev/ttyUSB0 Connecting…….._ Detecting chip type… ESP32 Chip is ESP32D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: f0:08:d1:d3:1e:98 Enabling default SPI flash mode… Erasing flash (this may take a while)…

A fatal error occurred: ESP32 ROM does not support function erase_flash. <code>

informatica/arduino/esp32.1612728995.txt.gz · Last modified: 2021/02/07 20:16 by jose