Programming Custom Board

farhan0404
Posts: 3
Joined: Fri Nov 17, 2017 8:53 am

Programming Custom Board

Postby farhan0404 » Mon Sep 23, 2019 10:40 am

I have built a custom board using ESP32-WROOM-32D module

I am powering it using LM1117 and the conditions of the strap pins are as follows :
Strap pins state
MTDI/IO12 = 0
GPIO0 = 0
GPIO2 = 0
MTDO/IO15 = 1
GPIO5 = 1

I have attached a button on GPIO for programming and I am using baudrate of 115200
When IO0 = 1

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
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:5656
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:13844
entry 0x40078fc4
[0;32mI (30) boot: ESP-IDF v3.0.7 2nd stage bootloader[0m
[0;32mI (30) boot: compile time 09:04:31[0m
[0;32mI (30) boot: Enabling RNG early entropy source...[0m
[0;32mI (35) boot: SPI Speed : 40MHz[0m
[0;32mI (39) boot: SPI Mode : DIO[0m
[0;32mI (43) boot: SPI Flash Size : 4MB[0m
[0;32mI (47) boot: Partition Table:[0m
[0;32mI (51) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (58) boot: 0 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (65) boot: 1 otadata OTA data 01 00 00010000 00002000[0m
[0;32mI (73) boot: 2 nvs WiFi data 01 02 00012000 0000e000[0m
[0;32mI (80) boot: 3 at_customize unknown 40 00 00020000 000e0000[0m
[0;32mI (88) boot: 4 ota_0 OTA app 00 10 00100000 00180000[0m
[0;32mI (95) boot: 5 ota_1 OTA app 00 11 00280000 00180000[0m
[0;32mI (103) boot: End of partition table[0m
[0;32mI (107) boot: No factory image, trying OTA 0[0m
[0;32mI (112) esp_image: segment 0: paddr=0x00100020 vaddr=0x3f400020 size=0x20614 (132628) map[0m
[0;32mI (167) esp_image: segment 1: paddr=0x0012063c vaddr=0x3ffc0000 size=0x02d7c ( 11644) load[0m
[0;32mI (172) esp_image: segment 2: paddr=0x001233c0 vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (175) esp_image: segment 3: paddr=0x001237c8 vaddr=0x40080400 size=0x0c848 ( 51272) load[0m
[0;32mI (204) esp_image: segment 4: paddr=0x00130018 vaddr=0x400d0018 size=0xdfc80 (916608) map[0m
[0;32mI (526) esp_image: segment 5: paddr=0x0020fca0 vaddr=0x4008cc48 size=0x02504 ( 9476) load[0m
[0;32mI (530) esp_image: segment 6: paddr=0x002121ac vaddr=0x400c0000 size=0x00064 ( 100) load[0m
[0;32mI (541) boot: Loaded app from partition at offset 0x100000[0m
[0;32mI (541) boot: Disabling RNG early entropy source...[0m
1.1.3

I (662) wifi: wifi firmware version: 703e53b
I (663) wifi: config NVS flash: enabled
I (663) wifi: config nano formating: disabled
I (673) wifi: Init dynamic tx buffer num: 32
I (673) wifi: Init data frame dynamic rx buffer num: 32
I (673) wifi: Init management frame dynamic rx buffer num: 32
I (679) wifi: wifi driver task: 3ffdee34, prio:23, stack:3584
I (684) wifi: Init static rx buffer num: 10
I (687) wifi: Init dynamic rx buffer num: 32
I (692) wifi: wifi power manager task: 0x3ffe369c prio: 21 stack: 2560
I (726) wifi: mode : softAP (4c:11:ae:70:7f:09)
I (733) wifi: mode : sta (4c:11:ae:70:7f:08) + softAP (4c:11:ae:70:7f:09)
I (737) wifi: mode : softAP (4c:11:ae:70:7f:09)
I (740) wifi: set country: cc=CN

When IO0=0
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download



$ ./esptool.py read_flash_status --bytes 2
esptool.py v2.8-dev
Found 2 serial ports
Serial port COM10
Connecting........_____....._____....._____....._____....._____....._____....._____
COM10 failed to connect: Failed to connect to Espressif device: Timed out waiting for packet header

I have compared this output with ESP32 DEVKITC and it's the same. I have been struggling with this for three weeks now. What could be wrong?

Thanks & regards
Farhan

kmmaran
Posts: 24
Joined: Tue Oct 23, 2018 6:20 am

Re: Programming Custom Board

Postby kmmaran » Thu Oct 03, 2019 1:47 am

I had same issue as well and struggled for weeks. Realised the load capacitor for crystal was wrong. First check all the supply, check crystal, crystal signal amplitude, frequency, compare to good board, crystal cap. Can the USB bridge chip talk to your PC, look in device manager. EPS32 won't be in right operation if clock is bad and can't flash.

Who is online

Users browsing this forum: No registered users and 69 guests