Re: JavaScript on ESP32 - Duktape
Posted: Thu Jul 27, 2017 3:47 pm
I'm having the following issue:
The code it references is here:
but there doesn't seem to be anything unusual with it. I'm quite the beginner so it's really stumped me. The only thing that's different to the original document is the includes, which are:
Any help would be much appreciated!
Ta
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