MicroPython und das Flashen auf ein ESP (32 bzw. 8266) via uPyCraft

say_hello

say_hello

Dauergast
189
hallo und guten Tag - hallo liebe Android-Experten,


heute habe ich einen Frage die MicroPython und das Flashen auf ein ESP (32 bzw. 8266)
Die Meldungen zu einem Fehler - die kommen ganz beständig.

Code:
 open serial error, please try again. hope to connect internet and try again.

bzw:

Code:
 open serial error, please try again.
hope to connect internet and try again.
current version only open py txt json ini file.
hope to connect internet and try again.
hope to connect internet and try again.

ich gehe nach diesen Dokumenten vor: How to use MicroPython on an ESP8266 with uPyCraft | ESP8266

Habe also folgendes gemacht:

Ich lade mir die zip-Datei mit der App und allen Treibern herunter und öffne sie.
Danach geht es weiter: ich entpacke danach anschließend den Ordner Micropython-Tutorial-for-esp32-master aus der entsprechenden zip-Datei auf dem Rechner. Danach öffne - sozusagen als weiteren Schritt - den Ordner und gehe in das Verzeichnis Desktop > esp32 > res > Software und starte uPyCraft.exe

Danach geht es weiter: ich schließe das ESP32-Board an den Computer an und installiere den Treiber aus der zip-Datei Desktop - ergo esp32 > res > Software > CP210x_Universal_Windows_Driver.zip indem ich zu erst die zipDatei entpackst und anschließend das Setup CP210xVCPInstaller_x64 ausführst. Wie es weitergeht: Dann starte ich die IDE also uPyCraft - Manche Tutorials sagen hier dass ich gebeten werde etwa eine Schriftart zu installieren. Das war bei mir nicht der Fall.

In der grafischen Benutzeroberfläche klicke ich jetzt in der Menüleiste auf Tools -> Serial und wähle einen COM-Port aus - den nämlich an dem das USB-Kabel hängt. Das Dialogfenster update Firmware öffnet sich. Ich gebe alle Daten ein - also

- Board-Typ.
- etc. etx.

Dann sollte eigentlich das Flashen der Firmware beginnen - aber das tut es nicht - sondern es kommt folgender Fehler.

Code:
 open serial error, please try again.
hope to connect internet and try again.
current version only open py txt json ini file.
hope to connect internet and try again.
hope to connect internet and try again.



Optionen, die mir im Moment noch einfallen-;

1. ich kann ggf. die Firmware wie auf der MicroPython-Downloadseite beschrieben mit esptool flashen. MicroPython - Python for microcontrollers

2. ich sollte nochmals die Ports checken - ggf. stimmt was mit den Ports nicht.

Habt ihr eine Idee?
 
Zuletzt bearbeitet:
running_the_first_script_.jpg
running_the_first_script_.jpg
update: nun hat es geklappt: will das mit euch Teilen:

hatte insges. drei Optionen zur Wahl:

1. esp_tool via github
espressif/esptool

2. Learn to use MicroPython on a NodeMCU ESP8266 through uPyCraft with an LED sample code.
How to use MicroPython on an ESP8266 with uPyCraft | ESP8266

3. und mit dem untenstehenden Tool - dem ESP8266-Flasher hatte ich Erfolg: :: ESP-IDF ESP-Flashtool - dietrich-kindermann.de
Damit wurde der Speicher geflasht - und zwar unter einsatz dieses zuvor downgeloadeteten Files.

C:\Users\Kasper\Downloads\esp32spiram-20190913-v1.11-312-g22099ab88.bin


Code:
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Erasing flash (this may take a while)...
Chip erase completed successfully in 13.2s
Flash params set to 0x0040
Compressed 1281760 bytes to 785761...
Wrote 1281760 bytes (785761 compressed) at 0x00000000 in 70.7 seconds (effective 145.1 kbit/s)...
Hash of data verified.
Leaving...
Done.

ps - in dem Flash liegt aber ein Fehler meinerseits vor denn ich habe die "falsche" Datei angeboten.

ps werde morgen es mit einer anderen Firmware versuchen. die obige wurde wenigstens schonmal "genommen"

C:\Users\Kasper\Downloads\esp32spiram-20190913-v1.11-312-g22099ab88.bin

alle Optionen hier besprochen: unable to flash micropython to esp 32: open serial error - MicroPython Forum

hier nochmals der Link zu dem ESP-Flasher ESP-Flashtool - dietrich-kindermann.de


weiterer Update: habe noch weiter gemacht

gute und wichtige tutorials
Flash/Upload MicroPython Firmware to ESP32 and ESP8266 | Random Nerd Tutorials
Getting Started with MicroPython on ESP32 and ESP8266 | Random Nerd Tutorials

let’s take a closer look at each section of uPyCraft IDE:

Folder and files
Editor
MicroPython Shell/Terminal
Tools

1. Folder and files
This section shows several folders and files. The device folder shows the files that are currently stored on your ESP board. If you have your ESP32 or ESP8266 connected via serial to uPyCraft IDE, when you expand the device folder, all files stored should load. By default, you should only have a boot.py file. To run your main code, it is recommended to create a main.py file.

boot.py: runs when the device starts and sets up several configuration options;
main.py: this is the main script that contains your code. It is executed immediately after the boot.py.

Das klappt also - wie man an dem Bild sieht ...

Euch allen nochmals vielen Dank.

vg Say
 

Ähnliche Themen

say_hello
Antworten
0
Aufrufe
177
say_hello
say_hello
vonharold
Antworten
7
Aufrufe
372
maik005
maik005
Zurück
Oben Unten