Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32S3 can no longer be debugged on Windows. #1299

Open
NW-Lab opened this issue Jan 29, 2024 · 6 comments
Open

ESP32S3 can no longer be debugged on Windows. #1299

NW-Lab opened this issue Jan 29, 2024 · 6 comments

Comments

@NW-Lab
Copy link
Contributor

NW-Lab commented Jan 29, 2024

hello

The program and xsbug will no longer be able to communicate on Windows.
It was probably used until around November.
The esp32s3 devices I have confirmed are esp32/m5atom_s3 and esp32/m5dial.
example/helloworld doesn't work.
The piu/balls screen is displayed, so the program seems to be running.
It is unclear whether it was when ESP-IDF was changed to v5.1.2 or when Moddable was updated.
It works fine with ESP32 (esp32/m5atom_matrix).

Console seems correct.

c:\pjt\moddable\examples\helloworld>mcconfig -d -m -p esp32/m5atom_s3
情報: 与えられたパターンのファイルが見つかりませんでした。
Setting PYTHONNOUSERSITE, was not set
Using Python in C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\
Python 3.11.2
Using Git in C:\Espressif\tools\idf-git\2.39.2\cmd\
git version 2.39.2.windows.1
Checking Python compatibility
Setting IDF_PATH: C:\Espressif\frameworks\esp-idf-v5.1.2

Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.27.2.
Not using an unsupported version of tool ninja found in PATH: 1.11.0.
    C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin
    C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin
    C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin
    C:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin
    C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin
    C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin
    C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin
    C:\Espressif\tools\cmake\3.24.0\bin
    C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin
    C:\Espressif\tools\ninja\1.10.2\
    C:\Espressif\tools\idf-exe\1.0.3\
    C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64
    C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64
    C:\Espressif\frameworks\esp-idf-v5.1.2\tools

Checking if Python packages are up to date...
Constraint file: C:\Espressif\espidf.constraints.v5.1.txt
Requirement files:
 - C:\Espressif\frameworks\esp-idf-v5.1.2\tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe
Python requirements are satisfied.

Detected installed tools that are not currently used by active ESP-IDF version.
For removing old versions of idf-driver, idf-python-wheels use command 'python.exe C:\Espressif\frameworks\esp-idf-v5.1.2\tools\idf_tools.py uninstall'
For free up even more space, remove installation packages of those tools. Use option 'python.exe C:\Espressif\frameworks\esp-idf-v5.1.2\tools\idf_tools.py uninstall --remove-archives'.


Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

Using recommended ESP-IDF v5.1.2
        1 個のファイルをコピーしました。
        1 個のファイルをコピーしました。
        1 個のファイルをコピーしました。
Reconfiguring ESP-IDF...
Executing action: reconfigure
Running cmake in directory C:\pjt\moddable\build\tmp\esp32\m5atom_s3\debug\helloworld\xsProj-esp32s3\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DSDKCONFIG_DEFAULTS=c:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/sdkconfig.mc -DSDKCONFIG_HEADER=c:\pjt\moddable\build\tmp\esp32\m5atom_s3\debug\helloworld\xsProj-esp32s3\build\config\sdkconfig.h -DCMAKE_MESSAGE_LOG_LEVEL=ERROR -DDEBUGGER_SPEED=115200 -DIDF_TARGET=esp32s3 -DESP32_SUBCLASS=esp32s3 -DSDKCONFIG_DEFAULTS=c:\pjt\moddable\build\tmp\esp32\m5atom_s3\debug\helloworld\xsProj-esp32s3\sdkconfig.mc -DCCACHE_ENABLE=1 C:\pjt\moddable\build\tmp\esp32\m5atom_s3\debug\helloworld\xsProj-esp32s3"...
Loading defaults file C:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/sdkconfig.mc...
C:\Users\tauchi\AppData\Local\Temp\kconfgen_tmpvpfjb7w0:504 line was updated to CONFIG_ESP_SYSTEM_PANIC_GDBSTUB=n
C:\Users\tauchi\AppData\Local\Temp\kconfgen_tmpvpfjb7w0:585 line was updated to CONFIG_ESP_COREDUMP_ENABLE_TO_UART=n
C:\Users\tauchi\AppData\Local\Temp\kconfgen_tmpvpfjb7w0:590 line was updated to CONFIG_ESP_COREDUMP_ENABLE=n
-- Configuring done
-- Generating done
-- Build files have been written to: C:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/build
        1 個のファイルをコピーしました。
