espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.65k stars 7.29k forks source link

Console Example (IDFGH-8616) #10063

Closed keenanjohnson closed 1 year ago

keenanjohnson commented 2 years ago

Answers checklist.

General issue report

I'm trying to run the ESP-IDF console example here.

However, when I run the example, I get the following output via idf.py monitor.

I can see any results from my input and the problem seems to be described via the message "Your Terminal application does not support escape sequences."

I'm now running OSX Ventura 13.0.

I'm using this esp32s3 board from adafruit. https://www.adafruit.com/product/5477. The board is connected directly to my macbook via a USBC Cable.

Type 'help' to get the list of commands.
Use UP/DOWN arrows to navigate through command history.
Press TAB when typing command name to auto-complete.

Your terminal application does not support escape sequences.

Line editing and history features are disabled.

On Windows, try using Putty instead.
keenanjohnson commented 2 years ago

I tried enabling the CONFIG_ESP_CONSOLE_USB_CDC as described in this changeset, but when I do, I get the following compilation error:

-- Found Git: /usr/bin/git (found version "2.37.0 (Apple Git-136)") 
-- 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: /Users/keenan/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/keenan/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/keenan/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file /Users/keenan/esp/esp-idf/examples/system/console/basic/sdkconfig
Loading defaults file /Users/keenan/esp/esp-idf/examples/system/console/basic/sdkconfig.defaults...
-- Found Python3: /opt/homebrew/Frameworks/Python.framework/Versions/3.10/bin/python3.10 (found version "3.10.6") found components: Interpreter 
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "console" version: v4.4.1
-- Adding linker script /Users/keenan/esp/esp-idf/examples/system/console/basic/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib-time.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmd_nvs cmd_system cmock coap console cxx driver efuse esp-tls esp32s3 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_lcd esp_local_ctrl esp_netif esp_phy 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 ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /Users/keenan/esp/esp-idf/components/app_trace /Users/keenan/esp/esp-idf/components/app_update /Users/keenan/esp/esp-idf/components/asio /Users/keenan/esp/esp-idf/components/bootloader /Users/keenan/esp/esp-idf/components/bootloader_support /Users/keenan/esp/esp-idf/components/bt /Users/keenan/esp/esp-idf/components/cbor /Users/keenan/esp/esp-idf/examples/system/console/advanced/components/cmd_nvs /Users/keenan/esp/esp-idf/examples/system/console/advanced/components/cmd_system /Users/keenan/esp/esp-idf/components/cmock /Users/keenan/esp/esp-idf/components/coap /Users/keenan/esp/esp-idf/components/console /Users/keenan/esp/esp-idf/components/cxx /Users/keenan/esp/esp-idf/components/driver /Users/keenan/esp/esp-idf/components/efuse /Users/keenan/esp/esp-idf/components/esp-tls /Users/keenan/esp/esp-idf/components/esp32s3 /Users/keenan/esp/esp-idf/components/esp_adc_cal /Users/keenan/esp/esp-idf/components/esp_common /Users/keenan/esp/esp-idf/components/esp_eth /Users/keenan/esp/esp-idf/components/esp_event /Users/keenan/esp/esp-idf/components/esp_gdbstub /Users/keenan/esp/esp-idf/components/esp_hid /Users/keenan/esp/esp-idf/components/esp_http_client /Users/keenan/esp/esp-idf/components/esp_http_server /Users/keenan/esp/esp-idf/components/esp_https_ota /Users/keenan/esp/esp-idf/components/esp_https_server /Users/keenan/esp/esp-idf/components/esp_hw_support /Users/keenan/esp/esp-idf/components/esp_ipc /Users/keenan/esp/esp-idf/components/esp_lcd /Users/keenan/esp/esp-idf/components/esp_local_ctrl /Users/keenan/esp/esp-idf/components/esp_netif /Users/keenan/esp/esp-idf/components/esp_phy /Users/keenan/esp/esp-idf/components/esp_pm /Users/keenan/esp/esp-idf/components/esp_ringbuf /Users/keenan/esp/esp-idf/components/esp_rom /Users/keenan/esp/esp-idf/components/esp_serial_slave_link /Users/keenan/esp/esp-idf/components/esp_system /Users/keenan/esp/esp-idf/components/esp_timer /Users/keenan/esp/esp-idf/components/esp_websocket_client /Users/keenan/esp/esp-idf/components/esp_wifi /Users/keenan/esp/esp-idf/components/espcoredump /Users/keenan/esp/esp-idf/components/esptool_py /Users/keenan/esp/esp-idf/components/expat /Users/keenan/esp/esp-idf/components/fatfs /Users/keenan/esp/esp-idf/components/freemodbus /Users/keenan/esp/esp-idf/components/freertos /Users/keenan/esp/esp-idf/components/hal /Users/keenan/esp/esp-idf/components/heap /Users/keenan/esp/esp-idf/components/idf_test /Users/keenan/esp/esp-idf/components/ieee802154 /Users/keenan/esp/esp-idf/components/jsmn /Users/keenan/esp/esp-idf/components/json /Users/keenan/esp/esp-idf/components/libsodium /Users/keenan/esp/esp-idf/components/log /Users/keenan/esp/esp-idf/components/lwip /Users/keenan/esp/esp-idf/examples/system/console/basic/main /Users/keenan/esp/esp-idf/components/mbedtls /Users/keenan/esp/esp-idf/components/mdns /Users/keenan/esp/esp-idf/components/mqtt /Users/keenan/esp/esp-idf/components/newlib /Users/keenan/esp/esp-idf/components/nghttp /Users/keenan/esp/esp-idf/components/nvs_flash /Users/keenan/esp/esp-idf/components/openssl /Users/keenan/esp/esp-idf/components/openthread /Users/keenan/esp/esp-idf/components/partition_table /Users/keenan/esp/esp-idf/components/perfmon /Users/keenan/esp/esp-idf/components/protobuf-c /Users/keenan/esp/esp-idf/components/protocomm /Users/keenan/esp/esp-idf/components/pthread /Users/keenan/esp/esp-idf/components/sdmmc /Users/keenan/esp/esp-idf/components/soc /Users/keenan/esp/esp-idf/components/spi_flash /Users/keenan/esp/esp-idf/components/spiffs /Users/keenan/esp/esp-idf/components/tcp_transport /Users/keenan/esp/esp-idf/components/tcpip_adapter /Users/keenan/esp/esp-idf/components/tinyusb /Users/keenan/esp/esp-idf/components/ulp /Users/keenan/esp/esp-idf/components/unity /Users/keenan/esp/esp-idf/components/usb /Users/keenan/esp/esp-idf/components/vfs /Users/keenan/esp/esp-idf/components/wear_levelling /Users/keenan/esp/esp-idf/components/wifi_provisioning /Users/keenan/esp/esp-idf/components/wpa_supplicant /Users/keenan/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/keenan/esp/esp-idf/examples/system/console/basic/build

 *  Executing task: ninja  

