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

There is always an error burning C2. (ESF-186) #125

Closed
vvvyky opened this issue Nov 30, 2024 · 7 comments
Closed

There is always an error burning C2. (ESF-186) #125

vvvyky opened this issue Nov 30, 2024 · 7 comments
Labels
Type: Bug Bug in esp-serial-flasher

Comments

@vvvyky
Copy link

vvvyky commented Nov 30, 2024

Port

ESP32

Target chip

ESP32C2

Hardware Configuration

ESP32-C2 4MB FLASH 26MHZ

Log output

Initializing serial port... 115200

Chip model: ESP32-C2

Flash size: 0MB

MAC: d0:ef:76:9c:7a:14

Target chip: ESP32-C2

Ecosystem version: 1

Secure Boot: Disabled

Flash Encryption: Disabled

Secure Download Mode: Disabled

Secure Boot Key 0 Disabled: Disabled

Secure Boot Key 1 Disabled: Disabled

Secure Boot Key 2 Disabled: Disabled

JTAG access: Enabled

USB access: Enabled

Data cache in UART download mode: Enabled

Instruction cache in UART download mode: Enabled

Connection successful!

Erasing flash, programming...

Flash erase failed!

More Information

There is always an error in burning C2. I can't identify the storage. What is the reason?

@vvvyky vvvyky added the Type: Bug Bug in esp-serial-flasher label Nov 30, 2024
@github-actions github-actions bot changed the title There is always an error burning C2. There is always an error burning C2. (ESF-186) Nov 30, 2024
@DNedic
Copy link
Contributor

DNedic commented Nov 30, 2024

Interesting, it looks like the flash either isn't getting detected or isn't there at all. Can you for a start check if your board/module has the flash chip onboard? We've had cases where some third party boards didn't have flash installed at all.

@Dzarda7
Copy link
Collaborator

Dzarda7 commented Nov 30, 2024

Hi @vvvyky, thanks for noticing this. Can you please try to flash the chip using the esp32_example and paste the log here? It Is possible that flash detection registers are incorrect.

@vvvyky
Copy link
Author

vvvyky commented Dec 1, 2024

Hi @vvvyky, thanks for noticing this. Can you please try to flash the chip using the esp32_example and paste the log here? It Is possible that flash detection registers are incorrect.

It is the modification of this esp32_example routine, except that esp_loader_flash_detect_size is added. The detection chip fails to detect the size of the flash memory in C2 chip in detail, and the recording fails at the same time. The parameters of 32, s2, s3 and c3 are fine.

@vvvyky
Copy link
Author

vvvyky commented Dec 1, 2024

Interesting, it looks like the flash either isn't getting detected or isn't there at all. Can you for a start check if your board/module has the flash chip onboard? We've had cases where some third party boards didn't have flash installed at all.

C2 is an on-chip flash memory, and I don't know why the size can't be detected.

@DNedic
Copy link
Contributor

DNedic commented Dec 13, 2024

@vvvyky could you please enable serial tracing as described in the issue template and submit the logs?

@dobairoland
Copy link
Collaborator

I'm closing this for inactivity. Please let us know if this is still a valid issue.

@dobairoland dobairoland closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
@Dzarda7
Copy link
Collaborator

Dzarda7 commented Jan 7, 2025

Hi @vvvyky, thanks for reporting this, I was able to reproduce this issue and fixed it appropriately here. There was a problem with flash SPI pins reading. You can try it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug in esp-serial-flasher
Projects
None yet
Development

No branches or pull requests

4 participants