Fatal Error when flashing

Recurrent H/W and software problems
Post Reply
DeepCoder
Posts: 2
Joined: Tue Nov 01, 2022 7:32 pm
Has thanked: 2 times

Fatal Error when flashing

Post by DeepCoder »

When I click Flash Firmware + Data, it says that a fatal error occured! :!:

Code: [Local Link Removed for Guests]

EXTRACT FILES FROM ZIP FILE
Create SPIFFS bin file
/bar-graph.js.gz
/gauge.min.js.gz
/html/mixed.html
/knob-full.js.gz
/program/74595_1.bas
/program/8574_2.bas
/program/adc.bas
/program/ajax1.bas
/program/ajax3.bas
/program/bcd.bas
/program/checkboxes1.bas
/program/css1.bas
/program/data1.bas
/program/default_switch.bas
/program/default_timer.bas
/program/demo1.bas
/program/demo2.bas
/program/demo3.bas
/program/directory1.bas
/program/directory2.bas
/program/distance.bas
/program/div.bas
/program/div2.bas
/program/file2.bas
/program/for.bas
/program/format.bas
/program/fortest.bas
/program/function.bas
/program/gauges1.bas
/program/gauges2.bas
/program/gauges3.bas
/program/gauges4.bas
/program/gauges5.bas
/program/gauges6.bas
/program/graph1.bas
/program/graph2.bas
/program/graph3.bas
/program/graph4.bas
/program/html1.bas
/program/html10.bas
/program/html10b.bas
/program/html11.bas
/program/html12.bas
/program/html13.bas
/program/html14.bas
/program/html15b.bas
/program/html2.bas
/program/html3.bas
/program/html4.bas
/program/html5.bas
/program/html6.bas
/program/html8.bas
/program/html9.bas
/program/html_lcd1.bas
/program/i2c_scan.bas
/program/infrared.bas
/program/infrared1.bas
/program/infrared2.bas
/program/infrared_keyes.bas
/program/input.bas
/program/instr.bas
/program/interrupt.bas
/program/io1.bas
/program/io_test1.bas
/program/javascript1.bas
/program/knob.bas
/program/knob2.bas
/program/knob3.bas
/program/lcd_1.bas
/program/lcd_2.bas
/program/lcd_3.bas
/program/loops.bas
/program/neopixel1.bas
/program/neoscroll4.bas
/program/not1.bas
/program/onurlmsg1.bas
/program/onurlmsg2.bas
/program/onurlmsg3.bas
/program/onurlmsg4.bas
/program/onurlmsg4b.bas
/program/onurlmsg5.bas
/program/pca9685.bas
/program/pca9685_tilt.bas
/program/ping.bas
/program/select.bas
/program/select3.bas
/program/serial.bas
/program/servo1.bas
/program/servo2.bas
/program/settings1.bas
/program/speedtest1.bas
/program/speedtest2.bas
/program/speedtest3.bas
/program/spi.bas
/program/spi_test1.bas
/program/squash.bas
/program/squash2.bas
/program/synth_new.bas
/program/temperature1.bas
/program/temperature2.bas
/program/timer4.bas
/program/timer5.bas
/program/tm1638.bas
/program/tutorial1.bas
/program/tutorial2.bas
/program/tutorial3.bas
/program/tutorial4.bas
/program/tutorial5.bas
/program/tutorial6.bas
/program/tutorial7.bas
/program/tutorial8.bas
/program/tutorial9.bas
/program/udp1.bas
/program/udp2.bas
/program/udp3.bas
/program/wifi.bas
/program/wifi_scan.bas
/program/words.bas
/segment-display.min.js.gz
/xy.min.js.gz
config.ini
esptool.py v2.6
Serial port COM6
Connecting....
Chip is ESP8266EX
Features: WiFi
MAC: 00:08:ff:00:00:00
Uploading stub...
Running stub...

A fatal error occurred: Invalid head of packet (0x46)
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: Fatal Error when flashing

Post by cicciocb »

You are probably trying to flash an Esp32 using the esp8266 version.
Try to use the online flasher, the device will be automatically recognised
AndyGadget
Posts: 222
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 120 times
Been thanked: 132 times

Re: Fatal Error when flashing

Post by AndyGadget »

Hi DeepCoder and welcome to the forum.

Is this the first time you've tried to flash a module? If so, what version of the toolkit are you using?
It should be 0.9 beta. If it appears to be later then it's the wrong one!
For ESP8266 devices, get 0.9 beta here : [Local Link Removed for Guests]
For ESP32, use the online flasher as cicciocb advises : [Local Link Removed for Guests]

(Francesco, please correct me if I'm wrong but that's the latest I'm aware of for ESP8266.)
BeanieBots
Posts: 325
Joined: Tue Jun 21, 2022 2:17 pm
Location: South coast UK
Has thanked: 173 times
Been thanked: 104 times

Re: Fatal Error when flashing

Post by BeanieBots »

Andy, I've not had any issues with either 2866 or ESP32 using toolkit V1.22. (I think is the latest)
Maybe there was a version between 0.9 and 1.22 that had some issues?
Post Reply