Need help to connect esp-wroom-s2 with serial

alekmarinov
Posts: 4
Joined: Sat May 16, 2020 10:29 pm

Need help to connect esp-wroom-s2 with serial

Postby alekmarinov » Sun May 17, 2020 12:05 am

Hi,

I connected the pins to set the device in download mode (see the image bellow) and run the flash command for hello_world as bellow:
  1. ~/Tools/esp-idf/hello_world$ idf.py -p /dev/ttyUSB0 flash
The command ended with attempt to connect but without success.
  1. [782/783] cd /home/alek/Tools/esp-idf/components/esptool_py && /.../home/alek/Tools/esp-idf/components/esptool_py/run_esptool.cmake
  2. esptool.py --chip esp32s2 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 hello-world.bin
  3. esptool.py v3.0-dev
  4. Serial port /dev/ttyUSB0
  5. Connecting........_____....._____.....___
According the spec https://www.espressif.com/sites/default ... et__en.pdf
I set IO15, IO2 and IO0 to low, EN to high using 10 kohm from the external 3.3V.
IMG_20200516_195039.jpg
IMG_20200516_195039.jpg (250.05 KiB) Viewed 6532 times
I checked the solderings, they look ugly but work.
What could I be missing?

Thanks!

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

Re: Need help to connect esp-wroom-s2 with serial

Postby ESP_Sprite » Sun May 17, 2020 7:52 am

Just pulling EN high may not be enough to actually initialize the chip properly, I think... try pulling EN low for a moment before you begin flashing.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Need help to connect esp-wroom-s2 with serial

Postby chegewara » Sun May 17, 2020 7:28 pm

This module doesnt looks like S2. It looks more like esp8266.

alekmarinov
Posts: 4
Joined: Sat May 16, 2020 10:29 pm

Re: Need help to connect esp-wroom-s2 with serial

Postby alekmarinov » Tue May 19, 2020 2:13 am

As ESP_Sprite suggested I played with putting EN on low and then high, but I suspect of having problems with the serial protocol.
This is what I see in the serial when I turn the power on.

Code: Select all

 idf.py -p /dev/ttyUSB0 monitor
