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
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
Thank you for the suggestion, Sara! I will try that approach later today when I have some time.
Ed Wilson
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
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
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