-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Board
ESP32 WROOM32-E
Device Description
esp32dev
Hardware Configuration
N/A
Version
v2.0.2
IDE Name
Plaatformio
Operating System
Windows 10
Flash frequency
40 Mhz
PSRAM enabled
no
Upload speed
921600
Description
I was trying to use esp32-arduino-lib-builder to build a customer Arduino SDK. However, the project can not build if I use the SDK built by the lib-builder along with HTTPClient.h. I use the BasicHttpClient example below and get a bunch of errors about "undefined reference to mbedtls_ssl******". Regarding the esp32-arduino-lib-builder, I changed nothing, just use the default sdkconfig setting, and use ./build.sh to build, and copy the files from "out" to ".platformio\packages\framework-arduinoespressif32". I can build other examples, e.g. WebUpdate.ino. So far, it seems the problem happens to HTTPClient.h or WiFiClientSecure.h along with customer SDK from lib builder. the project can be built if I switch back to the original arduino-esp32 SDK.
Those undefined reference are in tools/sdk/esp32/include/mbedtls/mbedtls/include/mbedtls/ssl.h. I also tried #include <mbedtls/ssl.h>
, but the result is the same.
I also tried to copy the original sdkconfig from arduino-esp32/tools/sdk/esp32/ and replace the sdkconfig.esp32, it won't work. Still got the same error. Any settings I need to turn on?
Sketch
/**
* BasicHTTPClient.ino
*
* Created on: 24.05.2015
*
*/
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiMulti.h>
#include <HTTPClient.h>
#define USE_SERIAL Serial
WiFiMulti wifiMulti;
/*
const char* ca = \
"-----BEGIN CERTIFICATE-----\n" \
"MIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/\n" \
"MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT\n" \
"DkRTVCBSb290IENBIFgzMB4XDTE2MDMxNzE2NDA0NloXDTIxMDMxNzE2NDA0Nlow\n" \
"SjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxIzAhBgNVBAMT\n" \
"GkxldCdzIEVuY3J5cHQgQXV0aG9yaXR5IFgzMIIBIjANBgkqhkiG9w0BAQEFAAOC\n" \
"AQ8AMIIBCgKCAQEAnNMM8FrlLke3cl03g7NoYzDq1zUmGSXhvb418XCSL7e4S0EF\n" \
"q6meNQhY7LEqxGiHC6PjdeTm86dicbp5gWAf15Gan/PQeGdxyGkOlZHP/uaZ6WA8\n" \
"SMx+yk13EiSdRxta67nsHjcAHJyse6cF6s5K671B5TaYucv9bTyWaN8jKkKQDIZ0\n" \
"Z8h/pZq4UmEUEz9l6YKHy9v6Dlb2honzhT+Xhq+w3Brvaw2VFn3EK6BlspkENnWA\n" \
"a6xK8xuQSXgvopZPKiAlKQTGdMDQMc2PMTiVFrqoM7hD8bEfwzB/onkxEz0tNvjj\n" \
"/PIzark5McWvxI0NHWQWM6r6hCm21AvA2H3DkwIDAQABo4IBfTCCAXkwEgYDVR0T\n" \
"AQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwfwYIKwYBBQUHAQEEczBxMDIG\n" \
"CCsGAQUFBzABhiZodHRwOi8vaXNyZy50cnVzdGlkLm9jc3AuaWRlbnRydXN0LmNv\n" \
"bTA7BggrBgEFBQcwAoYvaHR0cDovL2FwcHMuaWRlbnRydXN0LmNvbS9yb290cy9k\n" \
"c3Ryb290Y2F4My5wN2MwHwYDVR0jBBgwFoAUxKexpHsscfrb4UuQdf/EFWCFiRAw\n" \
"VAYDVR0gBE0wSzAIBgZngQwBAgEwPwYLKwYBBAGC3xMBAQEwMDAuBggrBgEFBQcC\n" \
"ARYiaHR0cDovL2Nwcy5yb290LXgxLmxldHNlbmNyeXB0Lm9yZzA8BgNVHR8ENTAz\n" \
"MDGgL6AthitodHRwOi8vY3JsLmlkZW50cnVzdC5jb20vRFNUUk9PVENBWDNDUkwu\n" \
"Y3JsMB0GA1UdDgQWBBSoSmpjBH3duubRObemRWXv86jsoTANBgkqhkiG9w0BAQsF\n" \
"AAOCAQEA3TPXEfNjWDjdGBX7CVW+dla5cEilaUcne8IkCJLxWh9KEik3JHRRHGJo\n" \
"uM2VcGfl96S8TihRzZvoroed6ti6WqEBmtzw3Wodatg+VyOeph4EYpr/1wXKtx8/\n" \
"wApIvJSwtmVi4MFU5aMqrSDE6ea73Mj2tcMyo5jMd6jmeWUHK8so/joWUoHOUgwu\n" \
"X4Po1QYz+3dszkDqMp4fklxBwXRsW10KXzPMTZ+sOPAveyxindmjkW8lGy+QsRlG\n" \
"PfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6\n" \
"KOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==\n" \
"-----END CERTIFICATE-----\n";
*/
void setup()
{
USE_SERIAL.begin(115200);
USE_SERIAL.println();
USE_SERIAL.println();
USE_SERIAL.println();
for (uint8_t t = 4; t > 0; t--)
{
USE_SERIAL.printf("[SETUP] WAIT %d...\n", t);
USE_SERIAL.flush();
delay(1000);
}
wifiMulti.addAP("SSID", "PASSWORD");
}
void loop()
{
// wait for WiFi connection
if ((wifiMulti.run() == WL_CONNECTED))
{
HTTPClient http;
USE_SERIAL.print("[HTTP] begin...\n");
// configure traged server and url
// http.begin("https://www.howsmyssl.com/a/check", ca); //HTTPS
http.begin("http://example.com/index.html"); // HTTP
USE_SERIAL.print("[HTTP] GET...\n");
// start connection and send HTTP header
int httpCode = http.GET();
// httpCode will be negative on error
if (httpCode > 0)
{
// HTTP header has been send and Server response header has been handled
USE_SERIAL.printf("[HTTP] GET... code: %d\n", httpCode);
// file found at server
if (httpCode == HTTP_CODE_OK)
{
String payload = http.getString();
USE_SERIAL.println(payload);
}
}
else
{
USE_SERIAL.printf("[HTTP] GET... failed, error: %s\n", http.errorToString(httpCode).c_str());
}
http.end();
}
delay(5000);
}
Debug Message
> Executing task in folder FLIPS: C:\Users\deary\.platformio\penv\Scripts\platformio.exe run <
Processing esp32dev (platform: https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream; board: esp32dev; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1+sha.3784198) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h,
olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 0.0.0
- tool-esptoolpy 1.30100.210531 (3.1.0)
- toolchain-xtensa-esp32 8.4.0+2021r1
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 6.19.2
|-- <HTTPClient> 2.0.0
| |-- <WiFi> 2.0.0
| |-- <WiFiClientSecure> 2.0.0
| | |-- <WiFi> 2.0.0
|-- <WiFi> 2.0.0
|-- <WiFiManager> 2.0.5-beta
| |-- <DNSServer> 2.0.0
| | |-- <WiFi> 2.0.0
| |-- <ESPmDNS> 2.0.0
| | |-- <WiFi> 2.0.0
| |-- <Update> 2.0.0
| |-- <WebServer> 2.0.0
| | |-- <WiFi> 2.0.0
| | |-- <FS> 2.0.0
| |-- <WiFi> 2.0.0
|-- <Wire> 2.0.0
Building in release mode
Compiling .pio\build\esp32dev\src\main.cpp.o
Linking .pio\build\esp32dev\firmware.elf
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z8ssl_initP17sslclient_context+0x0): undefined reference to `mbedtls_ssl_init'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z8ssl_initP17sslclient_context+0x4): undefined reference to `mbedtls_ssl_config_init'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x48): undefined reference to `mbedtls_net_recv'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x4c): undefined reference to `mbedtls_net_send'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x5c): undefined reference to `mbedtls_ssl_config_defaults'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x60): undefined reference to `mbedtls_ssl_conf_alpn_protocols'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x64): undefined reference to `mbedtls_ssl_conf_authmode'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x68): undefined reference to `mbedtls_ssl_conf_psk'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x6c): undefined reference to `mbedtls_ssl_conf_own_cert'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x70): undefined reference to `mbedtls_ssl_set_hostname'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x74): undefined reference to `mbedtls_ssl_conf_rng'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x78): undefined reference to `mbedtls_ssl_setup'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x7c): undefined reference to `mbedtls_ssl_set_bio'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x80): undefined reference to `mbedtls_ssl_handshake'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x88): undefined reference to `mbedtls_ssl_get_record_expansion'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z16start_ssl_clientP17sslclient_contextPKcjiS2_bS2_S2_S2_S2_bPS2_+0x8c): undefined reference to `mbedtls_ssl_get_verify_result'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z15stop_ssl_socketP17sslclient_contextPKcS2_S2_+0x0): undefined reference to `mbedtls_ssl_free'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z15stop_ssl_socketP17sslclient_contextPKcS2_S2_+0x4): undefined reference to `mbedtls_ssl_config_free'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z12data_to_readP17sslclient_context+0x4): undefined reference to `mbedtls_ssl_read'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z12data_to_readP17sslclient_context+0x8): undefined reference to `mbedtls_ssl_get_bytes_avail'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o):(.literal._Z13send_ssl_dataP17sslclient_contextPKhj+0x4): undefined reference to `mbedtls_ssl_write'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o): in function `ssl_init(sslclient_context*)':
C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:51: undefined reference to `mbedtls_ssl_init'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:52: undefined reference to `mbedtls_ssl_config_init'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o): in function `start_ssl_client(sslclient_context*, char const*, unsigned int, int,
char const*, bool, char const*, char const*, char const*, char const*, bool, char const**)':
C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:140: undefined reference to `mbedtls_ssl_config_defaults'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:140: undefined reference to `mbedtls_ssl_conf_alpn_protocols'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:140: undefined reference to `mbedtls_ssl_conf_authmode'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:173: undefined reference to `mbedtls_ssl_conf_authmode'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:228: undefined reference to `mbedtls_ssl_conf_ca_chain'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:203: undefined reference to `mbedtls_ssl_conf_psk'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:213: undefined reference to `mbedtls_ssl_conf_own_cert'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:218: undefined reference to `mbedtls_ssl_set_hostname'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:218: undefined reference to `mbedtls_ssl_conf_rng'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:221: undefined reference to `mbedtls_ssl_setup'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:221: undefined reference to `mbedtls_ssl_set_bio'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:221: undefined reference to `mbedtls_ssl_handshake'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:245: undefined reference to `mbedtls_ssl_get_record_expansion'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:246: undefined reference to `mbedtls_ssl_get_verify_result'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o): in function `stop_ssl_socket(sslclient_context*, char const*, char const*, char const*)':
C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:292: undefined reference to `mbedtls_ssl_free'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:293: undefined reference to `mbedtls_ssl_config_free'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o): in function `data_to_read(sslclient_context*)':
C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:294: undefined reference to `mbedtls_ssl_read'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:300: undefined reference to `mbedtls_ssl_get_bytes_avail'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o): in function `send_ssl_data(sslclient_context*, unsigned char const*, unsigned int)':
C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:367: undefined reference to `mbedtls_ssl_write'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(ssl_client.cpp.o): in function `get_ssl_receive(sslclient_context*, unsigned char*, int)':
C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ssl_client.cpp:384: undefined reference to `mbedtls_ssl_read'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(esp_crt_bundle.c.o):(.literal.esp_crt_bundle_attach+0x10): undefined reference to `mbedtls_ssl_conf_ca_chain'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(esp_crt_bundle.c.o):(.literal.esp_crt_bundle_attach+0x14): undefined reference to `mbedtls_ssl_conf_verify'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib8d8\libWiFiClientSecure.a(esp_crt_bundle.c.o): in function `esp_crt_bundle_attach':
C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/esp_crt_bundle.c:196: undefined reference to `mbedtls_ssl_conf_ca_chain'
c:/users/deary/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/deary/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/esp_crt_bundle.c:197: undefined reference to `mbedtls_ssl_conf_verify'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32dev\firmware.elf] Error 1
========================================================= [FAILED] Took 27.03 seconds =========================================================
The terminal process "C:\Users\deary\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.