ESP-WROOM-32 with USB TTL

guillermop
Posts: 12
Joined: Thu Jul 06, 2017 2:52 am

ESP-WROOM-32 with USB TTL

Postby guillermop » Wed Jan 10, 2018 10:18 pm

Hi, I need a little help.

I'm connecting the ESP-WROOM-32 module with a USB to TTL dongle (based in CP2102 chip)

The idea is to make a PCB with necessary components to connect 4 only wires between the PCB and the USB TTL, at this moment I have this wiring:


TTL ____ WROOM-32

3V3 ------- 3V3
GND ------ GND
TXD ------- RX0 (IO3)
RXD ------- TX0 (IO1)
__________ EN ------- 3V3

The problem is when I connect the device to putty, it shows me some boot info and then it's disconected, I've added an external power supply and the device start to loop with a Guru Meditation Error

This is the full output:

Code: Select all

ets Jun  8 2016 00:22:57

rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3ffc0000,len:0
load:0x3ffc0000,len:2304
load:0x40078000,len:3788
ho 0 tail 12 room 4
load:0x40098000,len:532
entry 0x4009813c


**************************************
*       hello espressif ESP32!       *
*        2nd boot is running!        *
*            version (V0.1)          *
**************************************
compile time 18:16:58

  SPI Speed      : 40MHz
  SPI Mode       : DIO
  SPI Flash Size : 4MB
Partition Table:
## Label            Usage          Type ST Offset   Length
 0 factory          factory app      00 00 00010000 00100000
 1 rfdata           RF data          01 01 00110000 00040000
 2 wifidata         WiFi data        01 02 00150000 00040000
End of partition table
Loading app partition at offset 00010000
section 0: paddr=0x00000020 vaddr=0x00000000 size=0x0ffe8 ( 65512)
section 1: paddr=0x00010010 vaddr=0x3f400010 size=0x05b64 ( 23396) map
section 2: paddr=0x00015b7c vaddr=0x3ffba720 size=0x01378 (  4984) load
section 3: paddr=0x00016efc vaddr=0x40080000 size=0x00400 (  1024) load
section 4: paddr=0x00017304 vaddr=0x40080400 size=0x126ac ( 75436) load
section 5: paddr=0x000299b8 vaddr=0x00000000 size=0x06658 ( 26200)
section 6: paddr=0x00030018 vaddr=0x400d0018 size=0x325b4 (206260) map
start: 0x400807ac

Initializing heap allocator:
Region 19: 3FFBBA98 len 00024568 tag 0
Region 25: 3FFE8000 len 00018000 tag 1
Pro cpu up.
Pro cpu start user code
nvs_flash_init
frc2_timer_task_hdl:3ffbc564, prio:22, stack:2048
tcpip_task_hdlxxx : 3ffbeca8, prio:20,stack:2048
phy_version: 80, Aug 26 2016, 13:04:06, 0
pp_task_hdl : 3ffc34f0, prio:23, stack:8192

:>enter uart init
uart init wait fifo succeed
6, 13:04:06, 0
:>what?
pp_task_hdl : 3ffc34f0, prio:23, stack:8192
:>what?

:>what?
:06, 0
:>what?
pp_task_hdl : 3ffc3e4xfit0, pr iuao:23, stack:8192
:>what?

:>what?
:>enter uart init
:>what?
uart init wait fifo succeed
:>what?
6, 13:04:06, 0
:>what?
:>what?
:>what?
pp_task_hdl : 3ffc34f0, prio:23, stack:8192
:>what?
:>what?
:>what?

:>what?
:>what?
:>what?
:06, 0
:>what?
:>what?
:>what?
pp_task_hdl : 3ffc3e4xfit0, pr iuao3k9hat?
:>what?

:>what?
h>enter twhat?
:>what?at wait fifo succeed
:>what?
:>what?
:>what?
6, 13:04:06, :
:>w:>what?
:>what?
p_hdl : 3ffc3, prio:23, stack::>what?
:>w:>what?
:>what?

:>what?
:>wh
:>what?
:>what?>what?
:06, 0
:>what?
:>what?
:>what?
:>what?
:>what?
:>what?
:>what?
ppsk_hdl : ctp3k9hawhat?
?
:>what?

:>what?
:>wh>enter awhat?at tsucceed
:>w:>what?
:>w6, 13:04:06, :
:>what?
:>w:
:>what?
h_ 3, prio:23, stack::>what?
:>what?
:>what?
:>what?
:>t?
:>what?

