Building webservers page 265. I have a SUCCESS with Build Filesystem Image & Upload Filesystem Image using the code provided from the course. Module 2-2-multiple outputs toggle switch so I am sure that the code was uploaded into the ESP32 board. However, at the specified IP address, I still get a previous webpage from an earlier “text only” module (1_2_Hello_World_WS_SPIFFS I think) . The bottom line of VScode does show my default / current project is 2_2_Multiple ..etc. To prove it’s not my Chrome Web-browser, I opened SAFARI on my iPad and got the same old text web page. Looking at the Modules “index.html” it is definitely the one for 4 toggle switches.
So I am at a loss as to what to investigate here. The physical ESP32 or the code.? Maybe I’ll wipe the ESP with a blink sketch and then try again with 2-2-Multiple …
Uploaded the Blink_LED project using the right arrow icon.
confirmed LED is blinking and that Webpage now cannot be reached.
Now, back to the Uploading Filesystem Image process after switching default PRJ back to 2-2-Multiple ….
2 successes as before but monitor window is still sending LED ON OFF.
The esp32 is still flashing the LED so the 2-2-Multiple wasn’t downloaded.
Restart VSCODE.
This time I hit that refresh icon to the right of PROJECT TASKS.
2 attempts to overwrite the Blink code both with Success etc. But the blink still occurs. So the ESP32 is refusing to stop the blink code.
Update.
Managed to overide the blink code and use the FILESYSTEM image approach.
Again I get 2 SUCCESS messages but when I use serial monitor, it is displaying endless lines of text at an extremely fast rate.
I beleive I spotted during the last upload a line that said something like…
“Changing the baud rate to 460,000 or similar” but my PIO.ini is still 115200.
Upload text this time I saw “460800 baud rate change”
I capture text in serial mon using Ctrl+C to stop the scrolling. Here is some of the output:
rst:0x3 (SW_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:1184
load:0x40078000,len:13192
load:0x40080400,len:3028
entry 0x400805e4
ets Jul 29 2019 12:21:46
rst:0x3 (SW_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:1184
load:0x40078000,len:13192
load:0x40080400,len:3028
entry 0x400805e4
ets Jul 29 2019 12:21:46
So I am unable to get a previous working code (2 weeks ago) to work again.
Do I erase FLASH or something????
Update: Got the old code working when I used the “normal” Upload —> arrow. I really don’t quite understand why there are 2 methods of build and upload. Now I’ll try the same on 2-2-Multiple but I’m certain it will fail because I don’t believe it knows which type of ESP board I have. Anyhow, this is the error messages and seems to have that
mbedtls_md5_starts problem again. OK fixed that and did a —> upload with SUCCESS and serial monitor gave a new IP address BUT Still showing the previous webpage !!!! Back where I started.
Got it working finally. I had the wrong main.cpp open when doing the upload. (Explorer tree had too many branches open) . Went back to the “Filesystem” method after closing all terminal windows.
I now have the correct web-page showing. Hours burned today ……. too many.
Hi Jim.
I’m glad you found the issue.
Whenever you don’t see the webpage or if it is showing an old page, it is because it didn’t upload the filesystem image for that specific project or that you’ve uploaded the wrong file.
Make sure you always just have the project you’re working on opened to prevent uploading the wrong file.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara