• 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

1.2 – Hello World Web Server, problem compiling the code

Q&A Forum › Category: ESP32 › 1.2 – Hello World Web Server, problem compiling the code
0 Vote Up Vote Down
Michel Maheu asked 3 years ago

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?

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

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
 
 

0 Vote Up Vote Down
Michel Maheu answered 3 years ago

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.

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

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

0 Vote Up Vote Down
Michel Maheu answered 3 years ago

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?

0 Vote Up Vote Down
Michel Maheu answered 3 years ago

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.

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

Hi.
 
Thanks for letting us know. Even thought I don’t understand why that solves the issue because we don’t use that library.
 
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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.