Closed mllockwood closed 1 year ago
Looks to be related to memory. The Hughes devices send a lot of data, and sometimes the ESP devices can't handle the incoming data plus the installation at the same time. My recommendation is to connect to your Hughes device using your phone before installation, and maintain the connection throughout the installation device. Since the Hughes only sends data to a single device, this will stop the incoming data to the ESP. Once the install is complete, you can disconnect your phone to allow the ESP to connect.
Thanks, I’ll give that a try. I assume the steps I’ve listed are correct for the installation?--
I'm not completely sure about 13 since that wasn't a thing when I added mine, but everything else seems correct. My rig is closed up for the winter still so I can't quite test it. Based on the output you posted, I'm fairly confident the ESP ran out of memory. It shouldn't take 760 seconds. In fact, it really shouldn't take more than a minute or so to install.
I left my iPhone connected to the device, with the app open the entire time during the install process. Unfortunately, the I have the same results:
Linking /data/hughes-power-watchdog/.pioenvs/hughes-power-watchdog/firmware.elf collect2: fatal error: ld terminated with signal 9 [Killed] compilation terminated. *** [/data/hughes-power-watchdog/.pioenvs/hughes-power-watchdog/firmware.elf] Error 1 ========================= [FAILED] Took 949.64 seconds =========================
From your output it looks like your device is failing to compile. I don't think this has anything to do with running out of memory on the esp. When i follow your steps (which look good to me) I get the output below. Linking is still part of the build process which is done on your HA server. When you manually download you build the image on your HA server and then download the final esphome image. If you are not getting the file to download, then this is all still on the HA server and doesn't yet have anything to do with the esp.
What type of system are you running for HA?
Archiving /data/test_for_tango/.pioenvs/test_for_tango/libFrameworkArduino.a
Linking /data/test_for_tango/.pioenvs/test_for_tango/firmware.elf
RAM: [== ] 16.3% (used 53408 bytes from 327680 bytes)
Flash: [========= ] 90.6% (used 1661909 bytes from 1835008 bytes)
Building /data/test_for_tango/.pioenvs/test_for_tango/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin(["/data/test_for_tango/.pioenvs/test_for_tango/firmware.bin"], ["/data/test_for_tango/.pioenvs/test_for_tango/firmware.elf"])
Wrote 0x1a7260 bytes to file /data/test_for_tango/.pioenvs/test_for_tango/firmware-factory.bin, ready to flash to offset 0x0
========================= [SUCCESS] Took 39.54 seconds =========================
INFO Successfully compiled program.
I forgot to reply earlier. I got this issue resolved. I used a different instance of Home Assistant and was able to install via USB.
Installation of this continues to fail every time I attempt it. I am not extremely well versed using ESPHome, I do admit. Here's the steps I am using to install:
Have I missed some steps here? I also tried to do the install using the "Wireless" method, but it ends with the same results.
Linking /data/hughes-power-watchdog/.pioenvs/hughes-power-watchdog/firmware.elf collect2: fatal error: ld terminated with signal 9 [Killed] compilation terminated. *** [/data/hughes-power-watchdog/.pioenvs/hughes-power-watchdog/firmware.elf] Error 1 ========================= [FAILED] Took 760.92 seconds =========================