Problem with Secure Download

shaftback2000
Posts: 1
Joined: Fri Oct 18, 2024 10:20 am

Problem with Secure Download

Postby shaftback2000 » Fri Oct 18, 2024 11:29 am

Hi Folks,

i have problems to download files to my esp32-s3 after activating SecureDownload and Flash encryption.

here is my Security Information

Code: Select all

esptool.py v4.7.0
Serial port COM10
Connecting.....
Chip is ESP32-S3 in Secure Download Mode
Enabling default SPI flash mode...

Security Information:
=====================
Flags: 0x00000684 (0b11010000100)
Key Purposes: (2, 3, 0, 0, 0, 0, 12)
Chip ID: 9
API Version: 0
Secure Boot: Disabled
Flash Encryption: Enabled
SPI Boot Crypt Count (SPI_BOOT_CRYPT_CNT): 0x7
Dcache in UART download mode: Disabled
Icache in UART download mode: Disabled
JTAG: Permenantly Disabled
Hard resetting via RTS pin...

idf.py encrypted-flash monitor will lead to this message:

..

Code: Select all

esptool.py v4.7.0
Serial port COM10
Connecting....
Chip is ESP32-S3 in Secure Download Mode
Changing baud rate to 460800
Changed.
Enabling default SPI flash mode...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00006fff...
Flash will be erased from 0x00010000 to 0x00101fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Erasing flash...

A fatal error occurred: Failed to enter Flash download mode (result was 01640000: Unknown result)
CMake Error at run_serial_tool.cmake:66 (message):

  D:/Tools/Espressif/python_env/idf5.2_py3.11_env/Scripts/python.exe;;D:/Tools/Espressif/frameworks/esp-idf-v5.2.2/components/esptool_py/esptool/esptool.py;--chip;esp32s3
  failed.



ERIAL_TOOL=D:/Tools/Espressif/python_env/idf5.2_py3.11_env/Scripts/python.exe;;D:/Tools/Espressif/frameworks/esp-idf-v5.2.2/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=no_reset;--no-stub;write_flash;@encrypted_flash_args -D WORKING_DIRECTORY=D:/esp/wspace/wss_server/build -P D:/Tools/Espressif/frameworks/esp-idf-v5.2.2/components/esptool_py/run_serial_tool.cmake"
←[31mFAILED: ←[0mCMakeFiles/encrypted-flash D:/esp/wspace/wss_server/build/CMakeFiles/encrypted-flash
cmd.exe /C "cd /D D:\Tools\Espressif\frameworks\esp-idf-v5.2.2\components\esptool_py && D:\Tools\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=D:/Tools/Espressif/frameworks/esp-idf-v5.2.2 -D SERIAL_TOOL=D:/Tools/Espressif/python_env/idf5.2_py3.11_env/Scripts/python.exe;;D:/Tools/Espressif/frameworks/esp-idf-v5.2.2/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=no_reset;--no-stub;write_flash;@encrypted_flash_args -D WORKING_DIRECTORY=D:/esp/wspace/wss_server/build -P D:/Tools/Espressif/frameworks/esp-idf-v5.2.2/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the D:\esp\wspace\wss_server\build\log\idf_py_stderr_output_7684 and D:\esp\wspace\wss_server\build\log\idf_py_stdout_output_7684
How can i revert that ?

Who is online

Users browsing this forum: No registered users and 121 guests