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

After first time flash i am not able to flash it again #10425

Open
1 task done
faizannazir opened this issue Oct 6, 2024 · 13 comments
Open
1 task done

After first time flash i am not able to flash it again #10425

faizannazir opened this issue Oct 6, 2024 · 13 comments
Labels
Status: Community help needed Issue need help from any member from the Community. Type: Question Only question

Comments

@faizannazir
Copy link

Board

ESP32-D0WD-V3

Device Description

it is custom design module

Hardware Configuration

There is external flash memory AT25SF041B-SSHB-B and 1 sd card port is connected using some shift register or some thing

Version

latest master (checkout manually)

IDE Name

Arduino IDE

Operating System

Window 11

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

921600

Description

When i get board it was giving invalid header which is normal to new board first time i am able to enter in download mode and i flashed empty sketch from arduino ide but after flash success it keep resetting and i am not able to enter in download mode again

Serial log
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 11:03:55.274 -> configsip: 0, SPIWP:0xee 11:03:55.274 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 11:03:55.274 -> mode:DIO, clock div:1 11:03:55.274 -> load:0x3fff0030,len:1184 11:03:55.274 -> load:0x40078000,len:13260 11:03:55.274 -> load:0x40080400,len:3028 11:03:55.274 -> entry 0x400805e4 11:03:55.451 -> E (119) spi_flash: Detected size(0k) smaller than the size in the binary image header(4096k). Probe failed. 11:03:55.451 -> 11:03:55.451 -> assert failed: do_core_init startup.c:328 (flash_ret == ESP_OK) 11:03:55.451 -> E (141) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0 11:03:55.274 -> Rebooting... 11:03:55.274 -> ets Jul 29 2019 12:21:46

Sketch

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

Debug Message

E (141) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
11:03:55.274 -> Rebooting...
11:03:55.274 -> ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
11:03:55.274 -> configsip: 0, SPIWP:0xee
11:03:55.274 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
11:03:55.274 -> mode:DIO, clock div:1
11:03:55.274 -> load:0x3fff0030,len:1184
11:03:55.274 -> load:0x40078000,len:13260
11:03:55.274 -> load:0x40080400,len:3028
11:03:55.274 -> entry 0x400805e4
11:03:55.451 -> E (119) spi_flash: Detected size(0k) smaller than the size in the binary image header(4096k). Probe failed.
11:03:55.451 -> 
11:03:55.451 -> assert failed: do_core_init startup.c:328 (flash_ret == ESP_OK)
11:03:55.451 ->

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@faizannazir faizannazir added the Status: Awaiting triage Issue is waiting for triage label Oct 6, 2024
@lbernstone
Copy link
Contributor

It certainly looks like it is not able to identify the chip after the bootloader hands off control to the main app. Does this work with a basic esp-idf app or a custom driver?

@faizannazir
Copy link
Author

I am able to flash again it was not entering auto download mode using rts and dtr so i enter manually but still it printing spi flash memory 0k and keep rebooting

@lbernstone
Copy link
Contributor

What do you get if you run esptool chip_id?

@faizannazir
Copy link
Author

faizannazir commented Oct 6, 2024

IMG-20241006-WA0024

@lbernstone
Copy link
Contributor

lbernstone commented Oct 6, 2024

Sure does sound like unsupported hardware. 4MBit is not enough to boot arduino-esp32. As suggested, compile a firmware in esp-idf, and then submit the issue upstream.

@faizannazir
Copy link
Author

How you guess flash size?

@faizannazir
Copy link
Author

I had tried idf it also give same error instead 4MB It gives 2MB error

@faizannazir
Copy link
Author

faizannazir commented Oct 7, 2024

Currently it has this chip AT25SF041B-SSHB-B
I am thinking to replace it with W25Q80RVS This flash chip support esp32?https://www.mouser.co.uk/ProductDetail/Winbond/W25Q80RVSNJQ?qs=mELouGlnn3eiLlSxpfAziw%3D%3D

@faizannazir faizannazir reopened this Oct 7, 2024
@VojtechBartoska VojtechBartoska added Type: Question Only question Status: Community help needed Issue need help from any member from the Community. and removed Status: Awaiting triage Issue is waiting for triage labels Oct 7, 2024
@Jason2866
Copy link
Collaborator

Look through IDF source code which flash chips are supported.

@lbernstone
Copy link
Contributor

W25Q80RVS will likely be recognized, but 2MB (16Mbit) is the smallest supported by the framework.

@faizannazir
Copy link
Author

Look through IDF source code which flash chips are supported.

W25Q80RVS will likely be recognized, but 2MB (16Mbit) is the smallest supported by the framework.

Sure does sound like unsupported hardware. 4MBit is not enough to boot arduino-esp32. As suggested, compile a firmware in esp-idf, and then submit the issue upstream.

How you know its unsupported and size of flash 4Mbit?

1 similar comment
@faizannazir
Copy link
Author

Look through IDF source code which flash chips are supported.

W25Q80RVS will likely be recognized, but 2MB (16Mbit) is the smallest supported by the framework.

Sure does sound like unsupported hardware. 4MBit is not enough to boot arduino-esp32. As suggested, compile a firmware in esp-idf, and then submit the issue upstream.

How you know its unsupported and size of flash 4Mbit?

@lbernstone
Copy link
Contributor

lbernstone commented Oct 7, 2024

I know it is unsupported since it is not recognized by your device, and there is no driver for Renesas chips. I know it is 4Mbit b/c I read the datasheet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Community help needed Issue need help from any member from the Community. Type: Question Only question
Projects
None yet
Development

No branches or pull requests

4 participants