on first round the course went well.
after a while I wanted to look back to what I did due to the next book I am working on (Firebase)
1.1 sample works well
1.2 sample (with SPIFFS) doesnt build anymore.
I get this message
Linking .pio\build\esp32doit-devkit-v1\firmware.elf
c:/users/johnv/.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\libeb8\libESP Async WebServer.a(WebAuthentication.cpp.o):(.literal._ZL6getMD5PhtPc+0x4): undefined reference to `mbedtls_md5_starts’
c:/users/johnv/.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\libeb8\libESP Async WebServer.a(WebAuthentication.cpp.o): in function `getMD5(unsigned char*, unsigned short, char*)’:
D:\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
Reinstalled VS etc., and started over at beginning of the book, Did not help.
Any idea how I can get going again?
Hi John.
Did you try with another board? Have you tried uploading any other code to the board?
How did you install the ESPAsyncWebServer library?
Regards,
Sara
Thanks for the fast reply Sara.
I did try another ESP32 board, boards work with blink LED and with 1.1 Hello World WS
Hello World has in the platform.ini also ESP ASYNC Webserver, so I think it is strange that 1.2 Hello World WS SPIFFS does not even build but gives the error above, so I cannot upload it to the board
Hi.
It seems there is an issue with a recent library updated.
Check this discussion and try the suggested workaround: https://github.com/me-no-dev/ESPAsyncWebServer/issues/1147
Regards,
Sara
Thanks Sara,
Changing the platform in platform.ini to: platform = espressif32@3.5.0 worked!
Might be a helpful workaround for others as well.
This definitely brought my fun to work on your course books back!,
John