ESPHome Add-On not Uploading

Hello,

I am currently trying to upload a YAML file I made in ESPHome to my ESP32 via USB, but the problem I am having is that I cannot upload anything from the ESPHome Add-On. It appears during the attempted uploads the upload progress would be stuck on the compiling. The compiling part takes so long to the point where the upload is terminated. Does anyone know what the issue may be?

Thanks for the help,
Sam

You have correctly selected the USB cable in the tab or you are trying to record via OTA.

I have the USB cable in the tab selected.

For some ESP board, it is necessary to hold down the boot button during recording (personal experience)

No log = no issue.

1 Like

Below is the screen where my ESPHome quits after taking some time uploading.

The same thing would happen to me when I was running on an older raspberry Pi, it was related to the system running out of RAM.

I only ever found two fixes - first I tried to upload immediately after a system restart when there was most RAM available (or stop other integrations running), which sometimes worked. Then I upgraded to a system with more RAM, and the issue has never come back.

The screenshot you posted doesn’t show any upload activity at all actually, just compiling. The most important information is missing which would be the last lines and maybe a hover message like “process terminated” or something before it “quits”.

What machine is this running on? Maybe you want to monitor your system resources next time you try to compile&upload to see if their is a bottle neck :champagne: