Closed lollokara closed 1 year ago
Hey there @esphome/core, mind taking a look at this issue as it has been labeled with an integration (esp32
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Not being able still to compile for that core. Is there any resolution for it?
I am having the same issue. Is there a way to run ESPhome on the ESP32s3?
I'm having the same problem.
gmarcc: what board do you have?
It was a ESP32-S3-DevKitC-1-N8R2
Use ESPhome-Dev. It is a different Add-On in HA.
Also use this:
esp32: board: adafruit_qtpy_esp32s3_nopsram #5.0.1 variant: esp32s3 framework: type: arduino version: 2.0.4 platform_version: 5.1.1
or substitute your board. But neopixel still won't work for me.
Also suffering from this issue, using Adafruit ESP32-S3 Feather with STEMMA QT / Qwiic - 8MB Flash No PSRAM
@Zettaga, what issue? The title here isn't even correct. The only compile log shows that it compiled successfully. Several people have successfully compiled and installed for both S3 and C3 boards. It would be better if you join the esphome Discord server for more interactive help.
Hi, I'm in the same boat. I recently purchased 15pcs of ESP32-S3-WROOM-1 boards with an intention to flash them all with esphome and now I'm stuck with them being useless.
I cannot even find any info on the net that would tell me if there is an active development to include these chips into the esphome project. I'm very disappointed ;(
This is working for me right now. Does it work for you?
esp32: board: adafruit_qtpy_esp32s3_nopsram #5.0.1 variant: esp32s3 framework: type: arduino version: 2.0.4 platform_version: 5.1.1
Thanks kj4dxk. I tried your config but with same results. I must be doing something wrong.
Here's what I did:
I also just now tried connecting directly to RPi running home assistant and flash but I'm getting this error:
INFO Reading configuration /config/esphome/jaco1.yaml...
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
INFO Generating C++ source...
INFO Compiling app...
Processing jaco1 (board: adafruit_qtpy_esp32s3_nopsram; framework: arduino; platform: platformio/espressif32 @ 5.1.1)
--------------------------------------------------------------------------------
Library Manager: Installing Hash
INFO Installing Hash
Library Manager: Installing ESP8266WiFi
INFO Installing ESP8266WiFi
HARDWARE: ESP32S3 240MHz, 320KB RAM, 4MB Flash
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch3
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
| |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
| |-- libsodium @ 1.10018.1
RAM: [= ] 14.7% (used 48192 bytes from 327680 bytes)
Flash: [===== ] 47.0% (used 861769 bytes from 1835008 bytes)
========================= [SUCCESS] Took 20.12 seconds =========================
INFO Successfully compiled program.
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--encrypt-files <address> <filename> [<address> <filename> ...]]
[--ignore-flash-encryption-efuse-setting]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: '/data/jaco1/.pioenvs/jaco1/patched_bootloader.bin'
INFO Upload with baud rate 460800 failed. Trying again with baud rate 115200.
Any ideas?
UPDATE:
I managed to flash it using this code (and only after plugging in directly to RPi running HA):
board: esp32-s3-devkitc-1
framework:
type: arduino
version: 2.0.3
platform_version: 5.1.0
variant: esp32s3
Unfortunately, it won't boot, it's in a continuous boot loop invalid header: 0xffffffff
UPDATE 2: I have to admit to a little bit of laziness and trying to take shortcuts. Turns out that, for some reason, I can only flash the ESP32S3 board by having it connected directly to RPi running HA, otherwise it will give the compatibility error (which I already knew the last time). The thing is, that when I unplugged the chip from my PC and connected it to the RPi, I did not plug in the external 3.3v power supply as I was assuming that the CH340G I'm using, will give sufficient power, as it was fine flashing all sorts of other ESP chips. Well, it wasn't giving sufficient power.
Now I have it flashed successfully using the following config:
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
version: 2.0.3
platform_version: 5.1.0
variant: esp32s3
This leads to a new problem :)
I can only flash it as I described above but OTA updates won't work. I am nearly certain it's because there is less memory on the chip than esphome expects. When flashing, the terminal window displays the following line:
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
My chip has only 4MB of flash memory and I believe, that is why subsequent OTA updates fail. How do I fix that?
Mine does OTA well.
On Sat, Oct 15, 2022, 13:51 pszober @.***> wrote:
UPDATE 2: I have to admit to a little bit of laziness and trying to take shortcuts. Turns out that, for some reason, I can only flash the ESP32S3 board by having it connected directly to RPi running HA, otherwise it will give the compatibility error (which I already knew the last time). The thing is, that when I unplugged the chip from my PC and connected it to the RPi, I did not plug in the external 3.3v power supply as I was assuming that the CH340G I'm using, will give sufficient power, as it was fine flashing all sorts of other ESP chips. Well, it wasn't giving sufficient power.
Now I have it flashed successfully using the following config:
esp32: board: esp32-s3-devkitc-1 framework: type: arduino version: 2.0.3 platform_version: 5.1.0 variant: esp32s3
This leads to a new problem :)
I can only flash it as I described above but OTA updates won't work. I am nearly certain it's because there is less memory on the chip than esphome expects. When flashing, the terminal window displays the following line:
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
My chip has only 4MB of flash memory and I believe, that is why subsequent OTA updates fail. How do I fix that?
— Reply to this email directly, view it on GitHub https://github.com/esphome/issues/issues/3093#issuecomment-1279793367, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQNDRGIIXHKEOGMLVF6QAODWDLVLZANCNFSM5PKLPC2A . You are receiving this because you commented.Message ID: @.***>
Can I ask you if your ESP is a 4 or 8MB version?
Having similar issue on both DevkitC-1 and DevkitM-1
my baords.json file:
{
"build": {
"arduino": {
"ldscript": "esp32s3_out.ld",
"partitions": "max_app_8MB.csv"
},
"core": "esp32",
"extra_flags": [
"-DARDUINO_ESP32S3_DEV",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1",
"-DBOARD_HAS_PSRAM"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "dio",
"hwids": [
[
"0x303A",
"0x1001"
]
],
"mcu": "esp32s3",
"variant": "esp32s3"
},
"connectivity": [
"wifi"
],
"debug": {
"default_tool": "esp-builtin",
"onboard_tools": [
"esp-builtin"
],
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, 2MB PSRAM)",
"upload": {
"flash_size": "8MB",
"maximum_ram_size": 327680,
"maximum_size": 8323072,
"require_upload_port": true,
"speed": 460800
},
"url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html",
"vendor": "Espressif"
}
What is baords.json file and where is it located? Can I edit that file to modify the amount of flash ROM available on the board so that it's matching my actual esp32 board?
Hi guys , I also have a ESP32S3 which I'm having aloooot of troubles with..
Its a ESP32-S3-WROOM-1-N16R8
Have any of you experienced these errors ? I'm not even talking about uploading to the device , just building the firmware ready for download!
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-esp32s3-elf-g++: not found
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_frame_helper.cpp.o
sh: 1: xtensa-esp32s3-elf-g++: not found
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_pb2.cpp.o
sh: 1: xtensa-esp32s3-elf-g++: not found
*** [/data/test/.pioenvs/test/src/esphome/components/api/api_connection.cpp.o] Error 127
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_pb2_service.cpp.o
*** [/data/test/.pioenvs/test/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
*** [/data/test/.pioenvs/test/src/esphome/components/api/api_pb2.cpp.o] Error 127
sh: 1: xtensa-esp32s3-elf-g++: not found
*** [/data/test/.pioenvs/test/src/esphome/components/api/api_pb2_service.cpp.o] Error 127
========================= [FAILED] Took 166.50 seconds =========================
I have also been trying the config @pszober posted:
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
version: 2.0.3
platform_version: 5.1.0
variant: esp32s3
Install the dev esphome in ha.
On Wed, Nov 2, 2022, 11:16 cvjensen @.***> wrote:
Hi guys , I also have a ESP32S3 which I'm having aloooot of troubles with..
Its a ESP32-S3-WROOM-1-N16R8
Have any of you experienced these errors ? I'm not even talking about uploading to the device , just building the firmware ready for download!
Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_connection.cpp.o sh: 1: xtensa-esp32s3-elf-g++: not found Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_frame_helper.cpp.o sh: 1: xtensa-esp32s3-elf-g++: not found Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_pb2.cpp.o sh: 1: xtensa-esp32s3-elf-g++: not found [/data/test/.pioenvs/test/src/esphome/components/api/api_connection.cpp.o] Error 127 Compiling /data/test/.pioenvs/test/src/esphome/components/api/api_pb2_service.cpp.o [/data/test/.pioenvs/test/src/esphome/components/api/api_frame_helper.cpp.o] Error 127 [/data/test/.pioenvs/test/src/esphome/components/api/api_pb2.cpp.o] Error 127 sh: 1: xtensa-esp32s3-elf-g++: not found [/data/test/.pioenvs/test/src/esphome/components/api/api_pb2_service.cpp.o] Error 127 ========================= [FAILED] Took 166.50 seconds =========================
I have also been trying the config @pszober https://github.com/pszober posted:
esp32: board: esp32-s3-devkitc-1 framework: type: arduino version: 2.0.3 platform_version: 5.1.0 variant: esp32s3
— Reply to this email directly, view it on GitHub https://github.com/esphome/issues/issues/3093#issuecomment-1300648651, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQNDRGM3H2OT542QCSBFKVLWGKATHANCNFSM5PKLPC2A . You are receiving this because you commented.Message ID: @.***>
I have already tried that , both the DEV and the BETA version.
try switching to esp-idf framework:
type: esp-idf
try switching to esp-idf framework:
type: esp-idf
I just tried with IDF with the following config on the DEV version:
esp32:
board: esp32-s3-devkitc-1
framework:
type: esp-idf
version: latest
platform_version: 5.2.0
variant: esp32s3
But I received this error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
esphome 2022.11.0.dev0 requires colorama==0.4.5, but you have colorama 0.4.6 which is incompatible.
Successfully installed certifi-2022.9.24 charset-normalizer-2.1.1 click-8.1.3 colorama-0.4.6 contextlib2-21.6.0 future-0.18.2 idf-component-manager-1.1.4 idna-3.4 pyparsing-2.3.1 pyyaml-6.0 requests-2.28.1 requests-toolbelt-0.10.1 schema-0.7.5 six-1.16.0 tqdm-4.64.1 urllib3-1.26.12
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.30.2")
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: /data/cache/platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-gcc -- broken
-- Configuring incomplete, errors occurred!
See also "/data/test/.pioenvs/test/CMakeFiles/CMakeOutput.log".
See also "/data/test/.pioenvs/test/CMakeFiles/CMakeError.log".
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at /data/cache/platformio/packages/tool-cmake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/data/cache/platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /data/test/.pioenvs/test/CMakeFiles/CMakeTmp
Run Build Command(s):/data/cache/platformio/packages/tool-ninja/ninja cmTC_8a4a2 && [1/2] Building C object CMakeFiles/cmTC_8a4a2.dir/testCCompiler.c.obj
FAILED: CMakeFiles/cmTC_8a4a2.dir/testCCompiler.c.obj
/data/cache/platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-gcc -mlongcalls -o CMakeFiles/cmTC_8a4a2.dir/testCCompiler.c.obj -c testCCompiler.c
/bin/sh: 1: /data/cache/platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-gcc: not found
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
/data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:311 (__project)
CMakeLists.txt:3 (project)
========================= [FAILED] Took 176.74 seconds =========================
I guess its the same error:
/bin/sh: 1: /data/cache/platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-gcc: not found
But why is that file missing?
It's not. It's most likely the wrong type of binary. Are you running a 32-bit OS?
It's not. It's most likely the wrong type of binary. Are you running a 32-bit OS?
Guess its gonna be a 'yes' on that question...
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
There was a problem that some idf-esp libraries were not available for arm. Therefore I'm compiling it on a PC.
There was a problem that some idf-esp libraries were not available for arm. Therefore I'm compiling it on a PC.
Do you know if its anything thats in the pipeline and is going to get fixed?
It was fixed but looks like it is not released yet: https://github.com/espressif/esp-idf/issues/6432
It was fixed but looks like it is not released yet: espressif/esp-idf#6432
Thanks for the link. Any idea when it will be released ?
As the esp-idf was released recently, I was able to flash my S2 mini without a problem now 🥳 I used a config like this:
# [...]
esp32:
board: lolin_s2_mini
framework:
type: arduino
# [...]
@lollokara can you verify and close/update the issue?
The problem
Hi Everyone,
I'm facing issues working on a custom board based on the ESP32-S3-WROOM-1 Module.
I'm able to program said board with arduino using the branch https://github.com/espressif/arduino-esp32/tree/esp32-s3-support.
Since i've read that Esphome is adding support to it i've gone into the rabbithole to get it working. Up until now i've tried every combination possible and so far the only one that produces at least an output is the following: esp32: board: esp32-s3-devkitm-1 variant: esp32s3 framework: type: esp-idf version: latest
With a custom esp32-s3 board file based on the tasmota one.
Attatched is the output for the run command. I'll need some help to figure this out since there is no support for it yet.
Thanks a lot for everyones time.
Which version of ESPHome has the issue?
2022.3.0-dev
What type of installation are you using?
pip
What platform are you using?
ESP32
Example YAML snippet
Anything in the logs that might be useful for us?