Code: Select all
$ make
CC duktape_main.o
AR libmain.a
LD esp32-duktape.elf
C:/esp/proto/build/main\libmain.a(duktape_main.o):(.literal.app_main+0x28): undefined reference to `xPortGetFreeHeapSizeTagged'
C:/esp/proto/build/main\libmain.a(duktape_main.o): In function `app_main':
C:/esp/proto/main/duktape_main.c:105: undefined reference to `xPortGetFreeHeapSizeTagged'
collect2.exe: error: ld returned 1 exit status
make: *** [C:/esp/esp-idf/make/project.mk:330: /c/esp/proto/build/esp32-duktape.elf] Error 1
Code: Select all
LOGD("Free IRAM: %d", xPortGetFreeHeapSizeTagged(MALLOC_CAP_32BIT));
Code: Select all
#include <FreeRTOS.h>
#include <heap_regions.h>
#include <task.h>
#include <esp_event.h>
#include <esp_event_loop.h>
#include <esp_log.h>
#include <esp_system.h>
#include <esp_wifi.h>
#include <esp_heap_caps.h>
#include <nvs_flash.h>
#include "duktape_task.h"
#include "duktape_event.h"
#include "logging.h"
#include "sdkconfig.h"
Ta