If you are asking a question, please follow this template:
- My goal is: I’m trying to use SPIRAM for mbedtls calls, as suggested in this post https://github.com/espressif/esp-idf/issues/2184#issuecomment-408209411
- My actions are: In my mos.yml I’ve set
CONFIG_MBEDTLS_PLATFORM_MEMORY=yin build_vars, and in main.c mgos_app_init I’ve called
mbedtls_platform_set_calloc_free(my_calloc, my_free);(which is referenced in mbedtls platform.h.
- The result I see is: My app fails to build, with error
implicit declaration of function 'mbedtls_platform_set_calloc_free'
- My expectation & question is: I’m not sure how to correctly include platform.h. I’ve tried
#include "platform.h"but it didn’t work.