[gelöst] ESP8266 NodeMCU von AZ Delivery Fehler beim Hochladen

Hallo Zusammen,
ich habe schone einige Arduinos am laufen und wollte jetzt für mein Photovoltaik-Projekt den ESP8266 nutzen. Also habe ich mir 5 NodeMCU Lua Amica V2 ESP8266 ESP12F Modul CP2102 von AZ Delivery gekauft. Da ich das Programm in der Arduino IDE erstellen will hab ich den Boardverwalter
"https://arduino.esp8266.com/stable/package_esp8266com_index.json"
verlinkt, dann das Board NodeMCU 1.0 (ESP-12E Module) ausgewählt und wollte zum testen den
Blink-Sketch aus den Beispielen hochladen.
Der Sketch:

/*
  ESP8266 Blink by Simon Peter
  Blink the blue LED on the ESP-01 module
  This example code is in the public domain

  The blue LED on the ESP-01 module is connected to GPIO1
  (which is also the TXD pin; so we cannot use Serial.print() at the same time)

  Note that this sketch uses LED_BUILTIN to find the pin with the internal LED
*/

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);     // Initialize the LED_BUILTIN pin as an output
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, LOW);   // Turn the LED on (Note that LOW is the voltage level
  // but actually the LED is on; this is because
  // it is active low on the ESP-01)
  delay(1000);                      // Wait for a second
  digitalWrite(LED_BUILTIN, HIGH);  // Turn the LED off by making the voltage HIGH
  delay(2000);                      // Wait for two seconds (to demonstrate the active low LED)
}

Dabei hagelt es Fehlermeldungen:

Arduino: 1.8.19 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:

ICACHE : 32768 - flash instruction cache

IROM : 231724 - code in flash (default or ICACHE_FLASH_ATTR)

IRAM : 26793 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)

DATA : 1496 ) - initialized variables (global, static) in RAM/HEAP

RODATA : 876 ) / 81920 - constants (global, static) in RAM/HEAP

BSS : 25608 ) - zeroed variables (global, static) in RAM/HEAP

Der Sketch verwendet 260889 Bytes (24%) des Programmspeicherplatzes. Das Maximum sind 1044464 Bytes.

Globale Variablen verwenden 27980 Bytes (34%) des dynamischen Speichers, 53940 Bytes für lokale Variablen verbleiben. Das Maximum sind 81920 Bytes.

esptool.py v3.0

Serial port COM6

Connecting....

Traceback (most recent call last):

File "C:\Users\Rainer Walter\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/upload.py", line 66, in

esptool.main(cmdline)

File "C:/Users/Rainer Walter/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 3565, in main

print("Chip is %s" % (esp.get_chip_description()))

File "C:/Users/Rainer Walter/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 1134, in get_chip_description

efuses = self.get_efuses()

File "C:/Users/Rainer Walter/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 1127, in get_efuses

result = self.read_reg(0x3ff0005c) << 96

File "C:/Users/Rainer Walter/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 562, in read_reg

val, data = self.command(self.ESP_READ_REG, struct.pack('<I', addr))

File "C:/Users/Rainer Walter/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 386, in command

p = self.read()

File "C:/Users/Rainer Walter/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 331, in read

return next(self._slip_reader)

File "C:/Users/Rainer Walter/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 2648, in slip_reader

raise FatalError('Invalid head of packet (0x%s)' % hexify(b))

esptool.FatalError: Invalid head of packet (0x0A)

esptool.FatalError: Invalid head of packet (0x0A)

Könnt Ihr mir da helfen?

Grüße
Rainer

Ich habe einen ESP32, aber keinen ESP8266, also auch keine Erfahrung damit. Dennoch fällt mir was auf.

Du beschreibst nicht, den Treiber installiert zu haben. Müßte im Geräte-Manager so aussehen:

grafik

Eventuell gibt es eine passendere Auswahl.

Hallo agmue,
der Treiber wird im Gerätemanager angezeigt wie von Dir beschrieben.

AZ Delivery hat diese Boardeinstellung vorgeschlagen....
Ich finde auf die Schnelle keine die "ESP12F" enthält.

Danke für die schnelle Antwort....

Den brauchst du "NodeMCU 0,9 (ESP-12 Module)"

Ich vermute, deine Arduino-Installation oder der ESP-core ist defekt.
Beides neu installieren.
Deine Board-Einstellungen sollten funktionieren.
Da ist es erst mal wichtig, dass es ein ESP8266 ist, der Rest bestimmt die Pinanordnung.

Danke für Eure Hilfe,
es funktioniert jetzt.
Ich hatte im Boardverwalter die ESP8266 Community Version 3.0.2 installiert.
Die habe ich jetzt entfernt und die 2.7.4 installiert und den dazugehörigen Beispielsketch hochgeladen.
Als Board habe ich noch immer "NodeMCU 1.0 (ESP -12E Module)" eingestellt.

Die LED blinkt wie sie soll, bisher scheint alles gut zu sein.
Ich werde den Thread als "gelöst" kennzeichnen!

Grüße
Rainer

Dann war wie in Post #5 geschrieben, etwas in der Installation defekt.
Die core Version 3.0.2 läuft bei mir problemlos.

Und für gelöst gibt es hier extra einen Haken, den du setzen darfst.

Hallo HotSystems,
danke für den Hinweis auf den "Haken":
Ich deeinstalliere die Ver. 2.7.4 nochmal und lade die 3.0.2, mal sehen was passiert....

Nachrag:
Es passiert was Du beschreibst!
War wohl etwas bei der Installation faul, jetzt geht es ohne Probleme....

Danke und Grüße
Rainer

Na prima.
Danke für die Rückmeldung.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.