Just getting started COM port not connecting!

Ralphxyz
Posts: 10
Joined: Sun Jan 27, 2019 3:27 pm

Just getting started COM port not connecting!

Postby Ralphxyz » Sun Jan 27, 2019 3:45 pm

"https://docs.espressif.com/projects/es ... ng Started

When I run :

Code: Select all

make flash
I get:

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [/home/Ralph/esp/esp-idf/components/esptool_py/Makefile.projbuild:63: flash] Error 2

Windows 10 Com11

Don't have any idea of what to do next!
Thanks for the much needed help.

Ralph

Ralphxyz
Posts: 10
Joined: Sun Jan 27, 2019 3:27 pm

Re: Just getting started COM port not connecting!

Postby Ralphxyz » Tue Jan 29, 2019 9:19 pm

OH, I am using a DoIt DEVKIT v1

This seems to be a rather common problem without one solution, mostly people just get it to work not know
which of the many things tried actual is the answer.

Thanks for the help!!

Ralph

Ralphxyz
Posts: 10
Joined: Sun Jan 27, 2019 3:27 pm

Re: Just getting started COM port not connecting!

Postby Ralphxyz » Tue Jan 29, 2019 9:53 pm

If I try to run :

Code: Select all

make monitor
I get:

Code: Select all

load lib: file
load lib: tmr
load lib: i2c
load lib: uart
load lib: utils
load lib: lpeg
load lib: net
load lib: thread
load lib: mqtt
load lib: nvs
other libs:
lua: cannot open init.lua
Is there anything I need to do or can do?

Thanks for the help,

Ralph

Ralphxyz
Posts: 10
Joined: Sun Jan 27, 2019 3:27 pm

Re: Just getting started COM port not connecting!

Postby Ralphxyz » Tue Jan 29, 2019 10:47 pm

I also cannot Open a Putty session!

I set the parameters, com port etc., but when I hit Open nothing happens!!

Ralph

Ralphxyz
Posts: 10
Joined: Sun Jan 27, 2019 3:27 pm

Re: Just getting started COM port not connecting!

Postby Ralphxyz » Tue Jan 29, 2019 10:57 pm

I got Putty running and see the same LUA error! in Putty!


> : uart
load lib: utils
load lib: lpeg
load lib: net
load lib: thread
load lib: mqtt
load lib: nvs
other libs:
lua: cannot open init.lua
stdin:1: unexpected symbol near ':'

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

Re: Just getting started COM port not connecting!

Postby ESP_Sprite » Wed Jan 30, 2019 3:49 am

Hold your horses with the serial posting please; better to edit your post if you want to add something soon after you already posted. Now, the lua firmware seems to be the default firmware that's on your module; not sure why it gives an error but as it's origin is unknown, it may be better to skip it. Back to the getting started thing and the flashing the board: Seemingly, the serial port doesn't get your ESP32 into bootloader mode. Does your board have a program and reset button? If so, start the flashing process, then hold the program button and press the reset button once. Does that fix your issue?

Ralphxyz
Posts: 10
Joined: Sun Jan 27, 2019 3:27 pm

Re: Just getting started COM port not connecting!

Postby Ralphxyz » Wed Jan 30, 2019 9:54 pm

Thanks for the reply.

I figured everything is related not separate issues.

I have a DoIt DEVKIT V1 (www.doit.am if you read Chinese)

I have a BOOT button and an EN button so sure which is the program and/or reset button.

I am running the EXPRESSIF Getting Started Code how would I skip the LUA part?

Hopefully I can get the right steps for the button dance, if I can figure out which button is which.

Thanks again for the reply.
Ralph

Ralphxyz
Posts: 10
Joined: Sun Jan 27, 2019 3:27 pm

Re: Just getting started COM port not connecting!

Postby Ralphxyz » Thu Jan 31, 2019 12:36 am

Gee, when one has questions it is always nice to read the documentation again:

Boot Button
Download button: holding down the Boot button and pressing the EN button initiates the firmware download mode. Then user can download firmware through the serial port.

EN Button
Reset button: pressing this button resets the system.

Still getting the same Error 2:

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [/home/Ralph/esp/esp-idf/components/esptool_py/Makefile.projbuild:63: flash] Error 2


Ralph

Ralphxyz
Posts: 10
Joined: Sun Jan 27, 2019 3:27 pm

Re: Just getting started COM port not connecting!

Postby Ralphxyz » Thu Jan 31, 2019 10:18 pm

Arduino also cannot connect:

File "site-packages\serial\serialwin32.py", line 62, in open
serial.serialutil.SerialException: could not open port 'COM9': WindowsError(2, 'The system cannot find the file specified.')
Failed to execute script esptool
the selected serial port Failed to execute script esptool
does not exist or your board is not connected

Strange, in the IDE I see Port Com11 but during compile it is looking for COM9

Ran it again:

Global variables use 13036 bytes (3%) of dynamic memory, leaving 314644 bytes for local variables. Maximum is 327680 bytes.
C:\Users\Ralph\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.0/esptool.exe --chip esp32 --port COM11 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\Ralph\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1/tools/partitions/boot_app0.bin 0x1000 C:\Users\Ralph\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1/tools/sdk/bin/bootloader_qio_80m.bin 0x10000 C:\Users\Ralph\AppData\Local\Temp\arduino_build_192527/GetChipID.ino.bin 0x8000 C:\Users\Ralph\AppData\Local\Temp\arduino_build_192527/GetChipID.ino.partitions.bin
esptool.py v2.6-beta1
Serial port COM11
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

Now it is actually looking for COM11 (the correct Port) and failing!

Ralph

Ralphxyz
Posts: 10
Joined: Sun Jan 27, 2019 3:27 pm

Re: Just getting started COM port not connecting!

Postby Ralphxyz » Thu Jan 31, 2019 10:28 pm

Tried again this time with the button dance (hold Boot hit EN)

Sketch uses 246228 bytes (18%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13036 bytes (3%) of dynamic memory, leaving 314644 bytes for local variables. Maximum is 327680 bytes.
C:\Users\Ralph\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.0/esptool.exe --chip esp32 --port COM11 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\Ralph\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1/tools/partitions/boot_app0.bin 0x1000 C:\Users\Ralph\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1/tools/sdk/bin/bootloader_qio_80m.bin 0x10000 C:\Users\Ralph\AppData\Local\Temp\arduino_build_192527/GetChipID.ino.bin 0x8000 C:\Users\Ralph\AppData\Local\Temp\arduino_build_192527/GetChipID.ino.partitions.bin
esptool.py v2.6-beta1
Serial port COM11
Connecting.....
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, Coding Scheme None
MAC: 30:ae:a4:85:82:04
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...

Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 4681.1 kbit/s)...
Hash of data verified.
Compressed 17664 bytes to 11528...

Writing at 0x00001000... (100 %)
Wrote 17664 bytes (11528 compressed) at 0x00001000 in 0.1 seconds (effective 981.3 kbit/s)...
Hash of data verified.
Compressed 246688 bytes to 112463...

Writing at 0x00010000... (14 %)
Writing at 0x00014000... (28 %)
Writing at 0x00018000... (42 %)
Writing at 0x0001c000... (57 %)
Writing at 0x00020000... (71 %)
Writing at 0x00024000... (85 %)
Writing at 0x00028000... (100 %)
Wrote 246688 bytes (112463 compressed) at 0x00010000 in 2.0 seconds (effective 984.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...

Writing at 0x00008000... (100 %)
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 1638.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Serial Monitor shows NOTHING!!

Any ideas or help appreciated!!

Ralph

Who is online

Users browsing this forum: Bing [Bot] and 100 guests