• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32/ESP8266 Web Server Course Issues

Q&A Forum › ESP32/ESP8266 Web Server Course Issues
0 Vote Up Vote Down
Edward Wilson asked 3 years ago

I am starting to work my way through the ESP32/ESP8266 Web Server Course and have run into an issue in the 1_2_Hello_World_WS_SPIFFS example. When I try to compile, I get the following error message:

c:/users/dell/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exeesp32dev\libce5\libESP Async WebServer.a(WebAuthentication.cpp.o):(.literal._ZL6getMD5PhtPc+0x4): undefined reference to `mbedtls_md5_s
c:/users/dell/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exeesp32dev\libce5\libESP Async WebServer.a(WebAuthentication.cpp.o): in function `getMD5(unsigned char*, unsigned short, char*)’:
C:\Users\Dell\Documents\PlatformIO\Projects\1_2_Hello_World_WS_SPIFFs/.pio/libdeps/esp32dev/ESP Async WebServer/src/WebAuthentication.cned reference to `mbedtls_md5_starts’

I copied and pasted the files exactly as given in the text and do not know how to resolve this issue and move forward in the course…any help would be appreciated. I am using PlatformIO and an ESP32.

Ed Wilson

8 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Please try the following and check if that solves the issue:
 
On platformio.ini file, change the platform to espressif32@3.5.0 instead espressif32.
 
Let me know if this solves the issue.
Regards,
Sara

0 Vote Up Vote Down
Edward Wilson answered 3 years ago

Thank you for the suggestion, Sara! I will try that approach later today when I have some time.
Ed Wilson

0 Vote Up Vote Down
Edward Wilson answered 3 years ago

Ok, Sara, I believe that we are getting closer, The program did compile successfully after your suggestion, but I think that I saw a couple of warnings (in yellow) flash by. I tried to scroll back to copy the warnings but they were no longer visible. I tried a compile a second time and I did not see these warnings. Anyway, the program did seem to build and upload correctly and it said that SPIFFS mounted successfully and that I was connected to WiFi. When I tried to view the web page on a browser on my local network, the web page was blank (no title either). I am sure that the IP address is correct. Again, the code was copied and pasted directly from the course materials. Do you have any further suggestions?

Ed Wilson

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
You probably forgot to Upload the filesystem image.
Additionally, make sure you have all the necessary files inside the data folder and that the data folder is placed on the right place.
 
Regards,
Sara

0 Vote Up Vote Down
Edward Wilson answered 3 years ago

Sara…you were correct! I guess that I got so excited getting the program to compile without error that I forgot that I needed to upload the file system image. The web page displays correctly now.
 
One quick question…should I always make the change in the platform.ini file (espressif32@3.5.0) for future projects?
 
Thanks again,
 
Ed Wilson

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
I think it’s better to do so.
Regards
Sara

0 Vote Up Vote Down
Edward Wilson answered 3 years ago

Ok, thanks!

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.