Run the program and get
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:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
Connecting to WiFi …..192.168.0.18
SPIFFS mounted successfully
and then
This 192.168.0.18 page can’t be found
No webpage was found for the web address: http://192.168.0.18/
HTTP ERROR 404
IP Address MAC Address Device Name First Detected On Last Detected On Detection Count Active
192.168.0.1 6C-55-E8-81-96-53 12/28/2023 9:19:06 PM 1/7/2024 9:01:23 PM 9 Yes
192.168.0.18 D8-BC-38-E4-F2-58 1/6/2024 4:25:17 PM 1/7/2024 9:01:25 PM 3 Yes
The board is connected but no browser display
Tried with uploadin filesystem image I also went to platform = espressif32@3.5.0
Executing task in folder 1_2_revperzipped: C:\Users\galtg\.platformio\penv\Scripts\platformio.exe run
Processing esp32doit-devkit-v1 (platform: espressif32; 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 (6.5.0) > 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.20014.231204 (2.0.14)
– tool-esptoolpy @ 1.40501.0 (4.5.1)
– toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 35 compatible libraries
Scanning dependencies…
Dependency Graph
|– ESP Async WebServer @ 1.2.3
|– SPIFFS @ 2.0.0
|– AsyncTCP @ 1.1.1
|– WiFi @ 2.0.0
Building in release mode
Linking .pio\build\esp32doit-devkit-v1\firmware.elf
c:/users/galtg/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32doit-devkit-v1\libe20\libESP Async WebServer.a(WebAuthentication.cpp.o):(.literal._ZL6getMD5PhtPc+0x4): undefined reference to `mbedtls_md5_starts’
c:/users/galtg/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32doit-devkit-v1\libe20\libESP Async WebServer.a(WebAuthentication.cpp.o): in function `getMD5(unsigned char*, unsigned short, char*)’:
C:\Users\galtg\OneDrive\Documents\PlatformIO\Projects\1_2_revperzipped/.pio/libdeps/esp32doit-devkit-v1/ESP Async WebServer/src/WebAuthentication.cpp:73: undefined reference to `mbedtls_md5_starts’
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32doit-devkit-v1\firmware.elf] Error 1
========================================================== [FAILED] Took 7.08 seconds ==========================================================
* The terminal process “C:\Users\galtg\.platformio\penv\Scripts\platformio.exe ‘run'” terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Tried the git thing that was really a mess in my windows…
Completely lost. Unless you can point me to some other issue, I will try the next project.
I tried the small example with just text.txt file in data and after some attempts it worked. Have the feeling that ESP32 are a little quirky.
I’ve noticed that the platform.io did not have these 2 lines…
monitor_speed = 115200
lib_deps = ESP Async WebServer
I wonder if it may have anything to do… well I know it will not be using the webserver part, but the baud rate…
went to the next project 2-1(switch on/off on GPIO2) and it took me forever to uplad it, tried many combinations , reset, boot, cap, no cap on Enable pin, @3.5.0. Really frustrating. Finally got it on. Really slow
Hi.
>> Webpage Not Found
Usually, when you get this:
This 192.168.0.18 page can’t be found
No webpage was found for the web address: http://192.168.0.18/
It’s probably because the filesystem image was not uploaded. This means the files to build the webpage are not on the ESP32, so it doesn’t have anything to display.
>> Arduino IDE 2
You mentioned you were using Arduino 2.0. In a previous discussion, I thought you were following the “Learn ESP32 with Arduino IDE” eBook, which doesn’t use much the filesystem. So, it’s not a problem.
However with the “Build Web Servers” eBook, we use the filesystem in all projects.
Unfortunately, in Arduino 2.0 there isn’t currently a way to upload files to the filesystem like in the old Arduino IDE or in VS Code (at least, as far as I know).
So, if you’re following the Build Web Server eBook, I recommend using Arduino 1.8.x or VS Code.
>> Are you using VS Code?
From the error you pasted, it seems something from VS Code? Are you using VS Code?
How does your platformio.ini file looks like?
>> Errors you’re getting when uploading
Can you be more specific about the errors you’re getting when trying to upload to the ESP32? Which board model are you using?
Regards,
Sara
> Are you using VS Code?
From the error you pasted, it seems something from VS Code? Are you using VS Code?
How does your platformio.ini file looks like?
yes. I am using VS Code. Sometimes the Serial Monitor does not show activity, but using other SM like the one in Arduino IDE does. I am confused why.
[env:esp32doit-devkit-v1]
platform = espressif32@3.5.0
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
lib_deps = ESP Async WebServer
>> Errors you’re getting when uploading
Can you be more specific about the errors you’re getting when trying to upload to the ESP32? Which board model are you using?
ESP-WROOM-32 without the D at the end.
Errors… I shared some of them.
As I mentioned, I finally got the board to work with the project 2_1. I may try a new ESP32D for the next one. Here we go blink…(I always try it with a new board)
I tried the alternate ESP Async, but it had updated 20 different things that left me scared to use it.
I tried 2_1 on a new board and it was OK, as long as I had concordance between the baud rate in main and platform, that I remembered to disconnect other SM, and that I left the cap in EN. Let’s go for the next.
what I am amazed with is that we need to work on 3 different languages, each one of them a world in itself, build an awkward file system, upload it, compile and then load it, to get such a meager result as turning on and off, with delay, a simple switch. I know the process will be similar for reading sensors, turning on relays, but it should be more human friendly. Besides the plethora of esp32 ( Wroom, 32 or 32D, S1, MiniS2, legal or hacked, Espressif or not), does not make it any easier.
I am more of a block guy. This block will read a sensor, this other one will communicate with WiFi, this one will read a button, choose your font here, center it with this (like Word or Excel). With Arduino UNO I was more comfortable. WiFi seems to mess it up. Just venting.
Hi.
If you like block-style programming more, maybe programming with Node-RED is more appropriate for you.
The “Build Web Server”eBook focus on HTML, Javascript, and ESP32 to build Web Servers.
Regards,
Sara
Let me know if you need further help with the projects in the eBook.
Regards,
Sara