Custom PCB ESP32 flash

dejanm
Posts: 4
Joined: Thu May 04, 2023 7:29 pm

Custom PCB ESP32 flash

Postby dejanm » Thu May 04, 2023 7:45 pm

Hello to everyone!
First time posting at Espressif forum! :)

We designed own small PCB with ESP32-WROOM-32D, but there is no way to flash ESP32.

Please help!

This is everything we got from logs. Also I attached PDF with schematics.

Code: Select all

configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6932
load:0x40078000,len:13712
load:0x40080400,len:4260
entry 0x400806e4
[0;32mI (70) boot: Chip Revision: 1[0m
[0;32mI (70) boot_comm: chip revision: 1, min. bootloader chip revision: 0[0m
[0;32mI (39) boot: ESP-IDF v4.0.1-193-ge7ac221 2nd stage bootloader[0m
[0;32mI (39) boot: compile time 02:47:00[0m
[0;32mI (39) boot: Enabling RNG early entropy source...[0m
[0;32mI (44) boot: SPI Speed      : 40MHz[0m
[0;32mI (49) boot: SPI Mode       : DIO[0m
[0;32mI (53) boot: SPI Flash Size : 4MB[0m
[0;32mI (57) boot: Partition Table:[0m
[0;32mI (60) boot: ## Label            Usage          Type ST Offset   Length[0m
[0;32mI (67) boot:  0 phy_init         RF data          01 01 0000f000 00001000[0m
[0;32mI (75) boot:  1 otadata          OTA data         01 00 00010000 00002000[0m
[0;32mI (82) boot:  2 nvs              WiFi data        01 02 00012000 0000e000[0m
[0;32mI (90) boot:  3 at_customize     unknown          40 00 00020000 000e0000[0m
[0;32mI (97) boot:  4 ota_0            OTA app          00 10 00100000 00180000[0m
[0;32mI (105) boot:  5 ota_1            OTA app          00 11 00280000 00180000[0m
[0;32mI (112) boot: End of partition table[0m
[0;32mI (117) boot_comm: chip revision: 1, min. application chip revision: 0[0m
[0;32mI (124) esp_image: segment 0: paddr=0x00100020 vaddr=0x3f400020 size=0x29230 (168496) map[0m
[0;32mI (193) esp_image: segment 1: paddr=0x00129258 vaddr=0x3ffbdb60 size=0x03974 ( 14708) load[0m
[0;32mI (199) esp_image: segment 2: paddr=0x0012cbd4 vaddr=0x40080000 size=0x00400 (  1024) load[0m
[0;32mI (200) esp_image: segment 3: paddr=0x0012cfdc vaddr=0x40080400 size=0x03034 ( 12340) load[0m
[0;32mI (214) esp_image: segment 4: paddr=0x00130018 vaddr=0x400d0018 size=0x1068cc (1075404) map[0m
[0;32mI (602) esp_image: segment 5: paddr=0x002368ec vaddr=0x40083434 size=0x195c8 (103880) load[0m
[0;32mI (646) esp_image: segment 6: paddr=0x0024febc vaddr=0x400c0000 size=0x00064 (   100) load[0m
[0;32mI (664) boot: Loaded app from partition at offset 0x100000[0m
[0;32mI (664) boot: Disabling RNG early entropy source...[0m
BLUFI BLE is not connected yet
2.1.0

max tx power=78,ret=0

Code: Select all

rst:0x1 (POWERON_RESET),boot:0xf (UART_BOOT(UART0))
ets Jun  8 2016 00:22:57

Code: Select all

Sketch uses 229461 bytes (17%) of program storage space. Maximum is 1310720 bytes.
Global variables use 21860 bytes (6%) of dynamic memory, leaving 305820 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port COM3
Connecting........
Chip is ESP32-D0WD (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 10:97:bd:61:c5:78
Uploading stub...
Running stub...
Stub running...
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00048fff...
Compressed 17408 bytes to 12111...
Writing at 0x00001000... (100 %)

A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption.
A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption.
Link to PDF schematic:
https://drive.google.com/file/d/1IFWCgE ... sp=sharing

Thank you!!!

ESP_Sprite
Posts: 9589
Joined: Thu Nov 26, 2015 4:08 am

Re: Custom PCB ESP32 flash

Postby ESP_Sprite » Fri May 05, 2023 1:43 am

Odd. Do you see this behavior on multiple PCBs or only one?

dejanm
Posts: 4
Joined: Thu May 04, 2023 7:29 pm

Re: Custom PCB ESP32 flash

Postby dejanm » Fri May 05, 2023 8:21 am

On all 5 PCBs. We tried different programmers (ch340, cp2102). Even used one ESP32 module (removed MCU from board and used 3.3v, GND, TX, RX) as programmer. But every time same result. What else can we try?

Thanks!

ESP_Sprite
Posts: 9589
Joined: Thu Nov 26, 2015 4:08 am

Re: Custom PCB ESP32 flash

Postby ESP_Sprite » Fri May 05, 2023 8:37 am

Ah, I see a possible issue. Datasheet says IO2 needs to be low to enter the proper download mode, you pull it high (R7 R9). Try not doing that and see if that helps.

dejanm
Posts: 4
Joined: Thu May 04, 2023 7:29 pm

Re: Custom PCB ESP32 flash

Postby dejanm » Fri May 05, 2023 12:16 pm

Thank you so much Mr. ESP_Sprite.
You was right! We removed R9 and everything was as it should.

You have at least coffee from me! :D

Who is online

Users browsing this forum: No registered users and 111 guests