Die Unterschiede zwischen deinem Video und dem was bei mir passiert sind folgende
Details hier aufklappen
nach dem Neustart von Visual Studio-Code sehe ich diesen Fensterinhalt
Durch herumklicken habe ich dann herausgefunden dass ich auf diesen Refresh-Button klicken muss.
Dann wird für eine halbe Sekunde dein Fensterinhalt angezeigt
Nach einer halben Sekunde verschwindet das sofort wieder
Nun ja. Ich habe es geschafft schnell genug zu klicken und diese Eintragungen in
neues Projekt gemacht
Project-"Wizard" arbeitet
Fragt mich dann
ich klicke auf "yes"
Ich klicke auf src - main.cpp
code per copy - mark-all - paste einfügen
compilieren hat funktioniert
Executing task in folder my3rdESP8266-Testproject: C:\Users\dipl-\.platformio\penv\Scripts\platformio.exe run
Processing esp07s (platform: espressif8266; board: esp07s; framework: arduino)
---------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp07s.html
PLATFORM: Espressif 8266 (4.2.1) > Espressif Generic ESP8266 ESP-07S
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 @ 3.30102.0 (3.1.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- toolchain-xtensa @ 2.100300.220621 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\esp07s\src\main.cpp.o
Generating LD script .pio\build\esp07s\ld\local.eagle.app.v6.common.ld
Archiving .pio\build\esp07s\libFrameworkArduinoVariant.a
Compiling .pio\build\esp07s\FrameworkArduino\Crypto.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\Esp-frag.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\Esp-version.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\Esp.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\FS.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\FSnoop.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\FunctionalInterrupt.cpp.o
src\main.cpp: In function 'void setup()':
src\main.cpp:8:7: warning: unused variable 'result' [-Wunused-variable]
8 | int result = myFunction(2, 3);
| ^~~~~~
Compiling .pio\build\esp07s\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\LwipDhcpServer-NonOS.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\LwipDhcpServer.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\LwipIntf.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\LwipIntfCB.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\MD5Builder.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\Print.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\Schedule.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\StackThunk.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\StreamSend.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\Tone.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\TypeConversion.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\Updater.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\WString.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\abi.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\aes_unwrap.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\base64.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\cbuf.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\cont.S.o
Compiling .pio\build\esp07s\FrameworkArduino\cont_util.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_app_entry_noextra4k.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_eboot_command.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_features.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_flash_quirks.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_flash_utils.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_i2s.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_main.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_non32xfer.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_noniso.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_phy.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_postmortem.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_si2c.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_sigma_delta.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_spi_utils.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_timer.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_vm.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_waveform_phase.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_waveform_pwm.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_wiring.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_wiring_analog.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_wiring_digital.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_wiring_pulse.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_wiring_pwm.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\core_esp8266_wiring_shift.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\crc32.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\debug.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\exc-c-wrapper-handler.S.o
Compiling .pio\build\esp07s\FrameworkArduino\exc-sethandler.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\flash_hal.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\gdb_hooks.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\heap.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\hwdt_app_entry.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\libb64\cdecode.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\libb64\cencode.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\libc_replacements.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\mmu_iram.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\reboot_uart_dwnld.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\spiffs\spiffs_cache.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\spiffs\spiffs_check.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\spiffs\spiffs_gc.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\spiffs\spiffs_hydrogen.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\spiffs\spiffs_nucleus.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\spiffs_api.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\sqrt32.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\stdlib_noniso.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\time.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\uart.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\umm_malloc\umm_info.c.o
Compiling .pio\build\esp07s\FrameworkArduino\umm_malloc\umm_integrity.c.o
Compiling .pio\build\esp07s\FrameworkArduino\umm_malloc\umm_local.c.o
Compiling .pio\build\esp07s\FrameworkArduino\umm_malloc\umm_malloc.cpp.o
Compiling .pio\build\esp07s\FrameworkArduino\umm_malloc\umm_poison.c.o
Compiling .pio\build\esp07s\FrameworkArduino\wpa2_eap_patch.cpp.o
Archiving .pio\build\esp07s\libFrameworkArduino.a
Linking .pio\build\esp07s\firmware.elf
Retrieving maximum program size .pio\build\esp07s\firmware.elf
Checking size .pio\build\esp07s\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [=== ] 34.2% (used 28008 bytes from 81920 bytes)
Flash: [== ] 24.9% (used 260411 bytes from 1044464 bytes)
Building .pio\build\esp07s\firmware.bin
Creating BIN file ".pio\build\esp07s\firmware.bin" using "C:\Users\dipl-\.platformio\packages\framework-arduinoespressif8266\bootloaders\eboot\eboot.elf" and ".pio\build\esp07s\firmware.elf"
=========================================== [SUCCESS] Took 20.05 seconds ===========================================
* Terminal will be reused by tasks, press any key to close it.
Ich klicke Upload. Hier das Log dazu
Executing task in folder my3rdESP8266-Testproject: C:\Users\dipl-\.platformio\penv\Scripts\platformio.exe run --target upload
Processing esp07s (platform: espressif8266; board: esp07s; framework: arduino)
---------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp07s.html
PLATFORM: Espressif 8266 (4.2.1) > Espressif Generic ESP8266 ESP-07S
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 @ 3.30102.0 (3.1.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 1.200.0 (2.0)
- toolchain-xtensa @ 2.100300.220621 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Retrieving maximum program size .pio\build\esp07s\firmware.elf
Checking size .pio\build\esp07s\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [=== ] 34.2% (used 28008 bytes from 81920 bytes)
Flash: [== ] 24.9% (used 260411 bytes from 1044464 bytes)
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM7
Uploading .pio\build\esp07s\firmware.bin
esptool.py v3.0
Serial port COM7
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:0b:9b:26
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 264560 bytes to 195063...
Writing at 0x00000000... (8 %)
Writing at 0x00004000... (16 %)
Writing at 0x00008000... (25 %)
Writing at 0x0000c000... (33 %)
Writing at 0x00010000... (41 %)
Writing at 0x00014000... (50 %)
Writing at 0x00018000... (58 %)
Writing at 0x0001c000... (66 %)
Writing at 0x00020000... (75 %)
Writing at 0x00024000... (83 %)
Writing at 0x00028000... (91 %)
Writing at 0x0002c000... (100 %)
Wrote 264560 bytes (195063 compressed) at 0x00000000 in 17.2 seconds (effective 123.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
=========================================== [SUCCESS] Took 21.35 seconds ===========================================
* Terminal will be reused by tasks, press any key to close it.
tja und LED des ESP8266 blinkt NICHT !
Wenn ich am ESP8266 den Resettaster drücke dann zeigt der serielle Monitor
16:51:38.955 ->
16:51:38.955 -> ets Jan 8 2013,rst cause:2, boot mode:(3,6)
16:51:38.955 ->
16:51:38.955 -> load 0x4010f000, len 3424, room 16
16:51:38.955 -> tail 0
16:51:38.955 -> chksum 0x2e
16:51:38.955 -> load 0x3fff20b8, len 40, room 8
16:51:38.955 -> tail 0
16:51:38.955 -> chksum 0x2b
16:51:38.955 -> csum 0x2b
16:51:38.955 -> v00040970
16:51:38.955 -> ~ld
16:51:39.049 -> rf cal sector: 1020
16:51:39.049 -> freq trace enable 0
16:51:39.049 -> rf[112] : 0
Also irgendwas an der Betonung beim Aussprechen des "Zauberspruchs" passt noch nicht.
Dann habe ich im Code an den Serial.prints ein bisschen was geändert. main.cpp neu gespeichert und dann Upload geklickt
Es findet keine Neucompilierung statt.
Log
erminal will be reused by tasks, press any key to close it.
* Executing task in folder my3rdESP8266-Testproject: C:\Users\dipl-\.platformio\penv\Scripts\platformio.exe run --target upload
Processing esp07s (platform: espressif8266; board: esp07s; framework: arduino)
---------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp07s.html
PLATFORM: Espressif 8266 (4.2.1) > Espressif Generic ESP8266 ESP-07S
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 @ 3.30102.0 (3.1.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 1.200.0 (2.0)
- toolchain-xtensa @ 2.100300.220621 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Retrieving maximum program size .pio\build\esp07s\firmware.elf
Checking size .pio\build\esp07s\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [=== ] 34.2% (used 28008 bytes from 81920 bytes)
Flash: [== ] 24.9% (used 260411 bytes from 1044464 bytes)
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM7
Uploading .pio\build\esp07s\firmware.bin
esptool.py v3.0
Serial port COM7
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:0b:9b:26
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 264560 bytes to 195063...
Writing at 0x00000000... (8 %)
Writing at 0x00004000... (16 %)
Writing at 0x00008000... (25 %)
Writing at 0x0000c000... (33 %)
Writing at 0x00010000... (41 %)
Writing at 0x00014000... (50 %)
Writing at 0x00018000... (58 %)
Writing at 0x0001c000... (66 %)
Writing at 0x00020000... (75 %)
Writing at 0x00024000... (83 %)
Writing at 0x00028000... (91 %)
Writing at 0x0002c000... (100 %)
Wrote 264560 bytes (195063 compressed) at 0x00000000 in 17.2 seconds (effective 123.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
=========================================== [SUCCESS] Took 21.35 seconds ===========================================
* Terminal will be reused by tasks, press any key to close it.
So und "aktiv lernen" wie Tommy das ausdrückt besteht jetzt da drin, das man einfach von vorne bis hinten die ganze Doku liest (man will ja sowieso alle Details wissen ) um dann in der Lage zu sein ein erstes MIniprogramm ein weiteres mal zu flashen?
Also bitte !
Das "Getting started" ist wohl so gemeint: Den allerersten Anfang zeigen wir dir noch
Aber dann musste den Rest durch Doku lesen herausfinden.
sigh!