Closed Jinjungdong closed 1 year ago
Hi @Jinjungdong, Have you first configured the DS peripheral as mentioned here
As I see in the above case, the application image has been built successfully.
After that, the build system tries to flash the pre_prov.bin
which is the binary for the pre_provisioning partition (Now renamed as esp_secure_cert partition with the latest IDF)
I see that the build system is unable to find the pre_prov.bin which is generated in the configuration step that I have mentioned above. Can you please try configuring the DS peripheral and then try to build and flash the example?
Thank you for your response. I will check it!
Hi @AdityaHPatwardhan
I have tried that as you emntioned. But i am very confusing now! There is no support of esp32s3 in the configure_ds.py. What type of python script can i use? configure_ds.py or configure_esp_secure_cert.py? Please teach me detail and correct procedure to solve this problem. Thank you.
Hi @Jinjungdong The configure_ds.py
script supports the esp32s3 chip (reference).
Please ensure that you have set the appropriate target for the project before executing this script.
idf.py set-target esp32s3
The steps that are required to followed in the exact sequence are listed here
Hi, @AdityaHPatwardhan
Actually, i added the code and then run script 'configure_ds.py' But, below meessges are printed.
PS D:\Project\AVR\VSC\esp_mqtt_ssl_ds_00> idf.py set-target esp32s3 Adding "set-target"'s dependency "fullclean" to list of commands with default set of options. Executing action: fullclean Executing action: set-target Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old. Running cmake in directory d:\project\avr\vsc\esp_mqtt_ssl_ds_00\build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 d:\project\avr\vsc\esp_mqtt_ssl_ds_00"... -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.39.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: D:/Project/AVR/VSC/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: D:/Project/AVR/VSC/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - 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: D:/Project/AVR/VSC/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER. -- Building ESP-IDF components for target esp32s3 -- Project sdkconfig file D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/sdkconfig Loading defaults file D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/sdkconfig.defaults... -- Found Python3: D:/Project/AVR/VSC/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success -- App "esp_mqtt_ssl_ds_00" version: 1 -- Adding linker script D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/build/esp-idf/esp_system/ld/memory.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib-time.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld -- Components: app_trace app_update asio bootloader bootloader_support bt cbor 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 protocol_examples_common 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: D:/Project/AVR/VSC/esp-idf/components/app_trace D:/Project/AVR/VSC/esp-idf/components/app_update D:/Project/AVR/VSC/esp-idf/components/asio D:/Project/AVR/VSC/esp-idf/components/bootloader D:/Project/AVR/VSC/esp-idf/components/bootloader_support D:/Project/AVR/VSC/esp-idf/components/bt D:/Project/AVR/VSC/esp-idf/components/cbor D:/Project/AVR/VSC/esp-idf/components/cmock D:/Project/AVR/VSC/esp-idf/components/coap D:/Project/AVR/VSC/esp-idf/components/console D:/Project/AVR/VSC/esp-idf/components/cxx D:/Project/AVR/VSC/esp-idf/components/driver D:/Project/AVR/VSC/esp-idf/components/efuse D:/Project/AVR/VSC/esp-idf/components/esp-tls D:/Project/AVR/VSC/esp-idf/components/esp32s3 D:/Project/AVR/VSC/esp-idf/components/esp_adc_cal D:/Project/AVR/VSC/esp-idf/components/esp_common D:/Project/AVR/VSC/esp-idf/components/esp_eth D:/Project/AVR/VSC/esp-idf/components/esp_event D:/Project/AVR/VSC/esp-idf/components/esp_gdbstub D:/Project/AVR/VSC/esp-idf/components/esp_hid D:/Project/AVR/VSC/esp-idf/components/esp_http_client D:/Project/AVR/VSC/esp-idf/components/esp_http_server D:/Project/AVR/VSC/esp-idf/components/esp_https_ota D:/Project/AVR/VSC/esp-idf/components/esp_https_server D:/Project/AVR/VSC/esp-idf/components/esp_hw_support D:/Project/AVR/VSC/esp-idf/components/esp_ipc D:/Project/AVR/VSC/esp-idf/components/esp_lcd D:/Project/AVR/VSC/esp-idf/components/esp_local_ctrl D:/Project/AVR/VSC/esp-idf/components/esp_netif D:/Project/AVR/VSC/esp-idf/components/esp_phy D:/Project/AVR/VSC/esp-idf/components/esp_pm D:/Project/AVR/VSC/esp-idf/components/esp_ringbuf D:/Project/AVR/VSC/esp-idf/components/esp_rom D:/Project/AVR/VSC/esp-idf/components/esp_serial_slave_lis/nvs_flash D:/Project/AVR/VSC/esp-idf/components/openssl D:/Project/AVR/VSC/esp-idf/components/openthread D:/Project/AVR/VSC/esp-idf/components/partition_table D:/Project/AVR/VSC/esp-idf/components/perfmon D:/Project/AVR/VSC/esp-idf/components/protobuf-c D:/Project/AVR/VSC/esp-idf/examples/common_components/protocol_examples_common D:/Project/AVR/VSC/esp-idf/components/protocomm D:/Project/AVR/VSC/esp-idf/components/pthread D:/Project/AVR/VSC/esp-idf/components/sdmmc D:/Project/AVR/VSC/esp-idf/components/soc D:/Project/AVR/VSC/esp-idf/components/spi_flash D:/Project/AVR/VSC/esp-idf/components/spiffs D:/Project/AVR/VSC/esp-idf/components/tcp_transport D:/Project/AVR/VSC/esp-idf/components/tcpip_adapter D:/Project/AVR/VSC/esp-idf/components/tinyusb D:/Project/AVR/VSC/esp-idf/components/ulp D:/Project/AVR/VSC/esp-idf/components/unity D:/Project/AVR/VSC/esp-idf/components/usb D:/Project/AVR/VSC/esp-idf/components/vfs D:/Project/AVR/VSC/esp-idf/components/wear_levelling D:/Project/AVR/VSC/esp-idf/components/wifi_provisioning D:/Project/AVR/VSC/esp-idf/components/wpa_supplicant D:/Project/AVR/VSC/esp-idf/components/xtensa-- Configuring done -- Generating done -- Build files have been written to: D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/build
PS D:\Project\AVR\VSC\esp_mqtt_ssl_ds_00> python .\configure_ds.py --port COM7 --private-key .\main\client.key d:\Project\AVR\VSC.espressif\tools\idf-python\3.8.7\python.exe: can't open file '$IDF_PATH/components/esptool_py/esptool/espefuse.py': [Errno 2] No such file or directory PS D:\Project\AVR\VSC\esp_mqtt_ssl_ds_00>
After above messages, i checked the path of espefuse.py. But path is correct. I do not know why this message is printed. Thank you.
Have you ensured that the submodules are updated in the esp-idf directory? I am not sure about windows, is there any additional permission requirement? is it necessary that the esp-idf should be present in the same Drive?
Thank you. I will check it. Have a good night!
@Jinjungdong Was the issue resolved ? Thanks, Aditya
Hi @AdityaHPatwardhan Maybe, i will try to check end of this week. At that time, i will talk you for result. Thank you for your concern!
Hi @AdityaHPatwardhan
I have checked this problem as you mentioned. But, same problem is happened. So i thought about the situration step deeply. As you know, i made the esp_secure_cert.bin file using configure_esp_secure_cert.py with previous my question "mqtt/ssl_ds/configure_esp_secure_cert.py excution error in ESP32S3 (IDFGH-9116) #10517". Thus, i think that your last comment is not suitable. Just i think that this problem is involved in during updated procedure. Please check again that detaily. Thank you.
Hi @Jinjungdong Please dont use configure_esp_secure_cert.py as it is, it is not compatible with the mqtt/ssl_ds example present in IDF v4.4.
As for this issue
'$IDF_PATH/components/esptool_py/esptool/espefuse.py': [Errno 2] No such file or directory
PS D:\Project\AVR\VSC\esp_mqtt_ssl_ds_00>
As I have mentioned earlier, please try to check if all the submodules are properly updated and are pointing to the correct SHA in the esp-idf. I think the issue is related to your environment. I can see that the espefuse.py is still present in the esptool_py component in IDFv4.4. so the command should be able to execute.
If you want to use the configure_esp_secure_cert.py
utility
then please use the ssl_ds example in IDFv5.0
Hi @Jinjungdong, Any update? Thanks
Hi @AdityaHPatwardhan Actually i do not have been solving this problem. So, i will skip its situration, and i will find another solution. Thank you.
@Jinjungdong I have tested the configure_ds.py script on v4.4 locally and it works as expected. I think the issue that you are facing seems to be related to your setup. Please use esp-idf v4.4 default setup and environment for executing the script.
Below is output that I obtained for configure_ds.py script:
python configure_ds.py --private-key ~/espressif/esp_secure_cert_mgr/tools/client.key -p /dev/cu.SLAB_USBtoUART --efuse_key_id 2
Provided key block (KEY BLOCK 2) is writable
Generating a new key and burning it in the efuse..
espefuse.py v3.3.2
Connecting....
=== Run "burn_key" command ===
Burn keys to blocks:
- BLOCK_KEY2 -> [b0 ac 74 4f 20 a4 da e5 99 db ea c1 8a cd 71 45 a8 ee 3e 63 ad dd 74 d9 5e 71 08 1a 1b 2d 01 2d]
'KEY_PURPOSE_2': 'USER' -> 'HMAC_DOWN_DIGITAL_SIGNATURE'.
Disabling write to 'KEY_PURPOSE_2'.
Disabling write to key block
Keys will remain readable (due to --no-read-protect)
Check all blocks for burn...
idx, BLOCK_NAME, Conclusion
[00] BLOCK0 is not empty
(written ): 0x000000000000000000000000780000000000000101800300
(to write): 0x000000000000000000000007000000000000000002000400
(coding scheme = NONE)
[06] BLOCK_KEY2 is empty, will burn the new value
.
This is an irreversible operation!
Type 'BURN' (all capitals) to continue.
BURN
BURN BLOCK6 - OK (write block == read block)
BURN BLOCK0 - OK (all write block bits are set)
Reading updated efuses...
Successful
b0 ac 74 4f 20 a4 da e5 99 db ea c1 8a cd 71 45 a8 ee 3e 63 ad dd 74 d9 5e 71 08 1a 1b 2d 01 2d
Key was successfully written to the efuse (KEY BLOCK 2)
Creating NVS binary with version: V2 - Multipage Blob Support Enabled
Created NVS binary: ===> /Users/flying_raijin/esp/esp-idf/examples/protocols/mqtt/ssl_ds/esp_ds_data/pre_prov.bin
Thank you. I will check it more detaily. Have a nice weekend!
Hi @Jinjungdong If possible, Can you please try doing a fresh installation of esp-idf v4.4 I think any setup-related issue may get resolved with that. Thanks, Aditya
@Jinjungdong I am closing this issue as Please feel free to re-open if the above solutions are not able to fix it for you. Thanks, Aditya
Answers checklist.
IDF version.
esp-idf-v4.4.3
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
What is the expected behavior?
I run following procedure with "https://github.com/espressif/esp-idf/blob/master/examples/protocols/mqtt/ssl_ds/README.md" But build error is happend.
What is the actual behavior?
PS D:\Project\AVR\VSC\esp_mqtt_ssl_ds_00> idf.py -p COM7 flash Executing action: flash Running cmake in directory d:\project\avr\vsc\esp_mqtt_ssl_ds_00\build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 d:\project\avr\vsc\esp_mqtt_ssl_ds_00"... -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.39.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: D:/Project/AVR/VSC/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: D:/Project/AVR/VSC/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - 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: D:/Project/AVR/VSC/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER. -- Building ESP-IDF components for target esp32s3 -- Project sdkconfig file D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/sdkconfig Loading defaults file D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/sdkconfig.defaults... -- Found Python3: D:/Project/AVR/VSC/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success -- App "esp_mqtt_ssl_ds_00" version: 1 -- Adding linker script D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/build/esp-idf/esp_system/ld/memory.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib-time.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld -- Components: app_trace app_update asio bootloader bootloader_support bt cbor 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 protocol_examples_common 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: D:/Project/AVR/VSC/esp-idf/components/app_trace D:/Project/AVR/VSC/esp-idf/components/app_update D:/Project/AVR/VSC/esp-idf/components/asio D:/Project/AVR/VSC/esp-idf/components/bootloader D:/Project/AVR/VSC/esp-idf/components/bootloader_support D:/Project/AVR/VSC/esp-idf/components/bt D:/Project/AVR/VSC/esp-idf/components/cbor D:/Project/AVR/VSC/esp-idf/components/cmock D:/Project/AVR/VSC/esp-idf/components/coap D:/Project/AVR/VSC/esp-idf/components/console D:/Project/AVR/VSC/esp-idf/components/cxx D:/Project/AVR/VSC/esp-idf/components/driver D:/Project/AVR/VSC/esp-idf/components/efuse D:/Project/AVR/VSC/esp-idf/components/esp-tls D:/Project/AVR/VSC/esp-idf/components/esp32s3 D:/Project/AVR/VSC/esp-idf/components/esp_adc_cal D:/Project/AVR/VSC/esp-idf/components/esp_common D:/Project/AVR/VSC/esp-idf/components/esp_eth D:/Project/AVR/VSC/esp-idf/components/esp_event D:/Project/AVR/VSC/esp-idf/components/esp_gdbstub D:/Project/AVR/VSC/esp-idf/components/esp_hid D:/Project/AVR/VSC/esp-idf/components/esp_http_client D:/Project/AVR/VSC/esp-idf/components/esp_http_server D:/Project/AVR/VSC/esp-idf/components/esp_https_ota D:/Project/AVR/VSC/esp-idf/components/esp_https_server D:/Project/AVR/VSC/esp-idf/components/esp_hw_support D:/Project/AVR/VSC/esp-idf/components/esp_ipc D:/Project/AVR/VSC/esp-idf/components/esp_lcd D:/Project/AVR/VSC/esp-idf/components/esp_local_ctrl D:/Project/AVR/VSC/esp-idf/components/esp_netif D:/Project/AVR/VSC/esp-idf/components/esp_phy D:/Project/AVR/VSC/esp-idf/components/esp_pm D:/Project/AVR/VSC/esp-idf/components/esp_ringbuf D:/Project/AVR/VSC/esp-idf/components/esp_rom D:/Project/AVR/VSC/esp-idf/components/esp_serial_slave_link D:/Project/AVR/VSC/esp-idf/components/esp_system D:/Project/AVR/VSC/esp-idf/components/esp_timer D:/Project/AVR/VSC/esp-idf/components/esp_websocket_client D:/Project/AVR/VSC/esp-idf/components/esp_wifi D:/Project/AVR/VSC/esp-idf/components/espcoredump D:/Project/AVR/VSC/esp-idf/components/esptool_py D:/Project/AVR/VSC/esp-idf/components/expat D:/Project/AVR/VSC/esp-idf/components/fatfs D:/Project/AVR/VSC/esp-idf/components/freemodbus D:/Project/AVR/VSC/esp-idf/components/freertos D:/Project/AVR/VSC/esp-idf/components/hal D:/Project/AVR/VSC/esp-idf/components/heap D:/Project/AVR/VSC/esp-idf/components/idf_test D:/Project/AVR/VSC/esp-idf/components/ieee802154 D:/Project/AVR/VSC/esp-idf/components/jsmn D:/Project/AVR/VSC/esp-idf/components/json D:/Project/AVR/VSC/esp-idf/components/libsodium D:/Project/AVR/VSC/esp-idf/components/log D:/Project/AVR/VSC/esp-idf/components/lwip D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/main D:/Project/AVR/VSC/esp-idf/components/mbedtls D:/Project/AVR/VSC/esp-idf/components/mdns D:/Project/AVR/VSC/esp-idf/components/mqtt D:/Project/AVR/VSC/esp-idf/components/newlib D:/Project/AVR/VSC/esp-idf/components/nghttp D:/Project/AVR/VSC/esp-idf/components/nvs_flash D:/Project/AVR/VSC/esp-idf/components/openssl D:/Project/AVR/VSC/esp-idf/components/openthread D:/Project/AVR/VSC/esp-idf/components/partition_table D:/Project/AVR/VSC/esp-idf/components/perfmon D:/Project/AVR/VSC/esp-idf/components/protobuf-c D:/Project/AVR/VSC/esp-idf/examples/common_components/protocol_examples_common D:/Project/AVR/VSC/esp-idf/components/protocomm D:/Project/AVR/VSC/esp-idf/components/pthread D:/Project/AVR/VSC/esp-idf/components/sdmmc D:/Project/AVR/VSC/esp-idf/components/soc D:/Project/AVR/VSC/esp-idf/components/spi_flash D:/Project/AVR/VSC/esp-idf/components/spiffs D:/Project/AVR/VSC/esp-idf/components/tcp_transport D:/Project/AVR/VSC/esp-idf/components/tcpip_adapter D:/Project/AVR/VSC/esp-idf/components/tinyusb D:/Project/AVR/VSC/esp-idf/components/ulp D:/Project/AVR/VSC/esp-idf/components/unity D:/Project/AVR/VSC/esp-idf/components/usb D:/Project/AVR/VSC/esp-idf/components/vfs D:/Project/AVR/VSC/esp-idf/components/wear_levelling D:/Project/AVR/VSC/esp-idf/components/wifi_provisioning D:/Project/AVR/VSC/esp-idf/components/wpa_supplicant D:/Project/AVR/VSC/esp-idf/components/xtensa -- Configuring done -- Generating done -- Build files have been written to: D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/build Running ninja in directory d:\project\avr\vsc\esp_mqtt_ssl_ds_00\build Executing "ninja flash"... [54/1067] 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, pre_prov,data,nvs,0x10000,12K, factory,app,factory,0x20000,1M,
[1054/1067] Performing configure step for 'bootloader' -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.39.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: D:/Project/AVR/VSC/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: D:/Project/AVR/VSC/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - 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: D:/Project/AVR/VSC/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32s3 -- Project sdkconfig file D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/sdkconfig -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld -- Adding linker script D:/Project/AVR/VSC/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld -- Adding linker script D:/Project/AVR/VSC/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: D:/Project/AVR/VSC/esp-idf/components/bootloader D:/Project/AVR/VSC/esp-idf/components/bootloader_support D:/Project/AVR/VSC/esp-idf/components/efuse D:/Project/AVR/VSC/esp-idf/components/esp32s3 D:/Project/AVR/VSC/esp-idf/components/esp_common D:/Project/AVR/VSC/esp-idf/components/esp_hw_support D:/Project/AVR/VSC/esp-idf/components/esp_rom D:/Project/AVR/VSC/esp-idf/components/esp_system D:/Project/AVR/VSC/esp-idf/components/esptool_py D:/Project/AVR/VSC/esp-idf/components/freertos D:/Project/AVR/VSC/esp-idf/components/hal D:/Project/AVR/VSC/esp-idf/components/log D:/Project/AVR/VSC/esp-idf/components/bootloader/subproject/main D:/Project/AVR/VSC/esp-idf/components/bootloader/subproject/components/micro-ecc D:/Project/AVR/VSC/esp-idf/components/newlib D:/Project/AVR/VSC/esp-idf/components/partition_table D:/Project/AVR/VSC/esp-idf/components/soc D:/Project/AVR/VSC/esp-idf/components/spi_flash D:/Project/AVR/VSC/esp-idf/components/xtensa
-- Configuring done -- Generating done -- Build files have been written to: D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/build/bootloader [1061/1067] Performing build step for 'bootloader' [1/102] Generating project_elf_src_esp32s3.c [2/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/gdma_periph.c.obj [3/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/soc_include_legacy_warn.c.obj [4/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/lcd_periph.c.obj [5/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/rmt_periph.c.obj [6/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/lldesc.c.obj [7/102] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32s3.c.obj [8/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/i2c_periph.c.obj [9/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/adc_periph.c.obj [10/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/dedic_gpio_periph.c.obj [11/102] Building C object esp-idf/spi_flash/CMakeFiles/idf_spi_flash.dir/esp32s3/spi_flash_rom_patch.c.obj [12/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/i2s_periph.c.obj [13/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/gpio_periph.c.obj [14/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/usb_phy_periph.c.obj [15/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/ledc_periph.c.obj [16/102] Building C object esp-idf/hal/CMakeFiles/idf_hal.dir/wdt_hal_iram.c.obj [17/102] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/interrupts.c.obj [18/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/pcnt_periph.c.obj [19/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/mcpwm_periph.c.obj [20/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/sdmmc_periph.c.obj [21/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/rtc_io_periph.c.obj [22/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/sigmadelta_periph.c.obj [23/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/spi_periph.c.obj [24/102] Building C object esp-idf/hal/CMakeFiles/idf_hal.dir/cpu_hal.c.obj [25/102] Building C object esp-idf/hal/CMakeFiles/idf_hal.dir/mpu_hal.c.obj [26/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/timer_periph.c.obj [27/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/sdio_slave_periph.c.obj [28/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/usb_periph.c.obj [29/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/uart_periph.c.obj [30/102] Building C object esp-idf/soc/CMakeFiles/idf_soc.dir/esp32s3/touch_sensor_periph.c.obj [31/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_clock_init.c.obj [32/102] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32s3.c.obj [33/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_console_loader.c.obj [34/102] Building C object esp-idf/micro-ecc/CMakeFiles/idf_micro-ecc.dir/uECC_verify_antifault.c.obj [35/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj [36/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_random.c.obj [37/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_random_esp32s3.c.obj [38/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/esp32s3/bootloader_soc.c.obj [39/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_flash.c.obj [40/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_common_loader.c.obj [41/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_mem.c.obj [42/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_common.c.obj [43/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/flash_partitions.c.obj [44/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/flash_encrypt.c.obj [45/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/secure_boot.c.obj [46/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/flash_qio_mode.c.obj [47/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_console.c.obj [48/102] Building C object esp-idf/xtensa/CMakeFiles/idf_xtensa.dir/eri.c.obj [49/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_flash_config_esp32s3.c.obj
[50/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/esp32s3/bootloader_sha.c.obj [51/102] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_wdt.c.obj [52/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/esp_image_format.c.obj [53/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_panic.c.obj [54/102] Building C object esp-idf/efuse/CMakeFiles/idf_efuse.dir/esp32s3/esp_efuse_utility.c.obj [55/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_init.c.obj [56/102] Building C object esp-idf/efuse/CMakeFiles/idf_efuse.dir/src/esp_efuse_api.c.obj [57/102] Building C object esp-idf/xtensa/CMakeFiles/idf_xtensa.dir/xt_trax.c.obj [58/102] Building C object esp-idf/efuse/CMakeFiles/idf_efuse.dir/esp32s3/esp_efuse_table.c.obj [59/102] Building C object esp-idf/efuse/CMakeFiles/idf_efuse.dir/esp32s3/esp_efuse_rtc_calib.c.obj [60/102] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/port/esp32s3/rtc_pm.c.obj [61/102] Building C object esp-idf/esp_rom/CMakeFiles/idf_esp_rom.dir/patches/esp_rom_crc.c.obj [62/102] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj [63/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/esp32s3/bootloader_esp32s3.c.obj [64/102] Building C object esp-idf/esp_system/CMakeFiles/idf_esp_system.dir/esp_err.c.obj [65/102] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_fields.c.obj [66/102] Building C object esp-idf/efuse/CMakeFiles/idf_efuse.dir/src/esp_efuse_fields.c.obj [67/102] Building C object esp-idf/bootloader_support/CMakeFiles/idf_bootloader_support.dir/src/bootloader_utility.c.obj [68/102] Building C object esp-idf/esp_rom/CMakeFiles/idf_esp_rom.dir/patches/esp_rom_tjpgd.c.obj [69/102] Building C object esp-idf/esp_rom/CMakeFiles/idf_esp_rom.dir/patches/esp_rom_sys.c.obj [70/102] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/port/esp32s3/chip_info.c.obj [71/102] Building C object esp-idf/efuse/CMakeFiles/idf_efuse.dir/src/esp_efuse_api_key_esp32xx.c.obj [72/102] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/compare_set.c.obj [73/102] Building C object esp-idf/efuse/CMakeFiles/idf_efuse.dir/src/esp_efuse_utility.c.obj [74/102] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/port/esp32s3/rtc_clk.c.obj [75/102] Building C object esp-idf/esp_rom/CMakeFiles/idf_esp_rom.dir/patches/esp_rom_efuse.c.obj [76/102] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/port/esp32s3/rtc_time.c.obj [77/102] Building C object esp-idf/esp_rom/CMakeFiles/idf_esp_rom.dir/patches/esp_rom_uart.c.obj [78/102] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/port/esp32s3/rtc_clk_init.c.obj [79/102] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/port/esp32s3/rtc_sleep.c.obj [80/102] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/cpu_util.c.obj [81/102] Building C object esp-idf/log/CMakeFiles/idf_log.dir/log_noos.c.obj [82/102] Building C object esp-idf/main/CMakeFiles/idf_main.dir/bootloader_start.c.obj [83/102] Building C object esp-idf/log/CMakeFiles/idf_log.dir/log_buffers.c.obj [84/102] Building C object esp-idf/log/CMakeFiles/idf_log.dir/log.c.obj [85/102] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj [86/102] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_init.c.obj [87/102] Linking C static library esp-idf\log\liblog.a [88/102] Linking C static library esp-idf\esp_rom\libesp_rom.a [89/102] Linking C static library esp-idf\esp_common\libesp_common.a [90/102] Linking C static library esp-idf\xtensa\libxtensa.a [91/102] Linking C static library esp-idf\esp_hw_support\libesp_hw_support.a [92/102] Linking C static library esp-idf\esp_system\libesp_system.a [93/102] Linking C static library esp-idf\efuse\libefuse.a [94/102] Linking C static library esp-idf\bootloader_support\libbootloader_support.a [95/102] Linking C static library esp-idf\spi_flash\libspi_flash.a [96/102] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a [97/102] Linking C static library esp-idf\soc\libsoc.a [98/102] Linking C static library esp-idf\hal\libhal.a [99/102] Linking C static library esp-idf\main\libmain.a [100/102] Linking C executable bootloader.elf [101/102] Generating binary image from built executable esptool.py v3.3.2 Creating esp32s3 image... Merged 1 ELF section Successfully created esp32s3 image. Generated D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/build/bootloader/bootloader.bin [102/102] cmd.exe /C "cd /D D:\Project\AVR\VSC\esp_mqtt_ssl_ds_00\build\bootloader\esp-idf\esptool_py && d:\Project\AVR\VSC.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe D:/Project/AVR/VSC/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/build/bootloader/bootloader.bin" Bootloader binary size 0x5100 bytes. 0x2f00 bytes (37%) free. [1065/1067] Generating binary image from built executable esptool.py v3.3.2 Creating esp32s3 image... Merged 2 ELF sections Successfully created esp32s3 image. Generated D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/build/esp_mqtt_ssl_ds_00.bin [1066/1067] cmd.exe /C "cd /D D:\Project\AVR\VSC\esp_mqtt_ssl_ds_00... D:/Project/AVR/VSC/esp_mqtt_ssl_ds_00/build/esp_mqtt_ssl_ds_00.bin" esp_mqtt_ssl_ds_00.bin binary size 0xbab10 bytes. Smallest app partition is 0x100000 bytes. 0x454f0 bytes (27%) free. [1066/1067] cmd.exe /C "cd /D D:\Project\AVR\VSC\esp-idf\components...Project/AVR/VSC/esp-idf/components/esptool_py/run_serial_tool.cmake" esptool.py esp32s3 -p COM7 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x20000 esp_mqtt_ssl_ds_00.bin 0x8000 partition_table/partition-table.bin 0x10000 ../esp_ds_data/pre_prov.bin usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}] [--flash_mode {keep,qio,qout,dio,dout}] [--flash_size FLASH_SIZE] [--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt] [--encrypt-files