Executing action: monitor
Running idf_monitor in directory /home/alek/Tools/esp-idf/hello_world
Executing "/home/alek/.espressif/python_env/idf4.2_py3.6_env/bin/python /home/alek/Tools/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32s2-elf- /home/alek/Tools/esp-idf/hello_world/build/hello-world.elf -m '/home/alek/.espressif/python_env/idf4.2_py3.6_env/bin/python' '/home/alek/Tools/esp-idf/tools/idf.py' '-p' '/dev/ttyUSB0'"...
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
�rll��|�l�|


             �
              l�
                b|����r�bl
                            b��nn�lnn���
                                        b�b�lrlrl�n��|���n|
                                                              nn|��`


some random experiments:

Code: Select all

alek@monster:~/Tools/esp-idf/hello_world$ miniterm.py --parity M /dev/ttyUSB0 921600
--- Miniterm on /dev/ttyUSB0  921600,8,M,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀
--- exit ---
alek@monster:~/Tools/esp-idf/hello_world$ miniterm.py --parity M /dev/ttyUSB0 460800
--- Miniterm on /dev/ttyUSB0  460800,8,M,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
␀␀��␀␀�␀␀␀��␀�␀���␀�␀␀␀�␀��␀�␀��␀␀␀␀␀␀␀␀␀␀␀␀␀�␀␀�␀␀␀�␀␀␀��␀�␀��␀␀�␀��␀������␀���␀�␀�␀�␀␀␀�␀␀␀␀␀�������␀��␀␀�������␀␀���␀�␀�␀␀�␀��␀␀�␀��␀�␀�␀��␀␀�␀��␀␀�␀����␀��␀��␀���␀��␀���␀�␀␀␀␀����␀␀�␀␀␀������␀�␀����␀␀�␀
--- exit ------ exit ---
alek@monster:~/Tools/esp-idf/hello_world$ miniterm.py --parity N /dev/ttyUSB0 230400
--- Miniterm on /dev/ttyUSB0  230400,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
␀��Y��8␀�␀␀�␜␜�␜�␜�␜␜␀␜�␀�������␀���␜�␜�␜�␜�␀␜␀␜␜␜�␜␜␜��␀�␜␀�␀␜���␀�␜��␜�␀�␜␜␜��␜��␀␜��␜␜␜␀�␀␜␀�␀��␜␀␜�␜�␜�␜���␜��␜��␜�����␜�␜��␀
--- exit ---
alek@monster:~/Tools/esp-idf/hello_world$ miniterm.py --parity N /dev/ttyUSB0 57600
--- Miniterm on /dev/ttyUSB0  57600,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
␀␀��_�G␁�Z␖�Q␅@@HdY�g␋�Q+k#PP�o␋�WJ5�V�␔DT[c�}
�W␖�W�␋�␀
--- exit ---
alek@monster:~/Tools/esp-idf/hello_world$ miniterm.py --parity N /dev/ttyUSB0 115200
--- Miniterm on /dev/ttyUSB0  115200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
␀rl␀l��|␀�l�|␂␌␌␌�␌l�␌b|��␂�␒�r�bl␌b��nn�lnn���␌b�b�lrlrl�␒␒n��|�␂��n|␀␌nn|��`␂␀␀>␀␀rl␀l��|␀�l�|␂␌␌␌�␌l�␌b|��␂�␒�r�bl␌b��nn�lnn���␌b�b�lrlrl�␒␒n��|�␂��n|␀␌nn|��`␂␀␀␀␀
--- exit ---
alek@monster:~/Tools/esp-idf/hello_world$ miniterm.py --parity N /dev/ttyUSB0 38400
--- Miniterm on /dev/ttyUSB0  38400,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
␀␀�b��d䄆����������ć䦦FC��ħ��ħD�␀
--- exit ---
alek@monster:~/Tools/esp-idf/hello_world$ miniterm.py --parity N /dev/ttyUSB0 19200
--- Miniterm on /dev/ttyUSB0  19200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
␀��iBbVCCk:a��-��T␀␀␀�iBbVCCk:a��-��T
--- exit ---
alek@monster:~/Tools/esp-idf/hello_world$ miniterm.py --parity N /dev/ttyUSB0 9600
--- Miniterm on /dev/ttyUSB0  9600,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
K�␀␀B␑vf�9�␙�␀�␙v'%��J8␛%��K�␀��␙vN��
--- exit ---

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Need help to connect esp-wroom-s2 with serial

Postby chegewara » Tue May 19, 2020 2:46 am

I will say it one more time. esp wroom S2 is esp8266 module and you are trying to flash it with esp32s2 code, they are not the same chips.

If you could flash it with esp32s2 code then you are magic.

alekmarinov
Posts: 4
Joined: Sat May 16, 2020 10:29 pm

Re: Need help to connect esp-wroom-s2 with serial

Postby alekmarinov » Tue May 19, 2020 6:34 am

The chip was bought from here:
https://www.mouser.com/ProductDetail/Es ... IEQAvD_BwE

And took out from here:
IMG_20200519_022937.jpg
IMG_20200519_022937.jpg (168.4 KiB) Viewed 6377 times
And I'm not even to a flashing stage to have any matter what the chip is.
I just bought a new product, want to turn it on and see what happens :)

alekmarinov
Posts: 4
Joined: Sat May 16, 2020 10:29 pm

Re: Need help to connect esp-wroom-s2 with serial

Postby alekmarinov » Tue May 19, 2020 6:43 am

chegewara wrote:
Tue May 19, 2020 2:46 am
I will say it one more time. esp wroom S2 is esp8266 module and you are trying to flash it with esp32s2 code, they are not the same chips.

If you could flash it with esp32s2 code then you are magic.
Ok, I'm confused.
I see slight difference in the specs bellow where both are about esp-wroom-s2 as my chip label. Which is the right one?
https://www.espressif.com/sites/default ... et__en.pdf
https://www.espressif.com/sites/default ... orm_en.pdf

By your opinion should I flash it with esp8266 builds?
How to properly connect?

Thanks!

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

Re: Need help to connect esp-wroom-s2 with serial

Postby ESP_Sprite » Tue May 19, 2020 7:02 am

Ooh, that is confusing... seemingly the ESP-Wroom-S2 is an older ESP8266 product that happens to have 'S2' in the name. It has nothing to do with the ESP32-S2 chip. The ESP32-S2 Wroom variant is called ESP32-S2-WROOM.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Need help to connect esp-wroom-s2 with serial

Postby chegewara » Tue May 19, 2020 8:36 am

alekmarinov wrote:
Tue May 19, 2020 6:34 am
The chip was bought from here:
https://www.mouser.com/ProductDetail/Es ... IEQAvD_BwE
And here is product description from mouser website:
WiFi Modules (802.11) SMD Module ESP-WROOM-S2, ESP8266EX, 16Mbits SPI Flash, SPI Mode
Just in case, here is esp32 S2 wrover module on devkit board, but wroom module looks exactly the same in size and pads (at least for now):
https://docs.espressif.com/projects/esp ... -v1.2.html
alekmarinov wrote: By your opinion should I flash it with esp8266 builds?
How to properly connect?

Thanks!
Probably you already have it connected properly, im not esp8266 expert, but you can obviously read from UART, which is good sign.
Yes, you should for sure build and flash with esp8266 build option.

Who is online

Users browsing this forum: No registered users and 73 guests