sidoh / esp8266_milight_hub

Replacement for a Milight/LimitlessLED hub hosted on an ESP8266
MIT License
931 stars 219 forks source link

Project installs successfully but nothing is started #784

Open JBHorne2 opened 1 year ago

JBHorne2 commented 1 year ago

I'm trying to program a new ESP8266 NodeMCU ESP-12E board for this project. I'm using VS Code with PlatformIO. I'm able to successfully run the example "blink" program. I am able to install this project successfully, however the board does not present any wifi or console output after reset.

Here's the logs from "upload and monitor", and you can see the console output at the end:

  • The terminal process "C:\Users\UserName.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--target', 'monitor', '--environment', 'nodemcuv2'" terminated with exit code: 1.

  • Terminal will be reused by tasks, press any key to close it.

  • Executing task in folder esp8266_milight_hub: C:\Users\UserName.platformio\penv\Scripts\platformio.exe run --target upload --target monitor --environment nodemcuv2

Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html PLATFORM: Espressif 8266 (4.0.1) > NodeMCU 1.0 (ESP-12E Module) HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

  • framework-arduinoespressif8266 @ 3.30002.0 (3.0.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.210717 (10.3.0) LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 35 compatible libraries Scanning dependencies... No dependencies Building in release mode Retrieving maximum program size .pio\build\nodemcuv2\firmware.elf Checking size .pio\build\nodemcuv2\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [=== ] 34.0% (used 27892 bytes from 81920 bytes) Flash: [== ] 24.9% (used 260093 bytes from 1044464 bytes) Configuring upload protocol... AVAILABLE: espota, esptool CURRENT: upload_protocol = esptool Looking for upload port... Auto-detected: COM4 Uploading .pio\build\nodemcuv2\firmware.bin esptool.py v3.0 Serial port COM4 Connecting.... Chip is ESP8266EX Features: WiFi Crystal is 26MHz MAC: c8:c9:a3:5c:94:bb Uploading stub... Running stub... Stub running... Configuring flash size... Compressed 264240 bytes to 194515... 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 264240 bytes (194515 compressed) at 0x00000000 in 17.2 seconds (effective 123.0 kbit/s)... Hash of data verified.

Leaving... Hard resetting via RTS pin... ====================================================================================================================== [SUCCESS] Took 20.49 seconds ======================================================================================================================--- Terminal on COM4 | 74880 8-N-1 --- Available filters and text transformations: colorize, debug, default, direct, esp8266_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time --- More details at https://bit.ly/pio-monitor-filters --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3460, room 16 tail 4 chksum 0xcc load 0x3fff20b8, len 40, room 4 tail 4 chksum 0xc9 csum 0xc9 v00040830 ~ld

Here's a link to the board I purchased if that matters: https://smile.amazon.com/gp/product/B010N1SPRK/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

Any ideas? I'm really stuck here!

Linkenelis commented 1 year ago

Terminal on COM4 | 74880 8-N-1

Bautrate 74880 is a strange number setup states: Serial.begin(9600);

try typing CTRL T and then b and then 9600 and enter (menu bautrate 9600)

Or check platformio.ini

Maybe change or add: monitor_speed = 9600 just after upload speed =xxxx