[3/1064] 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,1M,
storage,data,fat,0x110000,1M,
*******************************************************************************
[195/1064] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.37.0 (Apple Git-136)") 
-- 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: /Users/keenan/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/keenan/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/keenan/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file /Users/keenan/esp/esp-idf/examples/system/console/basic/sdkconfig
-- Adding linker script /Users/keenan/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script /Users/keenan/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32s3 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: /Users/keenan/esp/esp-idf/components/bootloader /Users/keenan/esp/esp-idf/components/bootloader_support /Users/keenan/esp/esp-idf/components/efuse /Users/keenan/esp/esp-idf/components/esp32s3 /Users/keenan/esp/esp-idf/components/esp_common /Users/keenan/esp/esp-idf/components/esp_hw_support /Users/keenan/esp/esp-idf/components/esp_rom /Users/keenan/esp/esp-idf/components/esp_system /Users/keenan/esp/esp-idf/components/esptool_py /Users/keenan/esp/esp-idf/components/freertos /Users/keenan/esp/esp-idf/components/hal /Users/keenan/esp/esp-idf/components/log /Users/keenan/esp/esp-idf/components/bootloader/subproject/main /Users/keenan/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /Users/keenan/esp/esp-idf/components/newlib /Users/keenan/esp/esp-idf/components/partition_table /Users/keenan/esp/esp-idf/components/soc /Users/keenan/esp/esp-idf/components/spi_flash /Users/keenan/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/keenan/esp/esp-idf/examples/system/console/basic/build/bootloader
[229/1064] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/port/soc/esp32s3/usb_console.c.obj
FAILED: esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/port/soc/esp32s3/usb_console.c.obj 
/Users/keenan/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -I/Users/keenan/esp/esp-idf/examples/system/console/basic/build/config -I/Users/keenan/esp/esp-idf/components/esp_system/include -I/Users/keenan/esp/esp-idf/components/esp_system/port/include -I/Users/keenan/esp/esp-idf/components/esp_system/port/. -I/Users/keenan/esp/esp-idf/components/esp_system/port/soc -I/Users/keenan/esp/esp-idf/components/esp_system/port/public_compat -I/Users/keenan/esp/esp-idf/components/newlib/platform_include -I/Users/keenan/esp/esp-idf/components/freertos/include -I/Users/keenan/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/Users/keenan/esp/esp-idf/components/freertos/port/xtensa/include -I/Users/keenan/esp/esp-idf/components/freertos/include/esp_additions -I/Users/keenan/esp/esp-idf/components/esp_hw_support/include -I/Users/keenan/esp/esp-idf/components/esp_hw_support/include/soc -I/Users/keenan/esp/esp-idf/components/esp_hw_support/include/soc/esp32s3 -I/Users/keenan/esp/esp-idf/components/esp_hw_support/port/esp32s3/. -I/Users/keenan/esp/esp-idf/components/esp_hw_support/port/esp32s3/private_include -I/Users/keenan/esp/esp-idf/components/heap/include -I/Users/keenan/esp/esp-idf/components/log/include -I/Users/keenan/esp/esp-idf/components/lwip/include/apps -I/Users/keenan/esp/esp-idf/components/lwip/include/apps/sntp -I/Users/keenan/esp/esp-idf/components/lwip/lwip/src/include -I/Users/keenan/esp/esp-idf/components/lwip/port/esp32/include -I/Users/keenan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/Users/keenan/esp/esp-idf/components/soc/include -I/Users/keenan/esp/esp-idf/components/soc/esp32s3/. -I/Users/keenan/esp/esp-idf/components/soc/esp32s3/include -I/Users/keenan/esp/esp-idf/components/hal/esp32s3/include -I/Users/keenan/esp/esp-idf/components/hal/include -I/Users/keenan/esp/esp-idf/components/hal/platform_port/include -I/Users/keenan/esp/esp-idf/components/esp_rom/include -I/Users/keenan/esp/esp-idf/components/esp_rom/include/esp32s3 -I/Users/keenan/esp/esp-idf/components/esp_rom/esp32s3 -I/Users/keenan/esp/esp-idf/components/esp_common/include -I/Users/keenan/esp/esp-idf/components/xtensa/include -I/Users/keenan/esp/esp-idf/components/xtensa/esp32s3/include -I/Users/keenan/esp/esp-idf/components/driver/include -I/Users/keenan/esp/esp-idf/components/driver/esp32s3/include -I/Users/keenan/esp/esp-idf/components/esp_pm/include -I/Users/keenan/esp/esp-idf/components/esp_ringbuf/include -I/Users/keenan/esp/esp-idf/components/efuse/include -I/Users/keenan/esp/esp-idf/components/efuse/esp32s3/include -I/Users/keenan/esp/esp-idf/components/vfs/include -I/Users/keenan/esp/esp-idf/components/esp_wifi/include -I/Users/keenan/esp/esp-idf/components/esp_event/include -I/Users/keenan/esp/esp-idf/components/esp_netif/include -I/Users/keenan/esp/esp-idf/components/esp_eth/include -I/Users/keenan/esp/esp-idf/components/tcpip_adapter/include -I/Users/keenan/esp/esp-idf/components/esp_phy/include -I/Users/keenan/esp/esp-idf/components/esp_phy/esp32s3/include -I/Users/keenan/esp/esp-idf/components/esp_ipc/include -I/Users/keenan/esp/esp-idf/components/app_trace/include -I/Users/keenan/esp/esp-idf/components/esp_timer/include -I/Users/keenan/esp/esp-idf/components/spi_flash/include -I/Users/keenan/esp/esp-idf/components/app_update/include -I/Users/keenan/esp/esp-idf/components/bootloader_support/include -I/Users/keenan/esp/esp-idf/components/nvs_flash/include -I/Users/keenan/esp/esp-idf/components/mbedtls/port/include -I/Users/keenan/esp/esp-idf/components/mbedtls/mbedtls/include -I/Users/keenan/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/Users/keenan/esp/esp-idf/components/pthread/include -I/Users/keenan/esp/esp-idf/components/esp_gdbstub/include -I/Users/keenan/esp/esp-idf/components/esp_gdbstub/xtensa -I/Users/keenan/esp/esp-idf/components/esp_gdbstub/esp32s3 -I/Users/keenan/esp/esp-idf/components/espcoredump/include -I/Users/keenan/esp/esp-idf/components/espcoredump/include/port/xtensa -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 -Og -fmacro-prefix-map=/Users/keenan/esp/esp-idf/examples/system/console/basic=. -fmacro-prefix-map=/Users/keenan/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.4.1\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/port/soc/esp32s3/usb_console.c.obj -MF esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/port/soc/esp32s3/usb_console.c.obj.d -o esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/port/soc/esp32s3/usb_console.c.obj -c /Users/keenan/esp/esp-idf/components/esp_system/port/soc/esp32s3/usb_console.c
/Users/keenan/esp/esp-idf/components/esp_system/port/soc/esp32s3/usb_console.c:77:1: error: static assertion failed: "usb_osglue_*_int is not multicore capable"
 _Static_assert(SOC_CPU_CORES_NUM == 1, "usb_osglue_*_int is not multicore capable");
 ^~~~~~~~~~~~~~
