Hello Sara, I need help please!
I’m new to ESP32 world. I’m following step by step your ”Build_Web_Servers_ESP32_ESP8266_V2_1.pdf” guide, (very good by the way), but now I’m blocked at activity 1.2 ”Hello World Web Server” on module 3.
I have the same problem as ”Stephen ESP32 Web Server – Code Upload Failed ‘’ 5 months ago, and (Shah Rafique 1.2 – Hello World Web Server (Serve Files from Filesystem) error) 2 months ago. I tried both solutions that you gave to them, but it still doesn’t work. The problem is related to undefined reference to `mbedtls_md5_starts’
I’m still getting this error msg:
‘c:/users/mmahe/.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\lib074\libESP Async WebServer.a(WebAuthentication.cpp.o):(.literal._ZL6getMD5PhtPc+0x4): undefined reference to `mbedtls_md5_starts’
_________
c:/users/mmahe/.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\lib074\libESP Async WebServer.a(WebAuthentication.cpp.o): in function `getMD5(unsigned char*, unsigned short, char*)’:
C:\Users\mmahe\OneDrive\Documents\PlatformIO\Projects\1_2_Hello_World_WS_SPIFFS/.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’
_________
Here is my platformio.ini (note the 2 lines, now with semicolons, I tried them for testing your suggested solutions);
_________
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps = ESP Async WebServer
;platform = espressif32@3.5.0
;lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git
_________
Can you help me please?
Hi.
Just change the platform to espressif@3.5.0
remove the last line you have.
What do you get?
Do you get the same error?
Regards,
Sara
Hello Sara, thanks for your quick response! I changed the platform, but It seem that no change occured. Here is the error msg;
_________
c:/users/mmahe/.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\lib074\libESP Async WebServer.a(WebAuthentication.cpp.o):(.literal._ZL6getMD5PhtPc+0x4): undefined reference to `mbedtls_md5_starts’
c:/users/mmahe/.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\lib074\libESP Async WebServer.a(WebAuthentication.cpp.o): in function `getMD5(unsigned char*, unsigned short, char*)’:
C:\Users\mmahe\OneDrive\Documents\PlatformIO\Projects\1_2_Hello_World_WS_SPIFFS/.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
_______
regards,
Michel.
Hi.
Weird… That workaround usually solves the issue.
Try to include the library as follows with the regular espressif version, but with the link
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
platform = espressif32
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git
Let me know if this makes any difference.
Regards,
Sara
Hello Sara,
Unfortunatly, no difference. Error message still ending with: ”undefined reference to `mbedtls_md5_starts’ ”
Do you have another suggestion?
I have this problem, but I’m more worried that this problem will prevent me to do next activities proposed in your book, and eventually, my own code. Tell me, does this problem will impact next activities?
Hello Sara,
I finally found my problem. I must add the ESPWebServer library for each and every project. By adding this library, activities 1.2 and 2.1 works fine now.
Anyhow, thanks for your support and have a great day.