Description
Maybe its because I'm using WSL on windows 11 rather than a real ubuntu install.
I deleted:
set(RMAKER_PATH ${CMAKE_SOURCE_DIR}/components/esp-rainmaker)
set(EXTRA_COMPONENT_DIRS ${RMAKER_PATH}/components/esp-insights/components ${RMAKER_PATH}/components ${CMAKE_SOURCE_DIR}/components/esp-insights/components)
from the CMakeLists.text file and it seems I have put the build in an infinite loop.
I'm trying to build the Arduino core so that mbedtls uses less heap. I have an active MQTT connection - also using mbedtls when I have to make a and https POST request.
Please no suggestions to use a different part with more memory. I have over 30K installed units that need an update.
The mbedtls documents say the memory profile is 48K heap. The mbedtls debug shows:
[ 7564][V][ssl_client.cpp:61] start_ssl_client(): Free internal heap before TLS 96496
The value returned from heap_caps_get_free_size(MALLOC_CAP_8BIT); just before the request is 50620 bytes.
Is the difference meaning the biggest block I can allocate of the 96496 available is only 50620?
I get this error from mbedtls:
[ 7697][V][ssl_client.cpp:316] start_ssl_client(): Performing the SSL/TLS handshake...
[ 8710][E][ssl_client.cpp:38] _handle_error(): [start_ssl_client():322]: (-16) BIGNUM - Memory allocation failed
build error:
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
Skipping optional dependency: espressif/cbor
Skipping optional dependency: espressif/mdns
Solving dependencies requirements
....CMake Error at esp-idf/tools/cmake/build.cmake:463 (message):
ERROR: Can't reliably evaluate relative path without context:
../rmaker_common
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:476 (idf_build_process)
CMakeLists.txt:9 (project)
-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/kfrog/Temp-arduino-core/esp32-arduino-lib-builder/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
root@sesamestreet:/mnt/c/Users/kfrog/Temp-arduino-core/esp32-arduino-lib-builder#