[238/1064] Performing build step for 'bootloader'
[1/101] Generating project_elf_src_esp32s3.c
[2/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj
[3/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/gdma_periph.c.obj
[4/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/gpio_periph.c.obj
[5/101] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32s3.c.obj
[6/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/dedic_gpio_periph.c.obj
[7/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/adc_periph.c.obj
[8/101] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[9/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/lcd_periph.c.obj
[10/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/i2s_periph.c.obj
[11/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/i2c_periph.c.obj
[12/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/mcpwm_periph.c.obj
[13/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/ledc_periph.c.obj
[14/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/interrupts.c.obj
[15/101] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[16/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/pcnt_periph.c.obj
[17/101] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cpu_hal.c.obj
[18/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/rmt_periph.c.obj
[19/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[20/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/rtc_io_periph.c.obj
[21/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sigmadelta_periph.c.obj
[22/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sdio_slave_periph.c.obj
[23/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sdmmc_periph.c.obj
[24/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/spi_periph.c.obj
[25/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/uart_periph.c.obj
[26/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/timer_periph.c.obj
[27/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/touch_sensor_periph.c.obj
[28/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/usb_periph.c.obj
[29/101] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32s3/spi_flash_rom_patch.c.obj
[30/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/usb_phy_periph.c.obj
[31/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[32/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[33/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32s3.c.obj
[34/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[35/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[36/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[37/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[38/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[39/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[40/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32s3.c.obj
[41/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[42/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32s3.c.obj
[43/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[44/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[45/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj
[46/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[47/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[48/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_sha.c.obj
[49/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[50/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[51/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_soc.c.obj
[52/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[53/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_table.c.obj
[54/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_fields.c.obj
[55/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_rtc_calib.c.obj
[56/101] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj
[57/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[58/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_utility.c.obj
[59/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj
[60/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_esp32s3.c.obj
[61/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[62/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj
[63/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api_key_esp32xx.c.obj
[64/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_pm.c.obj
[65/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_wdt.c.obj
[66/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[67/101] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj
[68/101] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[69/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_clk_init.c.obj
[70/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_time.c.obj
[71/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/chip_info.c.obj
[72/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_clk.c.obj
[73/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_sleep.c.obj
[74/101] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/xt_trax.c.obj
[75/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_tjpgd.c.obj
[76/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[77/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[78/101] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[79/101] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[80/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[81/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_init.c.obj
[82/101] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[83/101] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[84/101] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[85/101] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[86/101] Linking C static library esp-idf/log/liblog.a
[87/101] Linking C static library esp-idf/esp_rom/libesp_rom.a
[88/101] Linking C static library esp-idf/esp_common/libesp_common.a
[89/101] Linking C static library esp-idf/xtensa/libxtensa.a
[90/101] Linking C static library esp-idf/esp_hw_support/libesp_hw_support.a
[91/101] Linking C static library esp-idf/esp_system/libesp_system.a
[92/101] Linking C static library esp-idf/efuse/libefuse.a
[93/101] Linking C static library esp-idf/bootloader_support/libbootloader_support.a
[94/101] Linking C static library esp-idf/spi_flash/libspi_flash.a
[95/101] Linking C static library esp-idf/micro-ecc/libmicro-ecc.a
[96/101] Linking C static library esp-idf/soc/libsoc.a
[97/101] Linking C static library esp-idf/hal/libhal.a
[98/101] Linking C static library esp-idf/main/libmain.a
[99/101] Linking C executable bootloader.elf
[100/101] Generating binary image from built executable
esptool.py v3.3-dev
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Generated /Users/keenan/esp/esp-idf/examples/system/console/basic/build/bootloader/bootloader.bin
[101/101] cd /Users/keenan/esp/esp-idf/examples/system/console/basic/build/bootloader/esp-idf/esptool_py && /Users/keenan/.espressif/python_env/idf4.4_py3.10_env/bin/python /Users/keenan/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /Users/keenan/esp/esp-idf/examples/system/console/basic/build/bootloader/bootloader.bin
Bootloader binary size 0x49e0 bytes. 0x3620 bytes (42%) free.
ninja: build stopped: subcommand failed.

 *  The terminal process "/bin/zsh '-c', 'ninja '" terminated with exit code: 1. 
chipweinberger commented 2 years ago

does it work in visual studio code or other terminals?

beriberikix commented 2 years ago

Running into the same issue. I'm on an x86 macOS Monterey 12.6, running bash. I've tried idf.py monitor, minicom and screen. I don't typically use macOS and have used the shell + idf.py monitor many times on Linux.

keenanjohnson commented 2 years ago

@chipweinberger it does not on any terminal on my machine (zsh, visual studio code, etc)

beriberikix commented 2 years ago

I've now tested with with v4.4.1, v4.4.2, release/v5.0 & master. Originally I tested on Monterey but I upgrade to Ventura to match @keenanjohnson.

On master/x86/Ventura here's my test results:

So either there's an issue with ESP32-S3s (maybe protocol related?,) HW-related to the ESP32-S3 Feather design, my device is malfunctioning or user error. My intuition says it's S3 more broadly but I unfortunately don't have another S3 (Feather or otherwise) to test.

igrr commented 2 years ago

@keenanjohnson @beriberikix does the board you use have the USB port connected to the USB pins of the ESP32-S3, or does it use an external USB-UART chip?

If the board has the USB port connected to the ESP32-S3 directly, you need to follow the instructions in this section of the Readme: https://github.com/espressif/esp-idf/tree/master/examples/system/console/basic#using-with-usb_serial_jtag (i.e., enable CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG).

The other option, CONFIG_ESP_CONSOLE_USB_CDC, is not supported on ESP32-S3 yet (https://github.com/espressif/esp-idf/issues/8879).

beriberikix commented 2 years ago

That is indeed the case for the ESP32-S3 Feather and it looks like the USB Serial JTAG is the fix! Will do more testing but looks promising.

chipweinberger commented 2 years ago

@igrr

This issue is a good example why the console should just auto-detect USB Serial/JTAG, and do the right thing by default.

My PRs allow that, but more work is needed in the Console component to auto-detect. See my Umbrella Issue for more details: [Console] 🚀🚀 Proposal: Console Needs More Flexibility 🚀🚀 (IDFGH-8532)

Or alternatively, support multiple STDIN ports at the same time, by default. So you can interact using either port, at the same time.

The USB Serial/JTAG Console should be "idiot-proof", heh. Enabled by default, with no configuration needed.

keenanjohnson commented 2 years ago

Thanks all! This is very helpful!

I understand how to set the config option via the SDK File, but is there a guide for configuring that setting in VSCode using the ESP-IDF extension? In the "Flash Method" setting, would I select the JTAG option>? I'm trying to set up our project to be as easy as possible for new people to get started with, so just trying to fill out our docs in the best way I can. I can ask in the vscode idf project directly if this isn't the correct place.

image
beriberikix commented 1 year ago

There's a GUI configurator, similar to idf.py menuconfig where these values can be set. They can also be set to a default value in sdkconfig.defaults, which is what we do in our examples.

image
keenanjohnson commented 1 year ago

Thanks @beriberikix !

ESP-Marius commented 1 year ago

Closing this as the original issue seems to have been resolved. Feel free to reopen if there is still an outstanding issue.