Skip to content

esptool reports flash encryption enabled on factory-new esp32-c61 (ESPTOOL-1371) #1182

Description

@donpdonp

Operating System

Debian

Esptool Version

v5.3.1

Python Version

python 3.11

Chip Description

ESP32-C61

Device Description

custom PCB

Hardware Configuration

No response

How is Esptool Run

no IDE, command line

Full Esptool Command Line that Was Run

No response

Esptool Output

$ esptool write-flash 0x10000 firmware.bin
esptool v5.3.1
Connected to ESP32-C61 on /dev/ttyAMA0:
Chip type:          Unknown ESP32-C61 (revision v1.0)
Features:           Wi-Fi 6, BT 5 (LE), Single Core, 160MHz
Crystal frequency:  40MHz
MAC:                88:56:a6:cb:25:74
Stub flasher is already running. No upload is necessary.
Hard resetting via RTS pin...

A fatal error occurred: Detected flash encryption enabled and download manual encrypt disabled.
Data must be encrypted appropriately before flashing.
Flashing plaintext data may brick your device! Use the force argument to override the warning.

More Information

I am using a brand new QFN40 ESP32-C61 from Digikey. I soldered the chip to the board and esptool can talk to it over serial. I tried to flash a hello world application but the tool says flash encryption is enabled.

checking espefuse reports
SPI_BOOT_CRYPT_CNT (BLOCK0) Enables flash encryption when 1 or 3 bits are set = Enable r/W (0b111)

which is hard to believe from a factory-new chip from a reputable dealer. Could this be an incompatibility with esptool because the ESP32-C61 is still a very new chip? I've added the efuse dump below.

Other Steps to Reproduce

$ espefuse --port /dev/ttyAMA0 dump
espefuse v5.3.1
Connecting...
Detecting chip type... ESP32-C61

=== Run "dump" command ===
BLOCK0 ( ) [0 ] dump: 4085d5ef ff9fe670 0090e0e0 00400000 54c35f7f 00973f95
MAC_SPI_8M_0 (BLOCK1 ) [1 ] dump: a6cb2574 00008856 05012110 010d7811 00000000 00000000
BLOCK_SYS_DATA (BLOCK2 ) [2 ] dump: 172e131d 4cd30cf4 3ee3d69d 2ec61755 3abeb384 1ab72ceb 01408034 00011110
BLOCK_USR_DATA (BLOCK3 ) [3 ] dump: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
BLOCK_KEY0 (BLOCK4 ) [4 ] dump: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
BLOCK_KEY1 (BLOCK5 ) [5 ] dump: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
BLOCK_KEY2 (BLOCK6 ) [6 ] dump: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
BLOCK_KEY3 (BLOCK7 ) [7 ] dump: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
BLOCK_KEY4 (BLOCK8 ) [8 ] dump: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
BLOCK_KEY5 (BLOCK9 ) [9 ] dump: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
BLOCK_SYS_DATA2 (BLOCK10 ) [10] dump: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

I Have Read the Troubleshooting Guide

  • I confirm I have read the troubleshooting guide.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions