I’m trying to flash a nspanel with Esp home in HA. It is impossible to get the panel in boot mode. I have released the panel from the box. Doublechecked it is 3,3 V. The GIO pin in connected to ground. Addon ESPHome is downloaded to HA. Hmi.tft in wew folder. Bin.file downloaded to desktop. I belive everything is done correctly. When I try to flash there’s always an error message with unable to initialize… I have also tried to use ESP flash tool software to manually flash with the same result. Is there anyone who could give me a clou, idea what I have done wrong.
Not sure if this helps but I had issues with the pins and when using rx/tx is suddenly (? I am no expert) worked
EDIT: forget it …this was with my esp and nextion panel, not the sonof one
Ok! Thanks! I would try to switch the RX and TX pins.
Were you able to flash the NS Panel?
I’m having the same issue.
I’ve already changed all the jump wires, changed the USB cable, tried diferent ports in diferent laptops, welded the cables in the panel (to not have the doubt of bad conection), tested diferent ESP flash tools and switched the RX and TX cable severall times, so I also believe that everithing is done correctly but until now still without sucess.
I never had this trouble in flashing a sonoff device, and I have arround 30 devices at home.
This is how I have the conection (not my picture, just a wiring example).
The error that apears is:
Unexpected error: ESP Chip Auto-Detection failed: Failed to connect to Espressif device: No serial data received.
Hi! I’m sorry to say that I have not been able to set the sonoff device in boot mode. I have no idea what more to do. I have tested all possible variants, mac, pc, flash from esp program, from Hass…
Just my 2cts…checked all cables/ connections? I came across one install where ‘ground’ was in fact ‘nothing’
Yes, I have checked all the cables, trade by new ones and checked severall times the conection.
Yesterday I spend the afternoon trying to flash the NS Panel. I lost the count on how many tries I did, but one, and only one time it was able to conect bu the gave this error:
Detecting chip type… Unsupported detection protocol, switching and trying again…
Connecting…
Detecting chip type… ESP32
Connecting…
Chip Info:
-
- Chip Family: ESP32*
-
- Chip Model: ESP32-D0WD-V3 (revision 3)*
-
- Number of Cores: 2*
-
- Max CPU Frequency: 240MHz*
-
- Has Bluetooth: YES*
-
- Has Embedded Flash: NO*
-
- Has Factory-Calibrated ADC: YES*
-
- MAC Address: 40:22:D8:62:DA:54*
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 460800
Changed.
- MAC Address: 40:22:D8:62:DA:54*
-
- Flash Size: 4MB*
Unexpected error: Error while retrieving firmware file ‘https://raw.githubusercontent.com/espressif/arduino-esp32/1.0.4/tools/sdk/bin/bootloader_dio_40m.bin’: HTTPSConnectionPool(host=‘raw.githubusercontent.com’, port=443): Max retries exceeded with url: /espressif/arduino-esp32/1.0.4/tools/sdk/bin/bootloader_dio_40m.bin (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)’)))
- Flash Size: 4MB*
I was trying to flash with a esphome bin file, I didnt understand if the error was from the bin file, after that I tried to flash with the tasmota bin file, but again i was never more sucessfuly to make the conection!
I have the same problem with nspanelus, I tried 5 different programmers. Directly connected to home assistant or laptops. It never detects the esp. Swapping rx with tx doesn’t help either.
Hi, Did anyone ever found a Solution this issue ??
Thanks
Also having an issue. My Macbook picks up the device in the serial port however no luck flashing the device.
Failed to initialize. Try resetting your device or holding the BOOT button while selecting your serial port until it starts preparing the installation.
Hi I just got lucky to flash mine.
I’ve tried multiple methods, also switchting RX and TX but I just did it while holding the board down.
So I pressed both buttons (front facing buttons) and it went erasing… installing… done.
Maybe it helps someone.
Can verify that pressing the buttons work, well done👍
Switching Rx/Tx cables worked for me. And then another problem - but following this advice TFT Upload Fehler · Issue #177 · Blackymas/NSPanel_HA_Blueprint · GitHub worked.
Well, got myself a Sonoff nspanel as well and having the issue that it isn’t doing boot mode. The message I’m getting is:
Failed to initialize. Try resetting your device or holding the BOOT button while selecting your serial port until it starts preparing the installation.
Does someone have an idea what to try next?
Some details:
Black nspanel - not the pro
DSD Tech USB (FT232)
A bunch of dupont wires, connected as following:
- RXD to ESP_TX
- TXD to ESP_RX
- GND to GND
- VCC (3.3 volts) to 3V3 (also tried connecting to 3V directly, not using VCC)
- IO0 to GND on the board itself (two pins on the island are ground, tried looping it to the ground of the USB as well)
I tried pressing the buttons as well when connecting, before connecting, after connecting, etc. but no luck. I’m running Pop!_OS 22.04 LTS (based on Ubuntu 22.04) and using Chrome 120. The flash device shows up at the list of serial connections (dmesg in terminal also shows it, so seems fine), so it really seems to be something with the panel itself.
Can anyone help. I am trying to flash esphome to panel with command-line esp tool, and getting following error:
esptool.py v3.3.1
Serial port /dev/cu.usbserial-1110
Connecting.....
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: **valid mac address**
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00010000 to 0x000dffff...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Compressed 849408 bytes to 489813...
Writing at 0x0001a121... (6 %)
A fatal error occurred: Invalid head of packet (0x78): Possible serial noise or corruption.
INFO Upload with baud rate 460800 failed. Trying again with baud rate 115200.
Same error with 115200, except:
Invalid head of packet (0x65)
Verified wires, used another usb-ttl - same result, and always on same place.
Solved by connecting external 3.3v power, seems my cheap usb-ttl fails to support enough power
Hello, I had the same flashing issue with my usb2ttl (FT232BL). I finally did it by changing it’s max allowed amps (500mA instead of 100mA) .
You can do it with FT_Prog
I tried 2 set of cables, 2 laptops, 5 different TTL adapters and 2 panels and nothing worked.
I assumed my pin headers did not make sufficent contact with the board, so at the end I soldered the wires to the board and it flashed without an issue.