# ld xs_esp32.bin
        1 個のファイルをコピーしました。
        1 個のファイルをコピーしました。
Executing action: all (aliases: build)
Running ninja in directory C:\pjt\moddable\build\tmp\esp32\m5atom_s3\debug\helloworld\xsProj-esp32s3\build
Executing "ninja all"...
[0/1] Re-running CMake...-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file C:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/sdkconfig
Compiler supported targets: xtensa-esp32s3-elf

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- App "bootloader" version: v5.1.2-dirty
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader_support C:/Espressif/frameworks/esp-idf-v5.1.2/components/efuse C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_app_format C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_common C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hw_support C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system C:/Espressif/frameworks/esp-idf-v5.1.2/components/esptool_py C:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos C:/Espressif/frameworks/esp-idf-v5.1.2/components/hal C:/Espressif/frameworks/esp-idf-v5.1.2/components/log C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader/subproject/main C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader/subproject/components/micro-ecc C:/Espressif/frameworks/esp-idf-v5.1.2/components/newlib C:/Espressif/frameworks/esp-idf-v5.1.2/components/partition_table C:/Espressif/frameworks/esp-idf-v5.1.2/components/soc C:/Espressif/frameworks/esp-idf-v5.1.2/components/spi_flash C:/Espressif/frameworks/esp-idf-v5.1.2/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/build/bootloader
[1/1] cmd.exe /C "cd /D C:\pjt\moddable\build\tmp\esp32\m5...helloworld/xsProj-esp32s3/build/bootloader/bootloader.bin"Bootloader binary size 0x2fd0 bytes. 0x5030 bytes (63%) free.
[4/5] Generating binary image from built executableesptool.py v4.7.dev3
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated C:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/build/xs_esp32.bin
[5/5] cmd.exe /C "cd /D C:\pjt\moddable\build\tmp\esp32\m5...tom_s3/debug/helloworld/xsProj-esp32s3/build/xs_esp32.bin"xs_esp32.bin binary size 0x72be0 bytes. Smallest app partition is 0x7e0000 bytes. 0x76d420 bytes (94%) free.
Executing action: flash
Serial port COM9
Connecting...
Detecting chip type... ESP32-S3
Running ninja in directory C:\pjt\moddable\build\tmp\esp32\m5atom_s3\debug\helloworld\xsProj-esp32s3\build
Executing "ninja flash"...
[1/5] cmd.exe /C "cd /D C:\pjt\moddable\build\tmp\esp32\m5atom_s3\debug\helloworld\xsProj-esp32s3\build\esp-idf\esptool_py && C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.1.2/components/partition_table/check_sizes.py --offset 0x8000 partition --type app C:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/build/partition_table/partition-table.bin C:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/build/xs_esp32.bin"
xs_esp32.bin binary size 0x72be0 bytes. Smallest app partition is 0x7e0000 bytes. 0x76d420 bytes (94%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\pjt\moddable\build\tmp\esp32\m5atom_s3\debug\helloworld\xsProj-esp32s3\build\bootloader\esp-idf\esptool_py && C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.1.2/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/build/bootloader/bootloader.bin"
Bootloader binary size 0x2fd0 bytes. 0x5030 bytes (63%) free.
[2/3] cmd.exe /C "cd /D C:\Espressif\frameworks\esp-idf-v5.1.2\components\esptool_py && C:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=C:/Espressif/frameworks/esp-idf-v5.1.2 -D SERIAL_TOOL=C:/Espressif/python_env/idf5.1_py3.11_env/Scripts/python.exe;;C:/Espressif/frameworks/esp-idf-v5.1.2/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=C:/pjt/moddable/build/tmp/esp32/m5atom_s3/debug/helloworld/xsProj-esp32s3/build -P C:/Espressif/frameworks/esp-idf-v5.1.2/components/esptool_py/run_serial_tool.cmake"
esptool.py --chip esp32s3 -p COM9 -b 921600 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 8MB 0x0 bootloader/bootloader.bin 0x10000 xs_esp32.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.7.dev3
Serial port COM9
Connecting...
Chip is ESP32-S3 (QFN56) (revision v0.1)
Features: WiFi, BLE, Embedded Flash 8MB (GD)
Crystal is 40MHz
MAC: dc:54:75:c8:95:0c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00002fff...
Flash will be erased from 0x00010000 to 0x00082fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 12240 bytes to 8896...
Writing at 0x00000000... (100 %)
Wrote 12240 bytes (8896 compressed) at 0x00000000 in 0.3 seconds (effective 356.1 kbit/s)...
Hash of data verified.
Compressed 469984 bytes to 274425...
Writing at 0x00010000... (5 %)
Writing at 0x0001ac70... (11 %)
Writing at 0x00023f49... (17 %)
Writing at 0x0002da95... (23 %)
Writing at 0x00032fcc... (29 %)
Writing at 0x00038805... (35 %)
Writing at 0x0003e62c... (41 %)
Writing at 0x000443ac... (47 %)
Writing at 0x0004a6aa... (52 %)
Writing at 0x000514a6... (58 %)
Writing at 0x0005696b... (64 %)
Writing at 0x0005ce52... (70 %)
Writing at 0x000623c2... (76 %)
Writing at 0x00068011... (82 %)
Writing at 0x0007068c... (88 %)
Writing at 0x0007875d... (94 %)
Writing at 0x0007e171... (100 %)
Wrote 469984 bytes (274425 compressed) at 0x00010000 in 3.8 seconds (effective 978.7 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 83...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (83 compressed) at 0x00008000 in 0.1 seconds (effective 226.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Done
Launching app...
Type Ctrl-C twice after debugging app.
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x28 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40379106
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x88
load:0x403c9700,len:0x4
load:0x403c9704,len:0x988
load:0x403cc700,len:0x2560
entry 0x403c9858
START USB CONSOLE!!!

It is currently unknown whether the serial communication string for debugging is not output or there is a communication problem.
I haven't tried it yet on a non-Windows device.

thanks,

@phoddie
Copy link
Collaborator

phoddie commented Jan 30, 2024

Thanks for the report. We'll try to reproduce this.

@NW-Lab
Copy link
Contributor Author

NW-Lab commented Jan 30, 2024

It may be unrelated (another ISSUE?), but maybe because Tinyusb is no longer installed by default with ESP-IDF v5, I can't build USE_USB=1 (for example, esp32/m5stamp_s3) properly.
It may be because you are using Windows and have downloaded and installed the ESP-IDF installer.

The message will be displayed as shown below.

情報: 与えられたパターンのファイルが見つかりませんでした。
Setting PYTHONNOUSERSITE, was not set
Using Python in C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\
Python 3.11.2
Using Git in C:\Espressif\tools\idf-git\2.39.2\cmd\
git version 2.39.2.windows.1
Checking Python compatibility
Setting IDF_PATH: C:\Espressif\frameworks\esp-idf-v5.1.2

Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.27.2.
Not using an unsupported version of tool ninja found in PATH: 1.11.0.
    C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin
    C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin
    C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin
    C:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin
    C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin
    C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin
    C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin
    C:\Espressif\tools\cmake\3.24.0\bin
    C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin
    C:\Espressif\tools\ninja\1.10.2\
    C:\Espressif\tools\idf-exe\1.0.3\
    C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64
    C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64
    C:\Espressif\frameworks\esp-idf-v5.1.2\tools

Checking if Python packages are up to date...
Constraint file: C:\Espressif\espidf.constraints.v5.1.txt
Requirement files:
 - C:\Espressif\frameworks\esp-idf-v5.1.2\tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe
Python requirements are satisfied.

Detected installed tools that are not currently used by active ESP-IDF version.
For removing old versions of idf-driver, idf-python-wheels, openocd-esp32 use command 'python.exe C:\Espressif\frameworks\esp-idf-v5.1.2\tools\idf_tools.py uninstall'
For free up even more space, remove installation packages of those tools. Use option 'python.exe C:\Espressif\frameworks\esp-idf-v5.1.2\tools\idf_tools.py uninstall --remove-archives'.


Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

Using recommended ESP-IDF v5.1.2
        1 個のファイルをコピーしました。
        1 個のファイルをコピーしました。
        1 個のファイルをコピーしました。
"# Configure tinyusb..."; cd c:\pjt\moddable\build\tmp\esp32\m5stamp_s3\debug\helloworld\xsProj-esp32s3 ; idf.py add-dependency "espressif/esp_tinyusb"
Reconfiguring ESP-IDF...
Executing action: reconfigure
Running cmake in directory C:\pjt\moddable\build\tmp\esp32\m5stamp_s3\debug\helloworld\xsProj-esp32s3\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DSDKCONFIG_DEFAULTS=c:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/sdkconfig.mc -DSDKCONFIG_HEADER=c:\pjt\moddable\build\tmp\esp32\m5stamp_s3\debug\helloworld\xsProj-esp32s3\build\config\sdkconfig.h -DCMAKE_MESSAGE_LOG_LEVEL=ERROR -DDEBUGGER_SPEED=460800 -DIDF_TARGET=esp32s3 -DESP32_SUBCLASS=esp32s3 -DSDKCONFIG_DEFAULTS=c:\pjt\moddable\build\tmp\esp32\m5stamp_s3\debug\helloworld\xsProj-esp32s3\sdkconfig.mc -DCCACHE_ENABLE=1 C:\pjt\moddable\build\tmp\esp32\m5stamp_s3\debug\helloworld\xsProj-esp32s3"...
Loading defaults file C:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/sdkconfig.mc...
C:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/sdkconfig.mc:1433 CONFIG_CONSOLE_UART_DEFAULT was replaced with CONFIG_ESP_CONSOLE_UART_DEFAULT
C:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/sdkconfig.mc:1434 CONFIG_CONSOLE_UART was replaced with CONFIG_ESP_CONSOLE_UART
C:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/sdkconfig.mc:1435 CONFIG_CONSOLE_UART_BAUDRATE was replaced with CONFIG_ESP_CONSOLE_UART_BAUDRATE
C:\Users\tauchi\AppData\Local\Temp\kconfgen_tmp7fn575qw:504 line was updated to CONFIG_ESP_SYSTEM_PANIC_GDBSTUB=n
C:\Users\tauchi\AppData\Local\Temp\kconfgen_tmp7fn575qw:585 line was updated to CONFIG_ESP_COREDUMP_ENABLE_TO_UART=n
C:\Users\tauchi\AppData\Local\Temp\kconfgen_tmp7fn575qw:590 line was updated to CONFIG_ESP_COREDUMP_ENABLE=n
-- Configuring done
-- Generating done
-- Build files have been written to: C:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/build
        1 個のファイルをコピーしました。
# ld xs_esp32.bin
        1 個のファイルをコピーしました。
        1 個のファイルをコピーしました。
Executing action: all (aliases: build)
Running ninja in directory C:\pjt\moddable\build\tmp\esp32\m5stamp_s3\debug\helloworld\xsProj-esp32s3\build
Executing "ninja all"...
[1/10] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/main.c.objFAILED: esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj
ccache C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\"v5.1.2-dirty\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DUNITY_INCLUDE_CONFIG_H -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -IC:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/build/config -IC:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/main -IC:/pjt/moddable/xs/platforms/esp -IC:/pjt/moddable/xs/platforms/mc -IC:/pjt/moddable/xs/includes -IC:/pjt/moddable/modules/base/instrumentation -IC:/pjt/moddable/modules/io -IC:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/newlib/platform_include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/FreeRTOS-Kernel/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/esp_additions/include/freertos -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/esp_additions/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/esp_additions/arch/xtensa/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hw_support/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hw_support/include/soc -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hw_support/include/soc/esp32s3 -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hw_support/port/esp32s3/. -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hw_support/port/esp32s3/private_include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/heap/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/log/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/soc/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/soc/esp32s3 -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/soc/esp32s3/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/hal/esp32s3/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/hal/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/hal/platform_port/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/include/esp32s3 -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32s3 -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_common/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system/port/soc -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system/port/include/private -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/xtensa/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/xtensa/esp32s3/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip/include/apps -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip/include/apps/sntp -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip/lwip/src/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip/port/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip/port/freertos/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip/port/esp32xx/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip/port/esp32xx/include/arch -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_timer/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_wifi/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_wifi/wifi_apps/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_event/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_phy/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_phy/esp32s3/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_netif/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/spi_flash/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_lcd/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_lcd/interface -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/nvs_flash/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_partition/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/spiffs/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_ringbuf/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/efuse/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/efuse/esp32s3/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/deprecated -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/analog_comparator/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/dac/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/gpio/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/gptimer/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/i2c/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/i2s/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/ledc/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/mcpwm/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/parlio/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/pcnt/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/rmt/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/sdio_slave/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/sdmmc/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/sigma_delta/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/spi/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/temperature_sensor/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/touch_sensor/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/twai/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/uart/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/usb_serial_jtag/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/driver/touch_sensor/esp32s3/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_pm/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/mbedtls/port/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/mbedtls/mbedtls/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/mbedtls/mbedtls/library -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/mbedtls/esp_crt_bundle/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/mbedtls/mbedtls/3rdparty/everest/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/mbedtls/mbedtls/3rdparty/p256-m -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_app_format/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader_support/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader_support/bootloader_flash/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/app_update/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_mm/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/pthread/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/app_trace/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/vfs/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/wpa_supplicant/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/wpa_supplicant/port/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/wpa_supplicant/esp_supplicant/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_coex/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/unity/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/unity/unity/src -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/cmock/CMock/src -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/console -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/http_parser -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp-tls -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp-tls/esp-tls-crypto -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_adc/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_adc/interface -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_adc/esp32s3/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_adc/deprecated/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_eth/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_gdbstub/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hid/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/tcp_transport/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_http_client/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_http_server/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_https_ota/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_psram/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/protobuf-c/protobuf-c -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/protocomm/include/common -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/protocomm/include/security -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/protocomm/include/transports -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_local_ctrl/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/espcoredump/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/espcoredump/include/port/xtensa -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/wear_levelling/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/sdmmc/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/fatfs/diskio -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/fatfs/vfs -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/fatfs/src -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/idf_test/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/idf_test/include/esp32s3 -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/ieee802154/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/json/cJSON -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/mqtt/esp-mqtt/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/perfmon/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/touch_element/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/ulp/ulp_common/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/ulp/ulp_common/include/esp32s3 -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/usb/include -IC:/Espressif/frameworks/esp-idf-v5.1.2/components/wifi_provisioning/include -mlongcalls  -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:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3=. -fmacro-prefix-map=C:/Espressif/frameworks/esp-idf-v5.1.2=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -DmxDebug=1 -DDEBUGGER_SPEED=460800 -DMODINSTRUMENTATION=1 -DUSE_USB=1 -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 C:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/main/main.c
C:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/main/main.c:68:26: fatal error: tinyusb.h: No such file or directory
   68 |                 #include "tinyusb.h"
      |                          ^~~~~~~~~~~
compilation terminated.
[0/1] Re-running CMake...-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file C:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/sdkconfig
Compiler supported targets: xtensa-esp32s3-elf

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- App "bootloader" version: v5.1.2-dirty
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader_support C:/Espressif/frameworks/esp-idf-v5.1.2/components/efuse C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_app_format C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_common C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hw_support C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system C:/Espressif/frameworks/esp-idf-v5.1.2/components/esptool_py C:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos C:/Espressif/frameworks/esp-idf-v5.1.2/components/hal C:/Espressif/frameworks/esp-idf-v5.1.2/components/log C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader/subproject/main C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader/subproject/components/micro-ecc C:/Espressif/frameworks/esp-idf-v5.1.2/components/newlib C:/Espressif/frameworks/esp-idf-v5.1.2/components/partition_table C:/Espressif/frameworks/esp-idf-v5.1.2/components/soc C:/Espressif/frameworks/esp-idf-v5.1.2/components/spi_flash C:/Espressif/frameworks/esp-idf-v5.1.2/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/pjt/moddable/build/tmp/esp32/m5stamp_s3/debug/helloworld/xsProj-esp32s3/build/bootloader
[1/1] cmd.exe /C "cd /D C:\pjt\moddable\build\tmp\esp32\m5...helloworld/xsProj-esp32s3/build/bootloader/bootloader.bin"Bootloader binary size 0x3450 bytes. 0x4bb0 bytes (59%) free.
ninja: build stopped: subcommand failed.
HINT: tinyusb.h was removed. Please use esp_tinyusb component from IDF component manager instead.
You can install `esp_tinyusb` using 'idf.py add-dependency espressif/esp_tinyusb' command.
Refer to the migration guide for more details.
ninja failed with exit code 1, output of the command is in the C:\pjt\moddable\build\tmp\esp32\m5stamp_s3\debug\helloworld\xsProj-esp32s3\build\log\idf_py_stderr_output_7604 and C:\pjt\moddable\build\tmp\esp32\m5stamp_s3\debug\helloworld\xsProj-esp32s3\build\log\idf_py_stdout_output_7604
Launching app...
Type Ctrl-C twice after debugging app.
Could not find USB COM Port with VID 0xBEEF and ID 0x1CEE
NMAKE : fatal error U1077: 'echo Launching app... & echo Type Ctrl-C twice after debugging app. && set "XSBUG_PORT=5002" && set "XSBUG_HOST=localhost" && c:\pjt\moddable\build\bin\win\release\serial2xsbug beef:1cee 460800 8N1 -dtr' : リターン コード '0x1'
Stop.

thanks,

@mkellner
Copy link
Collaborator

mkellner commented Feb 5, 2024

Hello @NW-Lab, can you please try this patch for esp32-s3 devices?

https://gist.github.com/mkellner/993ab3febf4f7dd951e3ba9473d88f76

@NW-Lab
Copy link
Contributor Author

NW-Lab commented Feb 5, 2024

mkellner san

Thank you for your response.
I checked with example helloworld.
I have confirmed the fix for the original error.(esp32/m5dial:USE_USE=2)
Thank you.

The tinyusb.h not found error is still there.(esp32/m5stamp_s3:USE_USB=1)
There is no tiny_usb in %IDF_PATH%\components, so it's probably an installation problem.

Thank you.

@mkellner
Copy link
Collaborator

mkellner commented Feb 5, 2024

Thank you for your quick response.

Please open a new issue for USE_USB=1 as it is indeed a different issue.

@NW-Lab
Copy link
Contributor Author

NW-Lab commented Feb 5, 2024

I understand.
thank you.

mkellner added a commit that referenced this issue Feb 7, 2024
Revert "esp32 serial_jtag debugger connection improvements (#1299)"
This reverts commit 38d19ac.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants