[env:esp32doit-devkit-v1]
platform = https://github.com/pioarduino/platformespressif32/releases/download/stable/platform-espressif32.zip
lib_compat_mode = strict
lib_ldf_mode = chain
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer.git
https://github.com/ESP32Async/AsyncTCP.git
Parsing error: ‘releases/download/stable/platform-espressif32.zip\n’
Follow link (ctrl + click)
View Problem (Alt+F8)
No quick fixes available
==================
I do not get on github much, but I do not see a releases directory.
I copied everything straight out of the book
platformio is having a problem parsing the platform line
Any help ?
I am confused.
I saw there is a zip file with the files so I unzipped it into my project directory. I compared both platformio.ini files and they look the same. I opened the new – your- project and after platformio got done unpacking everything there were no errors
Something was different, but I know not what.
Now when I tell it to build I get the following error:
Library Manager: Installing git+https://github.com/ESP32Async/ESPAsyncWebServer.git
UserSideException: Please install Git client from https://git-scm.com/downloads
Where – what directory – does it go?
So pardon the moment of stupid.
I just did a standard Windows install, took all of the defaults.
I did have to re-start vscode, and made sure I updated my network details – did a load and after a short time it loaded and the WIFI connected,
Sara, I hope you forgive my entering all of this as problems, sometimes I feel like a problem magnet.
I just hope some of this will help others.
Thanks,
Hope it all goes smooth from here out! Smile
Hi.
Is everything working as expected now? Or do you still need help?
Regards,
Sara
Did you install the pioarduino extension as mentioned in the latest edition of the eBook?
Regards,
Sara
Yes I did install the pioarduino extension. It seems to be working well.
Next problem In – 1_2_Hello_World_WS_LITTLEFS
the program appears to be working – EXcept there is nothing on the WEB page
It did connect – I did get a connection – in the address bar: Not Secure 192.168.1.242
But the page is blank
to get it I placed this in the blank address field: 192.168.1.242/
and the page blinked, the terninal display shows:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4660
load:0x40078000,len:15568
ho 0 tail 12 room 4
load:0x40080400,len:4
load:0x40080404,len:3152
entry 0x400805a0
Connecting to WiFi …….192.168.1.242
LittleFS mounted successfully
+++++++++++++++++++++++++
The data directory contains the correct files. The entire project directory was created by UN-zipping from the
zip file you provided in the book.
Question: How does the data Get into the LittleFS?
Does the initLittleFS do that?
Just an FYI about figures on pages 175 -177 all still show the project name as 1_2_Hello_World_WS_SPIFFS,
not 1_2_Hello_World_WS_LITTLEFS
Thanks
The build log from the last run:
Processing esp32doit-devkit-v1 (platform: https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip; board: esp32doit-devkit-v1; framework: arduino)
————————————————————————————————————-Verbose mode can be enabled via `-v, –verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (54.3.20) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
– framework-arduinoespressif32 @ 3.2.0
– framework-arduinoespressif32-libs @ 5.4.0+sha.2f7dcd862a
– tool-esptoolpy @ 4.8.9
– tool-mkfatfs @ 2.0.1
– tool-mklittlefs @ 3.2.0
– tool-mkspiffs @ 2.230.0 (2.30)
– tool-riscv32-esp-elf-gdb @ 14.2.0+20240403
– tool-xtensa-esp-elf-gdb @ 14.2.0+20240403
– toolchain-xtensa-esp-elf @ 14.2.0+20241119
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ strict
Found 44 compatible libraries
Scanning dependencies…
Dependency Graph
|– ESPAsyncWebServer @ 3.7.6+sha.f46930a
|– AsyncTCP @ 3.3.8+sha.cca8bec
|– LittleFS @ 3.2.0
|– WiFi @ 3.2.0
Building in release mode
Retrieving maximum program size .pio\build\esp32doit-devkit-v1\firmware.elf
Checking size .pio\build\esp32doit-devkit-v1\firmware.elf
Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
RAM: [= ] 14.3% (used 46844 bytes from 327680 bytes)
Flash: [======== ] 76.9% (used 1007754 bytes from 1310720 bytes)
Configuring upload protocol…
AVAILABLE: cmsis-dap, esp-bridge, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port…
Using manually specified: COM3
Uploading .pio\build\esp32doit-devkit-v1\firmware.bin
esptool.py v4.8.9
Serial port COM3
Connecting……………….
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 3c:e9:0e:12:77:c0
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 460800
Changed.
Configuring flash size…
Auto-detected Flash size: 8MB
Flash will be erased from 0x00001000 to 0x00006fff…
Flash will be erased from 0x00008000 to 0x00008fff…
Flash will be erased from 0x0000e000 to 0x0000ffff…
Flash will be erased from 0x00010000 to 0x00106fff…
Flash params set to 0x0230
SHA digest in image updated
Compressed 23488 bytes to 15080…
Writing at 0x00001000… (100 %)
Wrote 23488 bytes (15080 compressed) at 0x00001000 in 0.8 seconds (effective 222.5 kbit/s)…
Hash of data verified.
Compressed 3072 bytes to 146…
Writing at 0x00008000… (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.3 seconds (effective 93.1 kbit/s)…
Hash of data verified.
Compressed 8192 bytes to 47…
Writing at 0x0000e000… (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.3 seconds (effective 260.3 kbit/s)…
Hash of data verified.
Compressed 1008160 bytes to 641422…
Writing at 0x00010000… (2 %)
Writing at 0x0001cb41… (5 %)
Writing at 0x00027e5f… (7 %)
Writing at 0x000305a4… (10 %)
Writing at 0x0003fdd1… (12 %)
Writing at 0x00045dcb… (15 %)
Writing at 0x0004bd5b… (17 %)
Writing at 0x00051447… (20 %)
Writing at 0x00056859… (22 %)
Writing at 0x0005c173… (25 %)
Writing at 0x0006165c… (27 %)
Writing at 0x00066c39… (30 %)
Writing at 0x0006c282… (32 %)
Writing at 0x0007199f… (35 %)
Writing at 0x000772e8… (37 %)
Writing at 0x0007c5ca… (40 %)
Writing at 0x0008193b… (42 %)
Writing at 0x00086f94… (45 %)
Writing at 0x0008c2f0… (47 %)
Writing at 0x00091738… (50 %)
Writing at 0x00097122… (52 %)
Writing at 0x0009cc6c… (55 %)
Writing at 0x000a22a7… (57 %)
Writing at 0x000a746e… (60 %)
Writing at 0x000ac7f6… (62 %)
Writing at 0x000b1f30… (65 %)
Writing at 0x000b782d… (67 %)
Writing at 0x000bcb33… (70 %)
Writing at 0x000c20cc… (72 %)
Writing at 0x000c7e60… (75 %)
Writing at 0x000cda03… (77 %)
Writing at 0x000d3459… (80 %)
Writing at 0x000d9e59… (82 %)
Writing at 0x000e3fe9… (85 %)
Writing at 0x000e9b13… (87 %)
Writing at 0x000eec57… (90 %)
Writing at 0x000f44e0… (92 %)
Writing at 0x000f9f64… (95 %)
Writing at 0x000ff359… (97 %)
Writing at 0x0010530d… (100 %)
Wrote 1008160 bytes (641422 compressed) at 0x00010000 in 20.0 seconds (effective 404.0 kbit/s)…
Hash of data verified.
Hard resetting via RTS pin…
======================================= [SUCCESS] Took 47.71 seconds =======================================
* Terminal will be reused by tasks, press any key to close it.
Hi.
You forgot to upload the filesystem image that uploas the files in the data folder. Please read carefully ALL the instructions. Everything is there. Don’t skip any pages.
Did you follow page 183? That shows how to upload the filesystem image.
Regards,
Sara
Well that works, I thought all that would happen when I used the -> button on the bottom pane. Is there a way, code, to load that filesystem data?
Where that favicon shows up took a bit of searching, For some dumb reason I expected it to be ON the WEB page, not in the TAB with the Title.
I do not see it at all on my phone- the title is not there either – just the IP in the address bar and the actual web page
Rather than modifying the same project over for each unit, each one is a new project.
I am using the same esp32doit-devkit-v1 [env] and board in each and they all use the same include files,
does each environment have a copy or is platformio smart enough to only keep one copy?
If not, how can we save space by setting up the includes so there is only one copy when they are the same?
Note: because all of them use the same named – esp32doit-devkit-v1- it was difficult to tell when pioarduino was using the correct data directory for the image. I built and uploaded the wrong one at least two times.
Just another observation, If you connect to the server from more than one device. The WEB server only send a response to the one requesting a change. In other words, if browser A clicks the off button, browser B does not show the change even if you refresh B.
Hi.
Which web browser are you using?
Because the second browser should change after a refresh.
Regards,
Sara
Firefox on my Windows10 desktop and one NON iphone and Chrome on 2 other NON iphones Some of which are old Samsung (all Androids)
You didn’t answer my question about whether all of the projects use or can use 1 library for the includes with platform IO – one of my objectives for this course is to learn more about Platformio.
Thanks for putting up with me.
Dave
Hi.
The examples were tested using Google Chrome and Safari on iPhone, and everything worked as expected.
Make sure to clear the cache or hard refresh your web browser between each project, because sometimes it will cache the HTML and you may not get the expected result.
Each project has its environment. The libraries need to be loaded for each specific project.
Regards,
Sara