Open mauroForlimpopoli opened 1 month ago
Sorry, maybe my migration is too complicated to affront it in this way. So I tried to inset one piece at a time. So in this way I have the follow problems: 1)
const iconBar = Image.template($ => ({
path: $,
}));
debugger: C:\Users\mades\projects\moddable\examples\piu\six\assets.js (472) # Break: assets: get Image: undefined variable! 2) These 3 imports
import OTA from "esp32/ota";
or
import OTA from "ota";
I followed the instruction of "contributed/modClock/update.js" or "examples/network/http/httpota/main.js" but i get the error "# Break: (host): module "esp32/ota" not found!" or "# Break: (host): module "ota" not found!" What can I do? Regards
@mauroForlimpopoli, can you confirm that the application works on Moddable Two?
this is the error compiling the example "HTTP OTA"
In file included from C:\Users\mades\Projects\moddable\build\devices\esp32\modules\ota\ota.c:23:
C:\Users\mades\esp32\esp-idf\components/app_update/include/esp_ota_ops.h:16:10: fatal error: esp_bootloader_desc.h: No such file or directory
16 | #include "esp_bootloader_desc.h"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
this is the error compiling the example "HTTP OTA"
That was resolved by this commit yesterday.
Did the Piu Image example work for you?
the "OTA" now works. This is the error for "Piu Image"
[95/965] Building C object esp-idf/mbedtls/mbedtls/library...edtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c.obj
FAILED: esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/C_/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c.obj
ccache C:\Esp32\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin\xtensa-esp32s3-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\"v5.2.2\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -IC:/Users/mades/projects/moddable/build/tmp/esp32/moddable_six_cdc/debug/images/xsProj-esp32s3/build/config -IC:/Users/mades/esp32/esp-idf/components/mbedtls/port/include -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/library -IC:/Users/mades/projects/moddable/build/tmp/esp32/moddable_six_cdc/debug/images/xsProj-esp32s3/build/esp-idf/mbedtls/mbedtls/library -IC:/Users/mades/esp32/esp-idf/components/mbedtls/port/sha/dma/include -IC:/Users/mades/esp32/esp-idf/components/mbedtls/port/aes/dma/include -IC:/Users/mades/esp32/esp-idf/components/newlib/platform_include -IC:/Users/mades/esp32/esp-idf/components/freertos/config/include -IC:/Users/mades/esp32/esp-idf/components/freertos/config/include/freertos -IC:/Users/mades/esp32/esp-idf/components/freertos/config/xtensa/include -IC:/Users/mades/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/mades/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/mades/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -IC:/Users/mades/esp32/esp-idf/components/freertos/esp_additions/include -IC:/Users/mades/esp32/esp-idf/components/esp_hw_support/include -IC:/Users/mades/esp32/esp-idf/components/esp_hw_support/include/soc -IC:/Users/mades/esp32/esp-idf/components/esp_hw_support/include/soc/esp32s3 -IC:/Users/mades/esp32/esp-idf/components/esp_hw_support/port/esp32s3/. -IC:/Users/mades/esp32/esp-idf/components/heap/include -IC:/Users/mades/esp32/esp-idf/components/log/include -IC:/Users/mades/esp32/esp-idf/components/soc/include -IC:/Users/mades/esp32/esp-idf/components/soc/esp32s3 -IC:/Users/mades/esp32/esp-idf/components/soc/esp32s3/include -IC:/Users/mades/esp32/esp-idf/components/hal/platform_port/include -IC:/Users/mades/esp32/esp-idf/components/hal/esp32s3/include -IC:/Users/mades/esp32/esp-idf/components/hal/include -IC:/Users/mades/esp32/esp-idf/components/esp_rom/include -IC:/Users/mades/esp32/esp-idf/components/esp_rom/include/esp32s3 -IC:/Users/mades/esp32/esp-idf/components/esp_rom/esp32s3 -IC:/Users/mades/esp32/esp-idf/components/esp_common/include -IC:/Users/mades/esp32/esp-idf/components/esp_system/include -IC:/Users/mades/esp32/esp-idf/components/esp_system/port/soc -IC:/Users/mades/esp32/esp-idf/components/esp_system/port/include/private -IC:/Users/mades/esp32/esp-idf/components/xtensa/esp32s3/include -IC:/Users/mades/esp32/esp-idf/components/xtensa/include -IC:/Users/mades/esp32/esp-idf/components/xtensa/deprecated_include -IC:/Users/mades/esp32/esp-idf/components/lwip/include -IC:/Users/mades/esp32/esp-idf/components/lwip/include/apps -IC:/Users/mades/esp32/esp-idf/components/lwip/include/apps/sntp -IC:/Users/mades/esp32/esp-idf/components/lwip/lwip/src/include -IC:/Users/mades/esp32/esp-idf/components/lwip/port/include -IC:/Users/mades/esp32/esp-idf/components/lwip/port/freertos/include -IC:/Users/mades/esp32/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/mades/esp32/esp-idf/components/lwip/port/esp32xx/include/arch -IC:/Users/mades/esp32/esp-idf/components/lwip/port/esp32xx/include/sys -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -mlongcalls -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -Wall -Wextra -Wwrite-strings -Wformat=2 -Wno-format-nonliteral -Wvla -Wlogical-op -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Werror -Wmissing-declarations -Wmissing-prototypes -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Os -freorder-blocks -fmacro-prefix-map=C:/Users/mades/projects/moddable/build/tmp/esp32/moddable_six_cdc/debug/images/xsProj-esp32s3=. -fmacro-prefix-map=C:/Users/mades/esp32/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/C_/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c.obj -MF esp-idf\mbedtls\mbedtls\library\CMakeFiles\mbedcrypto.dir\C_\Users\mades\esp32\esp-idf\components\mbedtls\port\crypto_shared_gdma\esp_crypto_shared_gdma.c.obj.d -o esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/C_/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c.obj -c C:/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c
C:/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c:149:1: fatal error: opening dependency file esp-idf\mbedtls\mbedtls\library\CMakeFiles\mbedcrypto.dir\C_\Users\mades\esp32\esp-idf\components\mbedtls\port\crypto_shared_gdma\esp_crypto_shared_gdma.c.obj.d: No such file or directory
149 | }
| ^
compilation terminated.
[100/965] Building C object esp-idf/mbedtls/mbedtls/librar...sp32/esp-idf/components/mbedtls/port/aes/dma/esp_aes.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the C:\Users\mades\projects\moddable\build\tmp\esp32\moddable_six_cdc\debug\images\xsProj-esp32s3\build\log\idf_py_stderr_output_11124 and C:\Users\mades\projects\moddable\build\tmp\esp32\moddable_six_cdc\debug\images\xsProj-esp32s3\build\log\idf_py_stdout_output_11124
Launching app...
Type Ctrl-C twice after debugging app.
@mauroForlimpopoli, it is strange.
For the example piu/images
, I can build and deploy from a Windows host.
Can you try building clean first? That is: mcconfig -d -m -p esp32/moddable_six_cdc -t clean
followed by a normal build.
mow this is the error
[100/965] Building C object esp-idf/mbedtls/mbedtls/librar...edtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c.obj
FAILED: esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/C_/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c.obj
ccache C:\Esp32\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin\xtensa-esp32s3-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\"v5.2.2\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -IC:/Users/mades/projects/moddable/build/tmp/esp32/moddable_six_cdc/debug/images/xsProj-esp32s3/build/config -IC:/Users/mades/esp32/esp-idf/components/mbedtls/port/include -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/library -IC:/Users/mades/projects/moddable/build/tmp/esp32/moddable_six_cdc/debug/images/xsProj-esp32s3/build/esp-idf/mbedtls/mbedtls/library -IC:/Users/mades/esp32/esp-idf/components/mbedtls/port/sha/dma/include -IC:/Users/mades/esp32/esp-idf/components/mbedtls/port/aes/dma/include -IC:/Users/mades/esp32/esp-idf/components/newlib/platform_include -IC:/Users/mades/esp32/esp-idf/components/freertos/config/include -IC:/Users/mades/esp32/esp-idf/components/freertos/config/include/freertos -IC:/Users/mades/esp32/esp-idf/components/freertos/config/xtensa/include -IC:/Users/mades/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/mades/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/mades/esp32/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -IC:/Users/mades/esp32/esp-idf/components/freertos/esp_additions/include -IC:/Users/mades/esp32/esp-idf/components/esp_hw_support/include -IC:/Users/mades/esp32/esp-idf/components/esp_hw_support/include/soc -IC:/Users/mades/esp32/esp-idf/components/esp_hw_support/include/soc/esp32s3 -IC:/Users/mades/esp32/esp-idf/components/esp_hw_support/port/esp32s3/. -IC:/Users/mades/esp32/esp-idf/components/heap/include -IC:/Users/mades/esp32/esp-idf/components/log/include -IC:/Users/mades/esp32/esp-idf/components/soc/include -IC:/Users/mades/esp32/esp-idf/components/soc/esp32s3 -IC:/Users/mades/esp32/esp-idf/components/soc/esp32s3/include -IC:/Users/mades/esp32/esp-idf/components/hal/platform_port/include -IC:/Users/mades/esp32/esp-idf/components/hal/esp32s3/include -IC:/Users/mades/esp32/esp-idf/components/hal/include -IC:/Users/mades/esp32/esp-idf/components/esp_rom/include -IC:/Users/mades/esp32/esp-idf/components/esp_rom/include/esp32s3 -IC:/Users/mades/esp32/esp-idf/components/esp_rom/esp32s3 -IC:/Users/mades/esp32/esp-idf/components/esp_common/include -IC:/Users/mades/esp32/esp-idf/components/esp_system/include -IC:/Users/mades/esp32/esp-idf/components/esp_system/port/soc -IC:/Users/mades/esp32/esp-idf/components/esp_system/port/include/private -IC:/Users/mades/esp32/esp-idf/components/xtensa/esp32s3/include -IC:/Users/mades/esp32/esp-idf/components/xtensa/include -IC:/Users/mades/esp32/esp-idf/components/xtensa/deprecated_include -IC:/Users/mades/esp32/esp-idf/components/lwip/include -IC:/Users/mades/esp32/esp-idf/components/lwip/include/apps -IC:/Users/mades/esp32/esp-idf/components/lwip/include/apps/sntp -IC:/Users/mades/esp32/esp-idf/components/lwip/lwip/src/include -IC:/Users/mades/esp32/esp-idf/components/lwip/port/include -IC:/Users/mades/esp32/esp-idf/components/lwip/port/freertos/include -IC:/Users/mades/esp32/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/mades/esp32/esp-idf/components/lwip/port/esp32xx/include/arch -IC:/Users/mades/esp32/esp-idf/components/lwip/port/esp32xx/include/sys -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -IC:/Users/mades/esp32/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -mlongcalls -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -Wall -Wextra -Wwrite-strings -Wformat=2 -Wno-format-nonliteral -Wvla -Wlogical-op -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Werror -Wmissing-declarations -Wmissing-prototypes -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Os -freorder-blocks -fmacro-prefix-map=C:/Users/mades/projects/moddable/build/tmp/esp32/moddable_six_cdc/debug/images/xsProj-esp32s3=. -fmacro-prefix-map=C:/Users/mades/esp32/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/C_/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c.obj -MF esp-idf\mbedtls\mbedtls\library\CMakeFiles\mbedcrypto.dir\C_\Users\mades\esp32\esp-idf\components\mbedtls\port\crypto_shared_gdma\esp_crypto_shared_gdma.c.obj.d -o esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/C_/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c.obj -c C:/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c
C:/Users/mades/esp32/esp-idf/components/mbedtls/port/crypto_shared_gdma/esp_crypto_shared_gdma.c:149:1: fatal error: opening dependency file esp-idf\mbedtls\mbedtls\library\CMakeFiles\mbedcrypto.dir\C_\Users\mades\esp32\esp-idf\components\mbedtls\port\crypto_shared_gdma\esp_crypto_shared_gdma.c.obj.d: No such file or directory
149 | }
| ^
compilation terminated.
[105/965] Building C object esp-idf/mbedtls/mbedtls/librar...32/esp-idf/components/mbedtls/port/bignum/bignum_alt.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the C:\Users\mades\projects\moddable\build\tmp\esp32\moddable_six_cdc\debug\images\xsProj-esp32s3\build\log\idf_py_stderr_output_4936 and C:\Users\mades\projects\moddable\build\tmp\esp32\moddable_six_cdc\debug\images\xsProj-esp32s3\build\log\idf_py_stdout_output_4936
Launching app...
Type Ctrl-C twice after debugging app.
The error looks about the same.
Are there any changes made to your $MODDABLE
tree? ie. cd $MODDABLE; git diff
@mauroForlimpopoli – were if you able to get past this issue?
Not resolved, At the moment I used new Content rather than new Image......
I used new Content rather than new Image......
That cannot possibly have resolved the compilation error. How did you resolve the compilation error above?
I did not more test with new Image.....
Now I have a problem including the Onewire driver. By running the demo version I got this error
In file included from C:\Users\mades\Projects\moddable\modules\drivers\onewire\esp\modonewire.c:34:
C:\Users\mades\Projects\moddable\modules\drivers\onewire\esp\owb_rmt.h:34:10: fatal error: driver/rmt.h: No such file or directory
34 | #include "driver/rmt.h"
| ^~~~~~~~~~~~~~
compilation terminated.
When I run my project this is the error
FAILED: xs_esp32.elf
cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin\xtensa-esp32s3-elf-g++.exe -mlongcalls -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32S3=0 -Wl,--Map=C:/Users/mades/projects/moddable/build/tmp/esp32/moddable_six_cdc/debug/six/xsProj-esp32s3/build/xs_esp32.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32s3.peripherals.ld -T esp32s3.rom.ld -T esp32s3.rom.api.ld -T esp32s3.rom.libgcc.ld -T esp32s3.rom.newlib.ld -T esp32s3.rom.version.ld -T memory.ld -T sections.ld @CMakeFiles\xs_esp32.elf.rsp -o xs_esp32.elf && cd ."
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):C:\Users\mades\Projects\moddable\build\tmp\esp32\moddable_six_cdc\debug\six/mc.xs.c:10184:(.rodata.gxBuilders31+0x0): undefined reference to `xs_onewire_destructor'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxBuilders31+0xc): undefined reference to `xs_onewire'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxBuilders31+0x18): undefined reference to `xs_onewire_close'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxBuilders31+0x24): undefined reference to `xs_onewire_read'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxBuilders31+0x30): undefined reference to `xs_onewire_write'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxBuilders31+0x3c): undefined reference to `xs_onewire_select'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxBuilders31+0x48): undefined reference to `xs_onewire_search'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxBuilders31+0x54): undefined reference to `xs_onewire_isPresent'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxBuilders31+0x60): undefined reference to `xs_onewire_reset'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxBuilders31+0x6c): undefined reference to `xs_onewire_crc'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxHeap+0x1fef8): undefined reference to `xs_onewire'
C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: xs_esp32s3.a(mc.xs.o):(.rodata.gxHeap+0x2229c): undefined reference to `xs_onewire_destructor'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the C:\Users\mades\projects\moddable\build\tmp\esp32\moddable_six_cdc\debug\six\xsProj-esp32s3\build\log\idf_py_stderr_output_14072 and C:\Users\mades\projects\moddable\build\tmp\esp32\moddable_six_cdc\debug\six\xsProj-esp32s3\build\log\idf_py_stdout_output_14072
this is my complete manifest
{
"include": [
"$(MODDABLE)/examples/manifest_base.json",
"$(MODDABLE)/examples/manifest_piu.json",
"$(MODULES)/input/keyboard/manifest.json",
"$(MODDABLE)/modules/files/file/manifest.json",
"$(MODULES)/pins/analog/manifest.json",
"$(MODULES)/network/wifi/manifest.json",
"$(MODDABLE)/examples/manifest_net.json",
"$(MODDABLE)/modules/network/ble/manifest_server.json",
"$(MODDABLE)/modules/io/manifest.json",
"$(MODDABLE)/modules/network/ble/manifest_client.json",
"$(MODDABLE)/modules/drivers/peripherals/ds1307/manifest.json",
"$(MODDABLE)/modules/drivers/rtc/manifest.json",
"$(MODULES)/pins/i2c/manifest.json",
"$(MODULES)/network/http/manifest.json",
"$(MODDABLE)/modules/files/preference/manifest.json",
"$(MODDABLE)/modules/files/flash/manifest.json"
],
"creation":{
"stack":500
},
"modules": {
"pins/smbus": "$(MODULES)/pins/smbus/smbus",
"*": [
"./main",
"./assets",
"$(MODULES)/input/keyboard/*",
"$(MODULES)/files/flash/*",
"$(MODULES)/network/http/*",
"$(MODULES)/network/wifi/*",
"./funcSleep",
"$(MODULES)/network/sntp/*",
"$(MODULES)/drivers/neopixel/*",
"$(MODULES)/drivers/neopixel/esp32/*",
"$(MODULES)/drivers/rtc/rtc",
"$(MODULES)/drivers/rtc/ds1307",
"$(MODULES)/drivers/onewire/*"
]
},
"resources":{
"*-alpha": [
"$(MODDABLE)/examples/assets/fonts/OpenSans-Semibold-18",
"$(MODDABLE)/examples/assets/fonts/OpenSans-Regular-20",
"$(MODDABLE)/examples/assets/fonts/arial20",
"$(MODDABLE)/examples/assets/fonts/arial32",
"$(MODDABLE)/examples/assets/fonts/OpenSans-Semibold-28",
"$(MODDABLE)/examples/assets/fonts/impact64",
"$(MODDABLE)/examples/assets/fonts/futura"
],
"*-image(50)": [
"$(MODDABLE)/examples/assets/images/Bluetooth-icon",
"$(MODDABLE)/examples/assets/images/Wifi-icon",
"$(MODDABLE)/examples/assets/images/unlock-icon",
"$(MODDABLE)/examples/assets/images/lock-icon",
"$(MODDABLE)/examples/assets/images/down-icon",
"$(MODDABLE)/examples/assets/images/memory-icon",
"$(MODDABLE)/examples/assets/images/sun-icon",
"$(MODDABLE)/examples/assets/images/moon-icon",
"$(MODDABLE)/examples/assets/images/rs232-icon",
"./assets/logo",
"./assets/qrcode_google"
],
"*-mask": [
"$(MODDABLE)/examples/assets/images/thermometer-mask",
"$(MODDABLE)/examples/assets/images/battery-mask",
"$(MODDABLE)/examples/assets/images/switch-mask" ,
"$(MODDABLE)/examples/assets/images/option-mask" ,
"./assets/lock-icon-mask",
"./assets/unlock-icon-mask",
"./assets/down-icon-mask",
"./assets/memory-icon-mask",
"./assets/moon-icon-mask",
"./assets/rs232-icon-mask",
"./assets/sun-icon-mask",
"./assets/battery-icon-mask",
"./assets/Bluetooth-icon-mask",
"./assets/Wifi-icon-mask",
"./assets/led_on-disc-mask",
"./assets/switch_off-mask",
"./assets/switch_on-glyph-mask",
"./assets/attendere",
"./assets/print",
"./assets/downCloud",
"./assets/one100",
"./assets/one100E"
],
"*": [
"./assets/print-icon",
"./assets/sms2-icon",
"./assets/opts-icon",
"./assets/menuIcon"
]
},
"preload": [
"neopixel",
"http",
"sntp",
"file",
"pins/analog",
"ble",
"preference",
"flash",
"keyboard",
"time",
"timer",
"funcSleep",
"wifi",
"keyboard",
"assets",
"ds1307",
"rtc",
"smbus",
"onewire",
"DS18X20"
],
"platforms": {
"esp": {
"config": {
"rotation": 90
}
},
"esp32": {
"config": {
"rotation": 90,
"brightness": "off",
"file": {
"root": "/mod/"
},
"onewire": {
"pin": "16"
}
},
"defines": {
"ls013b4dn04": {
"dither": 1,
"updateAll": 1
},
"onewire": {
"driver_rmt": "RMT",
"rmt_rx_channel": "RMT_CHANNEL_2",
"rmt_tx_channel": "RMT_CHANNEL_3"
}
},
"include": [
"$(MODULES)/pins/digital/manifest.json"
],
"modules": {
"*": [
"$(MODULES)/files/flash/*",
"$(MODULES)/files/flash/esp32/*",
"$(MODULES)/drivers/onewire/esp/*"
]
},
"build": {
"PARTITIONS_FILE": "./sdkconfig/partitions.csv"
},"modules": {
"ota": "$(BUILD)/devices/esp32/modules/ota/*"
},
"preload": "ota"
}
},
"ble":{
"*": [
"./bleservices/*",
"./bleservicesCli/*"
]
}
}
Can you help me ?
... P.S: Changing "$(MODULES)/drivers/onewire/" in "$(MODULES)/drivers/onewire/sim/" the error above desappear, but the xbug give this error # Break: (host): module "onewire" not found!
I have another error from the Xsbug. this : import DS18X20 from "DS18X20"; give me this error:
I'm migrating from Moddable two to six.
I updated all the software for the build and I tried the led-color example in the directory "moddable six" and it works. (but only in the USB programming). So I tried to compile my old program (changing some little things) but I get this error. How can I solve? I'm using windows11 regards