:>what?
:>what?
:>what?
:
:>t?
:>what?
:at?
:>what?
:06, 0
:>what?
:>what?
:>what?
:>what?
:>w:>what?
:>w:>whawhat?
?p : ctp3kw?
:>whawhat?
at?
:>what?
h awhat?td
:>what?
:>w:>t6, 13:04, :
:>what?
:>wh
:>what?
:>w:
:>t?
:>what?
h_ 3, pri3, s>whawhat?
?
:>what?
:>what?
:>w:>t?
:>what?
:>what?
:>what?

:>what?
:awhat?>what?
:
:>what?
:
:>what?
:at?
:>what?
:>what?
:>what?
:06, hawhat?
?
:>what?
:>whawhat?
:>whawhat?
hat?
:>what?
:>w?p3kw?
:>what?
:>w?
:>Guru Meditation Error of type InstrFetchProhibited occured on core   0. Except                                     ion was unhandled.
Register dump:
PC      :  00000000  PS      :  00060030  A0      :  800f990d  A1      :  3ffc44                                     c0
A2      :  0000003f  A3      :  00000000  A4      :  00000000  A5      :  3ffc3b                                     8c
A6      :  3ffc3b60  A7      :  00000001  A8      :  800f977c  A9      :  000000                                     00
A10     :  00060023  A11     :  3ffc4500  A12     :  00000008  A13     :  ffffff                                     ff
A14     :  00000000  A15     :  fffffffd  SAR     :  0000001e  EXCCAUSE:  000000                                     14
EXCVADDR:  00000000  LBEG    :  4000c2e0  LEND    :  4000c2f6  LCOUNT  :  ffffff                                     ff

What is the right way to connect the module to a USB to TTL device?
The TTL device I'm using is this: https://www.ebay.com/itm/5PIN-CP2102-Mo ... 1782875777
Last edited by guillermop on Fri Jan 12, 2018 4:19 am, edited 2 times in total.

guillermop
Posts: 12
Joined: Thu Jul 06, 2017 2:52 am

Re: ESP-WROOM-32 with USB TTL

Postby guillermop » Thu Jan 11, 2018 6:46 pm

Without external power supply the device crash, just after print the last line in this log:

Code: Select all

load:0x3ffc0000,len:0
load:0x3ffc0000,len:2304
load:0x40078000,len:3788
ho 0 tail 12 room 4
load:0x40098000,len:532
entry 0x4009813c
[1;36m
[0m[1;36m**************************************
[0m[1;36m*       hello espressif ESP32!       *
[0m[1;36m*        2nd boot is running!        *
[0m[1;36m*            version (V0.1)          *
[0m[1;36m**************************************
[0m[0;36mcompile time 18:16:58
[0m[0;36m  SPI Speed      : 40MHz
[0m[0;36m  SPI Mode       : DIO
[0m[0;36m  SPI Flash Size : 4MB
[0m[1;36mPartition Table:
[0m[1;36m## Label            Usage          Type ST Offset   Length
[0m[1;36m 0 factory          factory app      00 00 00010000 00100000
[0m[1;36m 1 rfdata           RF data          01 01 00110000 00040000
[0m[1;36m 2 wifidata         WiFi data        01 02 00150000 00040000
[0m[1;36mEnd of partition table
[0m[1;36mLoading app partition at offset 00010000
[0m[0;36msection 0: paddr=0x00000020 vaddr=0x00000000 size=0x0ffe8 ( 65512) 
[0m[0;36msection 1: paddr=0x00010010 vaddr=0x3f400010 size=0x05b64 ( 23396) map
[0m[0;36msection 2: paddr=0x00015b7c vaddr=0x3ffba720 size=0x01378 (  4984) load
[0m[0;36msection 3: paddr=0x00016efc vaddr=0x40080000 size=0x00400 (  1024) load
[0m[0;36msection 4: paddr=0x00017304 vaddr=0x40080400 size=0x126ac ( 75436) load
[0m[0;36msection 5: paddr=0x000299b8 vaddr=0x00000000 size=0x06658 ( 26200) 
[0m[0;36msection 6: paddr=0x00030018 vaddr=0x400d0018 size=0x325b4 (206260) map
[0m[0;36mstart: 0x400807ac
[0mInitializing heap allocator:
Region 19: 3FFBBA98 len 00024568 tag 0
Region 25: 3FFE8000 len 00018000 tag 1
Pro cpu up.
Pro cpu start user code
nvs_flash_init
frc2_timer_task_hdl:3ffbc564, prio:22, stack:2048
tcpip_task_hdlxxx : 3ffbeca8, prio:20,stack:2048

guillermop
Posts: 12
Joined: Thu Jul 06, 2017 2:52 am

Re: ESP-WROOM-32 with USB TTL

Postby guillermop » Fri Jan 12, 2018 5:14 pm

The problem seems to be solved adding a 100uf capacitor between the 3V3 and GND

Who is online

Users browsing this forum: Google [Bot] and 58 guests