esptool.py problem

zepjau
Posts: 6
Joined: Wed Oct 24, 2018 6:44 pm

esptool.py problem

Postby zepjau » Tue Oct 12, 2021 4:46 pm

Hi there.
I am using arduino ide to program an esp8266.
When I compile the program I find that I cannot upload it to the micro because it gives me the following error:

Code: Select all

raise FatalError ('Failed to connect to% s:% s'% (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

I am using arduino ide 1.8.16 and the version of esptool.py is v3.0
How can I solve this to be able to upload the programs to the micro ?.

Thanks.

shaunakvyas1
Posts: 3
Joined: Thu Oct 14, 2021 5:42 am

Re: esptool.py problem

Postby shaunakvyas1 » Thu Oct 14, 2021 1:01 pm

Hi @zepjau. I am having ESP32-S CAM and I am having similar fatal error.
I have set to define the module as CAMERA_MODEL_WROVER_KIT in Arduino IDE. For the communication of the module with the PC, I am using an FTDI USB to TTL converter. I have setup "ESP32 Board" by Arduino Board Manager. I want to test the "CameraWebServer" example code (Arduino IDE->File->Examples->ESP32->Camera->CameraWebServer) with my ssid and password, but it is giving error while uploading after successful compilation. The error is as per following :

Code: Select all

Sketch uses 2594790 bytes (82%) of program storage space. Maximum is 3145728 bytes.
Global variables use 56256 bytes (17%) of dynamic memory, leaving 271424 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port COM4
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

I checked if there is anything coming on Arduino Serial Monitor. For that, I opened the Serial Monitor and reset the module. The output is as below :

Code: Select all

崻⸮⸮]	⸮⸮⸮⸮⸮ف⸮⸮⸮Iiqk7⸮⸮⸮⸮⸮.⸮⸮⸮AQ⸮⸮ץ⸮⸮⸮⸮5⸮)⸮%Q⸮⸮⸮⸮⸮⸮⸮⸮&⸮U⸮e⸮⸮⸮⸮⸮⸮⸮ȟ⸮⸮⸮⸮J⸮⸮++⸮A⸮⸮⸮䀵⸮⸮⸮⸮L,$⸮HhKͽ⸮⸮⸮⸮⸮S⸮⸮⸮崳⸮⸮]	⸮⸮⸮⸮⸮؁⸮⸮⸮⸮Iiem
⸮⸮⸮⸮⸮⸮⸮⸮L(&*⸮ԅ⸮륥⸮⸮⸮⸮⸮⸮S,⸮⸮⸮⸮⸮⸮⸮⸮&$⸮T⸮e⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮C⸮⸮⸮K⸮s5⸮⸮yAa,⸮⸮⸮⸮U⸮⸮⸮⸮⸮k⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮E⸮⸮ya𰐜⸮⸮⸮⸮⸮⸮|HLJ⸮.⸮E⸮⸮ya⸮0⸮⸮⸮⸮⸮⸮⸮⸮⸮|HLJ⸮E⸮⸮ya񰰍⸮⸮⸮k⸮"%⸮QA⸮⸮o⸮⸮⸮⸮Z⸮⸮*"⸮⸮⸮⸮qax⸮⸮⸮⸮⸮⸮&&⸮k맢*"⸮⸮⸮⸮qax⸮⸮⸮⸮⸮⸮&⸮⸮K맲⸮⸮⸮4)⸮⸮⸮⸮qa𴰐⸮⸮⸮⸮⸮⸮⸮Yˊ⸮⸮⸮⸮5)⸮⸮AaA⸮᩼⸮⸮⸮⸮⸮⸮⸮Aj⸮⸮⸮⸮uax⸮⸮⸮⸮⸮⸮⸮⸮⸮6Y˚⸮⸮⸮4)⸮⸮⸮⸮⸮A0⸮⸮⸮⸮⸮⸮⸮⸮⸮C⸮[0;32mI (29) boot: ESP-IDF v4.1-dirty 2nd stage bootloader[0m
[0;32mI (29) boot: compile time 16:15:01[0m
[0;32mI (30) boot: chip revision: 1[0m
[0;32mI (33) boot_comm: chip revision: 1, min. bootloader chip revision: 0[0m
[0;32mI (40) boot.esp32: SPI Speed      : 40MHz[0m
[0;32mI (44) boot.esp32: SPI Mode       : DIO[0m
[0;32mI (49) boot.esp32: SPI Flash Size : 4MB[0m
[0;32mI (53) boot: Enabling RNG early entropy source...[0m
[0;32mI (59) boot: Partition Table:[0m
[0;32mI (62) boot: ## Label            Usage          Type ST Offset   Length[0m
[0;32mI (70) boot:  0 nvs              WiFi data        01 02 00009000 00005000[0m
[0;32mI (77) boot:  1 otadata          OTA data         01 00 0000e000 00002000[0m
[0;32mI (85) boot:  2 app0             OTA app          00 10 00010000 00300000[0m
[0;32mI (92) boot:  3 spiffs           Unknown data     01 82 00310000 000f0000[0m
[0;32mI (100) boot: End of partition table[0m
[0;32mI (104) boot_comm: chip revision: 1, min. application chip revision: 0[0m
[0;32mI (111) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1d2048 (1908808) map[0m
[0;32mI (847) esp_image: segment 1: paddr=0x001e2070 vaddr=0x3ffbdb60 size=0x04d3c ( 19772) load[0m
[0;32mI (855) esp_image: segment 2: paddr=0x001e6db4 vaddr=0x40080000 size=0x00400 (  1024) load[0m
[0;32mI (856) esp_image: segment 3: paddr=0x001e71bc vaddr=0x40080400 size=0x08e54 ( 36436) load[0m
[0;32mI (878) esp_image: segment 4: paddr=0x001f0018 vaddr=0x400d0018 size=0x9df74 (647028) map[0m
[0;32mI (1125) esp_image: segment 5: paddr=0x0028df94 vaddr=0x40089254 size=0x0b6a0 ( 46752) load[0m
[0;32mI (1157) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (1157) boot: Disabling RNG early entropy source...[0m
⸮
SD Size: 30543MB  OK
PSRAM OK 
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x40091e23  PS      : 0x00060033  A0      : 0x800923ff  A1      : 0x3ffb1e20  
A2      : 0x3f800000  A3      : 0x0005dc0c  A4      : 0x3f800018  A5      : 0x00000000  
A6      : 0x00060c23  A7      : 0x00000000  A8      : 0x00000001  A9      : 0xffffffff  
A10     : 0x3fbffff4  A11     : 0x00000000  A12     : 0x3fbffff8  A13     : 0x3f800010  
A14     : 0x003fffd8  A15     : 0x00000000  SAR     : 0x00000014  EXCCAUSE: 0x0000001c  
EXCVADDR: 0xffffffff  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0x00000000  

ELF file SHA256: 0000000000000000

Backtrace: 0x40091e23:0x3ffb1e20 0x400923fc:0x3ffb1e40 0x400817b1:0x3ffb1e60 0x4008198d:0x3ffb1e80 0x40137537:0x3ffb1ea0 0x40137e21:0x3ffb1ec0 0x40138120:0x3ffb1ef0 0x400d0e8d:0x3ffb1f20 0x400d477e:0x3ffb1fb0 0x4008ed92:0x3ffb1fd0

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_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:0x3fff0030,len:4
load:0x3fff0034,len:6968
load:0x40078000,len:13072
ho 0 tail 12 room 4
load:0x40080400,len:3896
entry 0x40080688
[0;32mI (31) boot: ESP-IDF v4.1-dirty 2nd stage bootloader[0m
[0;32mI (31) boot: compile time 16:15:01[0m
[0;32mI (31) boot: chip revision: 1[0m
[0;32mI (34) boot_comm: chip revision: 1, min. bootloader chip revision: 0[0m
[0;32mI (41) boot.esp32: SPI Speed      : 40MHz[0m
[0;32mI (46) boot.esp32: SPI Mode       : DIO[0m
[0;32mI (50) boot.esp32: SPI Flash Size : 4MB[0m
[0;32mI (55) boot: Enabling RNG early entropy source...[0m
[0;32mI (60) boot: Partition Table:[0m
[0;32mI (64) boot: ## Label            Usage          Type ST Offset   Length[0m
[0;32mI (71) boot:  0 nvs              WiFi data        01 02 00009000 00005000[0m
[0;32mI (79) boot:  1 otadata          OTA data         01 00 0000e000 00002000[0m
[0;32mI (86) boot:  2 app0             OTA app          00 10 00010000 00300000[0m
[0;32mI (93) boot:  3 spiffs           Unknown data     01 82 00310000 000f0000[0m
[0;32mI (101) boot: End of partition table[0m
[0;32mI (105) boot_comm: chip revision: 1, min. application chip revision: 0[0m
[0;32mI (112) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1d2048 (1908808) map[0m
[0;32mI (848) esp_image: segment 1: paddr=0x001e2070 vaddr=0x3ffbdb60 size=0x04d3c ( 19772) load[0m
[0;32mI (857) esp_image: segment 2: paddr=0x001e6db4 vaddr=0x40080000 size=0x00400 (  1024) load[0m
[0;32mI (857) esp_image: segment 3: paddr=0x001e71bc vaddr=0x40080400 size=0x08e54 ( 36436) load[0m
[0;32mI (880) esp_image: segment 4: paddr=0x001f0018 vaddr=0x400d0018 size=0x9df74 (647028) map[0m
[0;32mI (1126) esp_image: segment 5: paddr=0x0028df94 vaddr=0x40089254 size=0x0b6a0 ( 46752) load[0m
[0;32mI (1158) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (1159) boot: Disabling RNG early entropy source...[0m
E (60) psram: PSRAM ID read error: 0xffffffff

SD Size: 30543MB  OK
PSRAM Initialization Failure
ESP32-CAM-MB

It shows the MicroSD Memory Card that I have inserted is detected and it is also able to decide how much memory the MicroSD memory card has which is 30543MB here. The PSRAM fails to initialiaze it says. This output I have checked many times.

Thanks
Shaunak
Shaunak

Who is online

Users browsing this forum: No registered users and 38 guests