Repository navigation
Windows 10 - Building sample Hello World #762
Description
Build environment: Windows 10 (Virtual Machine)
Target device: I have a cheap generic Wroom ESP32 board, I am assuming it's an esp32/saola_wroom.
Description
Not able to follow the setup instructions to install and configure Moddable.
I created a new Windows 10 virtual machine to try to understand the installation. I got past the first part (Build and run applications for the desktop simulator) but now I am trying to do the second part (Part 2: Build and run applications on a development board).
I already have a working CP210x driver installed on the host machine, and using PuTTY on the virtual machine I can see the console.log statements from an application I built with Espruino. So I know the VM can see the ESP32.
I got these errors:
[90/90] Generating binary image from built executable
esptool.py v3.2-dev
Merged 1 ELF section
Generated C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/build/bootloader/bootloader.bin
[977/982] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj
ccache C:\Users\andre\.espressif\tools\xtensa-esp32s2-elf\esp-2021r2-8.4.0\... **<TRUNCATED>** ain.dir/main.c.obj -c ../main/main.c
../main/main.c: In function 'setup':
../main/main.c:144:35: warning: passing argument 4 of 'ESP_cloneMachine' makes integer from pointer without a cast [-Wint-conversion]
gThe = ESP_cloneMachine(0, 0, 0, NULL);
^~~~
In file included from ../main/main.c:51:
C:/Users/andre/Projects/moddable/xs/platforms/esp/xsHost.h:255:20: note: expected 'uint32_t' {aka 'unsigned int'} but argument is of type 'void *'
extern xsMachine *ESP_cloneMachine(uint32_t allocation, uint32_t stack, uint32_t slotCount, uint32_t keyCount, const char *name);
^~~~~~~~~~~~~~~~
../main/main.c:144:9: error: too few arguments to function 'ESP_cloneMachine'
gThe = ESP_cloneMachine(0, 0, 0, NULL);
^~~~~~~~~~~~~~~~
In file included from ../main/main.c:51:
C:/Users/andre/Projects/moddable/xs/platforms/esp/xsHost.h:255:20: note: declared here
extern xsMachine *ESP_cloneMachine(uint32_t allocation, uint32_t stack, uint32_t slotCount, uint32_t keyCount, const char *name);
^~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
The system cannot find the file specified.
The system cannot find the file specified.
1 file(s) copied.
1 file(s) copied.
1 file(s) copied.
The system cannot find the file specified.
Launching app. Type Ctrl-C twice after debugging app to close serial2xsbug...
C:\Users\andre\Projects\moddable\tools\serial2xsbug\serial2xsbug_win.c(142): The parameter is incorrect.
NMAKE : fatal error U1077: 'C:\Users\andre\Projects\moddable\build\bin\win\release\serial2xsbug.EXE' : return code '0x1'
Stop.
Steps to Reproduce
These are the steps I followed for the second part:
- Downloaded and run the ESP-IDF Tools Installer.
- I Set environment variables IDF_PATH (%USERPROFILE%\OneDrive\Desktop\esp-idf) and PATH (%USERPROFILE%.espressif\tools\idf-python\3.8.7, %USERPROFILE%.espressif\tools\idf-python\3.8.7\Scripts at the start of the path)
- Connected the ESP32 via USB
- executed these commands, in order
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat"
cd %USERPROFILE%\OneDrive\Desktop\esp-idf
C:\Windows\system32\cmd.exe /k ""C:\Users\andre\.espressif\idf_cmd_init.bat" "C:\Users\andre\.espressif\python_env\idf4.3_py3.8_env\Scripts" "C:\Program Files\Git\cmd\""
cd %USERPROFILE%\Projects\moddable\examples\helloworld
%USERPROFILE%\.espressif\tools\idf-python\3.8.7\python.exe -m pip install --upgrade pip
python -m pip install -r %IDF_PATH%\requirements.txt
cls
mcconfig -d -m -p esp32/saola_wroom
Expected behavior
I am able to install and configure Moddable SDK and the code in the ESP32 board.
Other information
This is the full log:
C:\Users\andre\Projects\moddable\examples\helloworld>mcconfig -d -m -p esp32/saola_wroom
1 file(s) copied.
1 file(s) copied.
1 file(s) copied.
Reconfiguring ESP-IDF...
Executing action: reconfigure
Running cmake in directory c:\users\andre\projects\moddable\build\tmp\esp32\saola_wroom\debug\helloworld\xsproj-esp32s2\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DSDKCONFIG_DEFAULTS=C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc -DSDKCONFIG_HEADER=C:\Users\andre\Projects\moddable\build\tmp\esp32\saola_wroom\debug\helloworld\xsProj-esp32s2\build\config\sdkconfig.h -DCMAKE_MESSAGE_LOG_LEVEL=ERROR -DDEBUGGER_SPEED=460800 -DIDF_TARGET=esp32s2 -DESP32_SUBCLASS=esp32s2 -DSDKCONFIG_DEFAULTS=C:\Users\andre\Projects\moddable\build\tmp\esp32\saola_wroom\debug\helloworld\xsProj-esp32s2\sdkconfig.mc -DCCACHE_ENABLE=1 c:\users\andre\projects\moddable\build\tmp\esp32\saola_wroom\debug\helloworld\xsproj-esp32s2"...
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.34.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe
-- Check for working C compiler: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe
-- Check for working C compiler: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe -- works
-- 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: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++.exe
-- Check for working CXX compiler: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++.exe -- 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 esp32s2
-- Project sdkconfig file C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig
Loading defaults file C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc...
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:230 CONFIG_ESP32S2_MEMPROT_FEATURE was replaced with CONFIG_ESP_SYSTEM_MEMPROT_FEATURE
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:231 CONFIG_ESP32S2_MEMPROT_FEATURE_LOCK was replaced with CONFIG_ESP_SYSTEM_MEMPROT_FEATURE_LOCK
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:304 CONFIG_ESP_CONSOLE_UART_NONE was replaced with CONFIG_ESP_CONSOLE_NONE
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:434 CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF was replaced with CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:435 CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 was replaced with CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:438 CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM was replaced with CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:440 CONFIG_ESP32_CORE_DUMP_STACK_SIZE was replaced with CONFIG_ESP_COREDUMP_STACK_SIZE
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:441 CONFIG_ESP32_CORE_DUMP_DECODE_INFO was replaced with CONFIG_ESP_COREDUMP_DECODE_INFO
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:443 CONFIG_ESP32_CORE_DUMP_DECODE was replaced with CONFIG_ESP_COREDUMP_DECODE
-- Found PythonInterp: C:/Users/andre/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe (found version "3.8.7")
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "xs_esp32" version: OS210826-407-g83dadd3d
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.api.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.libgcc.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.newlib-funcs.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.newlib-data.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.spiflash.ld
-- Adding linker script C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/build/esp-idf/esp32s2/esp32s2_out.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp32s2/ld/esp32s2.project.ld.in
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp32s2/ld/esp32s2.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32s2 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_local_ctrl esp_netif esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb touch_element ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/andre/OneDrive/Desktop/esp-idf/components/app_trace C:/Users/andre/OneDrive/Desktop/esp-idf/components/app_update C:/Users/andre/OneDrive/Desktop/esp-idf/components/asio C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader_support C:/Users/andre/OneDrive/Desktop/esp-idf/components/bt C:/Users/andre/OneDrive/Desktop/esp-idf/components/cbor C:/Users/andre/OneDrive/Desktop/esp-idf/components/cmock C:/Users/andre/OneDrive/Desktop/esp-idf/components/coap C:/Users/andre/OneDrive/Desktop/esp-idf/components/console C:/Users/andre/OneDrive/Desktop/esp-idf/components/cxx C:/Users/andre/OneDrive/Desktop/esp-idf/components/driver C:/Users/andre/OneDrive/Desktop/esp-idf/components/efuse C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp-tls C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp32s2 C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_adc_cal C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_common C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_eth C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_event C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_gdbstub C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_hid C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_http_client C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_http_server C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_https_ota C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_https_server C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_hw_support C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_ipc C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_local_ctrl C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_netif C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_pm C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_ringbuf C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_serial_slave_link C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_system C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_timer C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_websocket_client C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_wifi C:/Users/andre/OneDrive/Desktop/esp-idf/components/espcoredump C:/Users/andre/OneDrive/Desktop/esp-idf/components/esptool_py C:/Users/andre/OneDrive/Desktop/esp-idf/components/expat C:/Users/andre/OneDrive/Desktop/esp-idf/components/fatfs C:/Users/andre/OneDrive/Desktop/esp-idf/components/freemodbus C:/Users/andre/OneDrive/Desktop/esp-idf/components/freertos C:/Users/andre/OneDrive/Desktop/esp-idf/components/hal C:/Users/andre/OneDrive/Desktop/esp-idf/components/heap C:/Users/andre/OneDrive/Desktop/esp-idf/components/idf_test C:/Users/andre/OneDrive/Desktop/esp-idf/components/jsmn C:/Users/andre/OneDrive/Desktop/esp-idf/components/json C:/Users/andre/OneDrive/Desktop/esp-idf/components/libsodium C:/Users/andre/OneDrive/Desktop/esp-idf/components/log C:/Users/andre/OneDrive/Desktop/esp-idf/components/lwip C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/main C:/Users/andre/OneDrive/Desktop/esp-idf/components/mbedtls C:/Users/andre/OneDrive/Desktop/esp-idf/components/mdns C:/Users/andre/OneDrive/Desktop/esp-idf/components/mqtt C:/Users/andre/OneDrive/Desktop/esp-idf/components/newlib C:/Users/andre/OneDrive/Desktop/esp-idf/components/nghttp C:/Users/andre/OneDrive/Desktop/esp-idf/components/nvs_flash C:/Users/andre/OneDrive/Desktop/esp-idf/components/openssl C:/Users/andre/OneDrive/Desktop/esp-idf/components/partition_table C:/Users/andre/OneDrive/Desktop/esp-idf/components/perfmon C:/Users/andre/OneDrive/Desktop/esp-idf/components/protobuf-c C:/Users/andre/OneDrive/Desktop/esp-idf/components/protocomm C:/Users/andre/OneDrive/Desktop/esp-idf/components/pthread C:/Users/andre/OneDrive/Desktop/esp-idf/components/sdmmc C:/Users/andre/OneDrive/Desktop/esp-idf/components/soc C:/Users/andre/OneDrive/Desktop/esp-idf/components/spi_flash C:/Users/andre/OneDrive/Desktop/esp-idf/components/spiffs C:/Users/andre/OneDrive/Desktop/esp-idf/components/tcp_transport C:/Users/andre/OneDrive/Desktop/esp-idf/components/tcpip_adapter C:/Users/andre/OneDrive/Desktop/esp-idf/components/tinyusb C:/Users/andre/OneDrive/Desktop/esp-idf/components/touch_element C:/Users/andre/OneDrive/Desktop/esp-idf/components/ulp C:/Users/andre/OneDrive/Desktop/esp-idf/components/unity C:/Users/andre/OneDrive/Desktop/esp-idf/components/vfs C:/Users/andre/OneDrive/Desktop/esp-idf/components/wear_levelling C:/Users/andre/OneDrive/Desktop/esp-idf/components/wifi_provisioning C:/Users/andre/OneDrive/Desktop/esp-idf/components/wpa_supplicant C:/Users/andre/OneDrive/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_MESSAGE_LOG_LEVEL
-- Build files have been written to: C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/build
1 file(s) copied.
# cc xsHost.o (strings in flash)
# cc xsPlatform.o (strings in flash)
C:\Users\andre\AppData\Local\Temp\cc94hUid.s: Assembler messages:
C:\Users\andre\AppData\Local\Temp\cc94hUid.s:2661: Warning: setting incorrect section attributes for .rodata.mod.0
# cc xsAll.o (strings in flash)
# cc xsAPI.o (strings in flash)
# cc xsArguments.o (strings in flash)
# cc xsArray.o (strings in flash)
# cc xsAtomics.o (strings in flash)
# cc xsBigInt.o (strings in flash)
# cc xsBoolean.o (strings in flash)
# cc xsCode.o (strings in flash)
# cc xsCommon.o (strings in flash)
# cc xsDataView.o (strings in flash)
# cc xsDate.o (strings in flash)
# cc xsDebug.o (strings in flash)
# cc xsError.o (strings in flash)
# cc xsFunction.o (strings in flash)
# cc xsGenerator.o (strings in flash)
# cc xsGlobal.o (strings in flash)
# cc xsJSON.o (strings in flash)
# cc xsLexical.o (strings in flash)
# cc xsMapSet.o (strings in flash)
# cc xsMarshall.o (strings in flash)
# cc xsMath.o (strings in flash)
# cc xsMemory.o (strings in flash)
# cc xsModule.o (strings in flash)
# cc xsNumber.o (strings in flash)
# cc xsObject.o (strings in flash)
# cc xsPromise.o (strings in flash)
# cc xsProperty.o (strings in flash)
# cc xsProxy.o (strings in flash)
# cc xsRegExp.o (strings in flash)
# cc xsRun.o (strings in flash)
# cc xsScope.o (strings in flash)
# cc xsScript.o (strings in flash)
# cc xsSourceMap.o (strings in flash)
# cc xsString.o (strings in flash)
# cc xsSymbol.o (strings in flash)
# cc xsSyntaxical.o (strings in flash)
# cc xsTree.o (strings in flash)
# cc xsType.o (strings in flash)
# cc xsdtoa.o (strings in flash)
# cc xsre.o (strings in flash)
# cc xsmc.o (strings in flash)
# cc e_pow.o (strings in flash)
# xsc pins\digital.xsb
# xsc neopixel.xsb
# xsc time.xsb
# xsc timer.xsb
# xsc Resource.xsb
# xsc main.xsb
# xsc pins\digital\monitor.xsb
# xsc button.xsb
# xsc setup\target.xsb
# xsc mc\config.xsb
# xsid digital.c.xsi
# xsid modGPIO.c.xsi
# xsid modMonitor.c.xsi
# xsid modneopixel.c.xsi
# xsid neopixel.c.xsi
# xsid modTime.c.xsi
# xsid modTimer.c.xsi
# xsid timer.c.xsi
# xsid modPreference.c.xsi
# xsid Resource.c.xsi
# xsid modInstrumentation.c.xsi
# xsid modLwipSafe.c.xsi
# xsid modGPIO.h.xsi
# xsid neopixel.h.xsi
# xsid modTimer.h.xsi
# xsid modPreference.h.xsi
# xsid modInstrumentation.h.xsi
# xsid modLwipSafe.h.xsi
# xsl modules
### 273 instances, 561 keys, 63 colors, 0 holes
# cc mc.xs.o (slots in flash)
# mcrez resources
Total resource size: 0 bytes
# cc mc.resources.o (slots in flash)
# cc digital.c.o
# cc modGPIO.c.o
# cc modMonitor.c.o
# cc modneopixel.c.o
# cc neopixel.c.o
# cc modTime.c.o
# cc modTimer.c.o
# cc timer.c.o
# cc modPreference.c.o
# cc Resource.c.o
# cc modInstrumentation.c.o
# cc modLwipSafe.c.o
# ld xs_esp32.bin
1 file(s) copied.
1 file(s) copied.
Executing action: all (aliases: build)
Running cmake in directory c:\users\andre\projects\moddable\build\tmp\esp32\saola_wroom\debug\helloworld\xsproj-esp32s2\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DmxDebug=1 -DSDKCONFIG_HEADER=C:\Users\andre\Projects\moddable\build\tmp\esp32\saola_wroom\debug\helloworld\xsProj-esp32s2\build\config\sdkconfig.h -DCMAKE_MESSAGE_LOG_LEVEL=ERROR -DDEBUGGER_SPEED=460800 -DESP32_SUBCLASS=esp32s2 -DSDKCONFIG_DEFAULTS=C:\Users\andre\Projects\moddable\build\tmp\esp32\saola_wroom\debug\helloworld\xsProj-esp32s2\sdkconfig.mc -DCCACHE_ENABLE=1 c:\users\andre\projects\moddable\build\tmp\esp32\saola_wroom\debug\helloworld\xsproj-esp32s2"...
-- ccache will be used for faster recompilation
-- Building ESP-IDF components for target esp32s2
-- Project sdkconfig file C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig
Loading defaults file C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc...
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:230 CONFIG_ESP32S2_MEMPROT_FEATURE was replaced with CONFIG_ESP_SYSTEM_MEMPROT_FEATURE
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:231 CONFIG_ESP32S2_MEMPROT_FEATURE_LOCK was replaced with CONFIG_ESP_SYSTEM_MEMPROT_FEATURE_LOCK
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:304 CONFIG_ESP_CONSOLE_UART_NONE was replaced with CONFIG_ESP_CONSOLE_NONE
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:434 CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF was replaced with CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:435 CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 was replaced with CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:438 CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM was replaced with CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:440 CONFIG_ESP32_CORE_DUMP_STACK_SIZE was replaced with CONFIG_ESP_COREDUMP_STACK_SIZE
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:441 CONFIG_ESP32_CORE_DUMP_DECODE_INFO was replaced with CONFIG_ESP_COREDUMP_DECODE_INFO
C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig.mc:443 CONFIG_ESP32_CORE_DUMP_DECODE was replaced with CONFIG_ESP_COREDUMP_DECODE
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "xs_esp32" version: OS210826-407-g83dadd3d
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.api.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.libgcc.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.newlib-funcs.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.newlib-data.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.spiflash.ld
-- Adding linker script C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/build/esp-idf/esp32s2/esp32s2_out.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp32s2/ld/esp32s2.project.ld.in
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp32s2/ld/esp32s2.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32s2 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_local_ctrl esp_netif esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb touch_element ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/andre/OneDrive/Desktop/esp-idf/components/app_trace C:/Users/andre/OneDrive/Desktop/esp-idf/components/app_update C:/Users/andre/OneDrive/Desktop/esp-idf/components/asio C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader_support C:/Users/andre/OneDrive/Desktop/esp-idf/components/bt C:/Users/andre/OneDrive/Desktop/esp-idf/components/cbor C:/Users/andre/OneDrive/Desktop/esp-idf/components/cmock C:/Users/andre/OneDrive/Desktop/esp-idf/components/coap C:/Users/andre/OneDrive/Desktop/esp-idf/components/console C:/Users/andre/OneDrive/Desktop/esp-idf/components/cxx C:/Users/andre/OneDrive/Desktop/esp-idf/components/driver C:/Users/andre/OneDrive/Desktop/esp-idf/components/efuse C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp-tls C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp32s2 C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_adc_cal C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_common C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_eth C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_event C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_gdbstub C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_hid C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_http_client C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_http_server C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_https_ota C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_https_server C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_hw_support C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_ipc C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_local_ctrl C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_netif C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_pm C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_ringbuf C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_serial_slave_link C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_system C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_timer C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_websocket_client C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_wifi C:/Users/andre/OneDrive/Desktop/esp-idf/components/espcoredump C:/Users/andre/OneDrive/Desktop/esp-idf/components/esptool_py C:/Users/andre/OneDrive/Desktop/esp-idf/components/expat C:/Users/andre/OneDrive/Desktop/esp-idf/components/fatfs C:/Users/andre/OneDrive/Desktop/esp-idf/components/freemodbus C:/Users/andre/OneDrive/Desktop/esp-idf/components/freertos C:/Users/andre/OneDrive/Desktop/esp-idf/components/hal C:/Users/andre/OneDrive/Desktop/esp-idf/components/heap C:/Users/andre/OneDrive/Desktop/esp-idf/components/idf_test C:/Users/andre/OneDrive/Desktop/esp-idf/components/jsmn C:/Users/andre/OneDrive/Desktop/esp-idf/components/json C:/Users/andre/OneDrive/Desktop/esp-idf/components/libsodium C:/Users/andre/OneDrive/Desktop/esp-idf/components/log C:/Users/andre/OneDrive/Desktop/esp-idf/components/lwip C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/main C:/Users/andre/OneDrive/Desktop/esp-idf/components/mbedtls C:/Users/andre/OneDrive/Desktop/esp-idf/components/mdns C:/Users/andre/OneDrive/Desktop/esp-idf/components/mqtt C:/Users/andre/OneDrive/Desktop/esp-idf/components/newlib C:/Users/andre/OneDrive/Desktop/esp-idf/components/nghttp C:/Users/andre/OneDrive/Desktop/esp-idf/components/nvs_flash C:/Users/andre/OneDrive/Desktop/esp-idf/components/openssl C:/Users/andre/OneDrive/Desktop/esp-idf/components/partition_table C:/Users/andre/OneDrive/Desktop/esp-idf/components/perfmon C:/Users/andre/OneDrive/Desktop/esp-idf/components/protobuf-c C:/Users/andre/OneDrive/Desktop/esp-idf/components/protocomm C:/Users/andre/OneDrive/Desktop/esp-idf/components/pthread C:/Users/andre/OneDrive/Desktop/esp-idf/components/sdmmc C:/Users/andre/OneDrive/Desktop/esp-idf/components/soc C:/Users/andre/OneDrive/Desktop/esp-idf/components/spi_flash C:/Users/andre/OneDrive/Desktop/esp-idf/components/spiffs C:/Users/andre/OneDrive/Desktop/esp-idf/components/tcp_transport C:/Users/andre/OneDrive/Desktop/esp-idf/components/tcpip_adapter C:/Users/andre/OneDrive/Desktop/esp-idf/components/tinyusb C:/Users/andre/OneDrive/Desktop/esp-idf/components/touch_element C:/Users/andre/OneDrive/Desktop/esp-idf/components/ulp C:/Users/andre/OneDrive/Desktop/esp-idf/components/unity C:/Users/andre/OneDrive/Desktop/esp-idf/components/vfs C:/Users/andre/OneDrive/Desktop/esp-idf/components/wear_levelling C:/Users/andre/OneDrive/Desktop/esp-idf/components/wifi_provisioning C:/Users/andre/OneDrive/Desktop/esp-idf/components/wpa_supplicant C:/Users/andre/OneDrive/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/build
Running ninja in directory c:\users\andre\projects\moddable\build\tmp\esp32\saola_wroom\debug\helloworld\xsproj-esp32s2\build
Executing "ninja all"...
[3/982] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,3648K,
xs,64,1,0x3a0000,256K,
settings,data,phy,0x3e0000,64K,
storage,data,spiffs,0x3f0000,64K,
*******************************************************************************
[387/982] Performing configure step for 'bootloader'
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.34.1.windows.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe
-- Check for working C compiler: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe
-- Check for working C compiler: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe -- works
-- 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: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++.exe
-- Check for working CXX compiler: C:/Users/andre/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++.exe -- 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 esp32s2
-- Project sdkconfig file C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/sdkconfig
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp32s2/ld/esp32s2.peripherals.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.api.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.libgcc.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.newlib-funcs.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.spiflash.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader/subproject/main/ld/esp32s2/bootloader.ld
-- Adding linker script C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader/subproject/main/ld/esp32s2/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32s2 esp_common esp_hw_support esp_rom esp_system esptool_py hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader_support C:/Users/andre/OneDrive/Desktop/esp-idf/components/efuse C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp32s2 C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_common C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_hw_support C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom C:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_system C:/Users/andre/OneDrive/Desktop/esp-idf/components/esptool_py C:/Users/andre/OneDrive/Desktop/esp-idf/components/hal C:/Users/andre/OneDrive/Desktop/esp-idf/components/log C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader/subproject/main C:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader/subproject/components/micro-ecc C:/Users/andre/OneDrive/Desktop/esp-idf/components/newlib C:/Users/andre/OneDrive/Desktop/esp-idf/components/partition_table C:/Users/andre/OneDrive/Desktop/esp-idf/components/soc C:/Users/andre/OneDrive/Desktop/esp-idf/components/spi_flash C:/Users/andre/OneDrive/Desktop/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/build/bootloader
[446/982] Performing build step for 'bootloader'
[1/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/dac_periph.c.obj
[2/90] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[3/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[4/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/adc_periph.c.obj
[5/90] Generating project_elf_src_esp32s2.c
[6/90] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[7/90] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32s2.c.obj
[8/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj
[9/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/gpio_periph.c.obj
[10/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/dedic_gpio_periph.c.obj
[11/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/memory_layout_utils.c.obj
[12/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/ledc_periph.c.obj
[13/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/i2c_periph.c.obj
[14/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/interrupts.c.obj
[15/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/i2s_periph.c.obj
[16/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/soc_memory_layout.c.obj
[17/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/sigmadelta_periph.c.obj
[18/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/pcnt_periph.c.obj
[19/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/rmt_periph.c.obj
[20/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/timer_periph.c.obj
[21/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/spi_periph.c.obj
[22/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/touch_sensor_periph.c.obj
[23/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/rtc_io_periph.c.obj
[24/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/usb_periph.c.obj
[25/90] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s2/uart_periph.c.obj
[26/90] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32s2/spi_flash_rom_patch.c.obj
[27/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[28/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[29/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[30/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[31/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj
[32/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32s2.c.obj
[33/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[34/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[35/90] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[36/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[37/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[38/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32s2.c.obj
[39/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[40/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32s2.c.obj
[41/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[42/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[43/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[44/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[45/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[46/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s2/bootloader_soc.c.obj
[47/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s2/bootloader_sha.c.obj
[48/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[49/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[50/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s2/bootloader_esp32s2.c.obj
[51/90] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s2/flash_encrypt.c.obj
[52/90] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32s2/esp_efuse_utility.c.obj
[53/90] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[54/90] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32s2/esp_efuse_api.c.obj
[55/90] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[56/90] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[57/90] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32s2/esp_efuse_fields.c.obj
[58/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj
[59/90] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32s2/esp_efuse_rtc_table.c.obj
[60/90] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s2/esp_efuse_table.c.obj
[61/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s2/rtc_clk_init.c.obj
[62/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj
[63/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s2/rtc_sleep.c.obj
[64/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s2/rtc_clk.c.obj
[65/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s2/rtc_time.c.obj
[66/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s2/rtc_pm.c.obj
[67/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s2/rtc_wdt.c.obj
[68/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s2/rtc_init.c.obj
[69/90] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[70/90] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[71/90] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[72/90] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[73/90] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s2/regi2c_ctrl.c.obj
[74/90] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[75/90] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[76/90] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/esp32s2/usb_descriptors.c.obj
[77/90] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[78/90] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[79/90] Linking C static library esp-idf\log\liblog.a
[80/90] Linking C static library esp-idf\esp_rom\libesp_rom.a
[81/90] Linking C static library esp-idf\esp_hw_support\libesp_hw_support.a
[82/90] Linking C static library esp-idf\efuse\libefuse.a
[83/90] Linking C static library esp-idf\bootloader_support\libbootloader_support.a
[84/90] Linking C static library esp-idf\spi_flash\libspi_flash.a
[85/90] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a
[86/90] Linking C static library esp-idf\soc\libsoc.a
[87/90] Linking C static library esp-idf\hal\libhal.a
[88/90] Linking C static library esp-idf\main\libmain.a
[89/90] Linking C executable bootloader.elf
[90/90] Generating binary image from built executable
esptool.py v3.2-dev
Merged 1 ELF section
Generated C:/Users/andre/Projects/moddable/build/tmp/esp32/saola_wroom/debug/helloworld/xsProj-esp32s2/build/bootloader/bootloader.bin
[977/982] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj
ccache C:\Users\andre\.espressif\tools\xtensa-esp32s2-elf\esp-2021r2-8.4.0\xtensa-esp32s2-elf\bin\xtensa-esp32s2-elf-gcc.exe -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -Iconfig -IC:/Users/andre/Projects/moddable/xs/platforms/esp -IC:/Users/andre/Projects/moddable/xs/includes -IC:/Users/andre/Projects/moddable/modules/base/instrumentation -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/newlib/platform_include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/freertos/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/freertos/port/xtensa/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_hw_support/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_hw_support/port/esp32s2/. -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_hw_support/port/esp32s2/private_include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/heap/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/log/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/lwip/include/apps -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/lwip/include/apps/sntp -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/lwip/lwip/src/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/lwip/port/esp32/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/lwip/port/esp32/include/arch -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/soc/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/soc/esp32s2/. -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/soc/esp32s2/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/hal/esp32s2/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/hal/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/esp32s2 -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_rom/include/esp32s2 -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_common/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_system/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp32s2/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/driver/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/driver/esp32s2/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_ringbuf/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/efuse/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/efuse/esp32s2/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/xtensa/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/xtensa/esp32s2/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/espcoredump/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_timer/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_ipc/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_pm/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/vfs/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_wifi/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_wifi/esp32s2/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_event/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_netif/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_eth/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/tcpip_adapter/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/app_trace/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/mbedtls/port/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/mbedtls/esp_crt_bundle/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/app_update/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/spi_flash/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/bootloader_support/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/nvs_flash/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/pthread/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_gdbstub/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_gdbstub/xtensa -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_gdbstub/esp32s2 -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/wpa_supplicant/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/wpa_supplicant/port/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/wpa_supplicant/include/esp_supplicant -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/asio/asio/asio/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/asio/port/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/cbor/port/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/unity/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/unity/unity/src -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/cmock/CMock/src -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/coap/port/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/coap/port/include/coap -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/coap/libcoap/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/coap/libcoap/include/coap2 -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/console -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/nghttp/port/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/nghttp/nghttp2/lib/includes -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp-tls -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp-tls/esp-tls-crypto -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_adc_cal/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_hid/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/tcp_transport/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_http_client/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_http_server/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_https_ota/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/protobuf-c/protobuf-c -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/protocomm/include/common -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/protocomm/include/security -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/protocomm/include/transports -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/mdns/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_local_ctrl/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/sdmmc/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_serial_slave_link/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/esp_websocket_client/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/expat/expat/expat/lib -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/expat/port/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/wear_levelling/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/fatfs/diskio -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/fatfs/vfs -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/fatfs/src -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/freemodbus/common/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/idf_test/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/idf_test/include/esp32s2 -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/jsmn/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/json/cJSON -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/libsodium/libsodium/src/libsodium/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/libsodium/port_include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/mqtt/esp-mqtt/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/openssl/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/perfmon/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/spiffs/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/touch_element/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/ulp/include -IC:/Users/andre/OneDrive/Desktop/esp-idf/components/wifi_provisioning/include -mlongcalls -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Os -freorder-blocks -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3.2\" -DESP_PLATFORM -DmxDebug=1 -DDEBUGGER_SPEED=460800 -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\main.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj -c ../main/main.c
../main/main.c: In function 'setup':
../main/main.c:144:35: warning: passing argument 4 of 'ESP_cloneMachine' makes integer from pointer without a cast [-Wint-conversion]
gThe = ESP_cloneMachine(0, 0, 0, NULL);
^~~~
In file included from ../main/main.c:51:
C:/Users/andre/Projects/moddable/xs/platforms/esp/xsHost.h:255:20: note: expected 'uint32_t' {aka 'unsigned int'} but argument is of type 'void *'
extern xsMachine *ESP_cloneMachine(uint32_t allocation, uint32_t stack, uint32_t slotCount, uint32_t keyCount, const char *name);
^~~~~~~~~~~~~~~~
../main/main.c:144:9: error: too few arguments to function 'ESP_cloneMachine'
gThe = ESP_cloneMachine(0, 0, 0, NULL);
^~~~~~~~~~~~~~~~
In file included from ../main/main.c:51:
C:/Users/andre/Projects/moddable/xs/platforms/esp/xsHost.h:255:20: note: declared here
extern xsMachine *ESP_cloneMachine(uint32_t allocation, uint32_t stack, uint32_t slotCount, uint32_t keyCount, const char *name);
^~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
The system cannot find the file specified.
The system cannot find the file specified.
1 file(s) copied.
1 file(s) copied.
1 file(s) copied.
The system cannot find the file specified.
Launching app. Type Ctrl-C twice after debugging app to close serial2xsbug...
C:\Users\andre\Projects\moddable\tools\serial2xsbug\serial2xsbug_win.c(142): The parameter is incorrect.
NMAKE : fatal error U1077: 'C:\Users\andre\Projects\moddable\build\bin\win\release\serial2xsbug.EXE' : return code '0x1'
Stop.
C:\Users\andre\Projects\moddable\examples\helloworld>
C:\Users\andre\Projects\moddable\examples\helloworld>
Activity
andycarle commentedon Jan 4, 2022
Hi @js4iot, I'm sorry to hear that you're having trouble building. Let's see if we can get it sorted out.
Saola is an ESP32-S2 based development board. The generic Wroom you linked to is based on the ESP32, not the ESP32-S2 (which is a different MCU).
I'd suggest trying again with just the
esp32platform. So, your build command would be:Please give that a shot and let me know how it goes with your dev board.
- Andy
js4iot commentedon Jan 4, 2022
Thanks, I tried just "esp32" and I got a bit further but still got some errors. This is the bottom of the output:
I am running a Windows 10 virtual machine inside a Windows 10 computer because I want to test the install scripts before I make modifications to my original computer.
I do have a device in COM3, I can actually communicate to it (from inside the VM) using PuTTY and see the console.log() statements generated by an existing Espruino application I have on that board.
js4iot commentedon Jan 4, 2022
I tried executing this statement
set UPLOAD_PORT=COM3beforemcconfig -d -m -p esp32and I go slightly different output but basically the same error:js4iot commentedon Jan 4, 2022
OK, so I tried something else... as soon as I see the
Connecting............message, I pressed and released theBOOTbutton and I got a different error (maybe better). This is what I am getting now:js4iot commentedon Jan 4, 2022
OK, so I tried adding this line
set UPLOAD_SPEED=115200and I got a bit farther, but still no luck...At this moment, I do not have any useful information as to what the error could be, so I am giving up. Any help, will be appreciated.
Frida854 commentedon Jan 4, 2022
What about to erase the chip, it sometimes help, if there have been another program on it.
try:
js4iot commentedon Jan 4, 2022
I will try this.
Question. If I erase the chip, I guess it's like
format c:, how do I get the OS back? Or whatever raw files it needs? Will the mcconfig mount that?Frida854 commentedon Jan 4, 2022
Yes after erase, you can use mcconfig again.
js4iot commentedon Jan 4, 2022
OK, so I did
esptool.py --port %UPLOAD_PORT% --baud=%UPLOAD_SPEED% erase_flashand thenmcconfig -d -m -p esp32. This is the output, I think the same output as this morning.js4iot commentedon Jan 4, 2022
Unfortunately, it's not telling me which parameter is incorrect so I do not have much to chew on :-)
Frida854 commentedon Jan 4, 2022
I have a esp32-pico-kit and it is working and a moddable_two.
Have you tried to run xsbug in a cmd prompt? Does it open?
I am running on a new windows 11.
andycarle commentedon Jan 4, 2022
The good news is that it appears that your build is working correctly now and that your app is successfully being flashed to the ESP32. The failure appears to be with the debugging connection—It looks like there's a problem opening that connection to your dev board at the specified baud rate.
Try setting one more environment variable:
That will configure the debugger to run at 115200, the same as you're successfully programming the device at.
You may have to do a clean build to get this to work correctly. The most thorough clean would be to simply delete the
%MODDABLE%\build\bin\esp32and%MODDABLE%\build\tmp\esp32directories, after closing xsbug.js4iot commentedon Jan 4, 2022
@Frida854 I opened xsbug from the command prompt and it opened a GUI application (see screenshot). I do not have a way to start it because the options are grayed out
.
js4iot commentedon Jan 4, 2022
I had a good feeling because I was making progress, but now I think that I trashed my ESP32 board. Now it goes into an infinite loop...
andycarle commentedon Jan 4, 2022
I'll think we'll be able to get you and your board recovered from this; I think it's just trying to boot a fully erased flash at the moment.
The build error you're getting now is one I'm familiar with: you're hitting a Windows path length limit for CCACHE in the ESP-IDF build. You can work around that by creating an output directory with a short path name (I recommend something simple like
C:\out\and then building to it using the-oflag formcconfig.This is a real and annoying issue that comes up a lot with ESP-IDF builds even outside the Moddable ecosystem. But I would love to find a more automatic workaround for our developers...
js4iot commentedon Jan 5, 2022
I am building a course for developers that I am calling "Introduction to IoT with microcontrollers using JavaScript" so I have researched many different platforms like Espruino, Moddable, Mongoose, Low.js, J5e, etc.
One of those tools asks you to build the code in
C:\ESP32folder, but moddable asks you to build it in "C:\Users\andres\Projects", which is definitely a lot more characters. Maybe it could be as simple as changing the instructions where this should be built :-)I really like Espruino because it's very simple to install and use but it has a major issue is that it does not fully support the current versions of JavaScript. That is why I want to use Moddable SDK, but I have found the installation will require a full course on its own :-)
andycarle commentedon Jan 5, 2022
Well, I appreciate your working through the issues here with us. We continuously update our Getting Started guides based on feedback we receive here, on Gitter, etc.
The majority of our developers do their work on macOS, so the Windows instructions and procedure have historically lagged a bit behind. I'm very open to suggestions on how to improve the process on Windows and would be delighted to work with you on implementing any ideas you have.
js4iot commentedon Jan 5, 2022
@andycarle I am taking good notes of the process to install this in Windows and I will love to help out improving the instructions provided. I have a few ideas that I could share later.
I am even thinking about reviewing the work done by @HipsterBrown using ZX (https://github.com/HipsterBrown/xs-setup) but adapting it to Windows. I first must understand the process and get this darn Hello World working :-)
js4iot commentedon Jan 5, 2022
@andycarle earlier you asked me to erase the flash from ESP32 using this
esptool.py --port COM3 --baud 115200 erase_flash. That may have been working out but it froze my computer (the virtual machine) and I have to kill it before I can move any further.Now that I am redirecting to C:\ESP32.out seems to be doing something similar... it gets this far and then the VM crashes. It stops responding and I have to shut it down ("unplug it") and restart it.
HipsterBrown commentedon Jan 5, 2022
@js4iot I'd like to include Windows support in
xs-setup, so please reach out when you're working on automating it. There's some planned refactoring for that tool to make it more platform-agnostic and maintainable now that the concept has been prototyped usingzx.I'm guessing this discussion might be why @phoddie reached out about prebuilding Moddable binaries 😄
js4iot commentedon Jan 6, 2022
Let me try to get this installed first on Windows manually. So far I have had nothing but problems ;-(
andycarle commentedon Jan 7, 2022
I think that was @Frida854, but I would have recommended something similar eventually. 😃
Hmm. If
esptool.pyis crashing your VM, that's going to be a problem for any ESP32 tools running in that VM, not just the Moddable SDK.Can you try building and deploying with the ESP-IDF directly to verify that is working as expected? The easiest thing to test would be to just do:
Can you give that a try and report back? For reference, here's my complete build output from that in a gist.
phoddie commentedon Jan 7, 2022
Moving to discussion, as this isn't a report of a specific issue.