Closed FutureProofHomes closed 2 months ago
Somehow the id and firmware are not read correctly from the FPGA on esphome setup. But your fpga_info run shows the correct ones. It should not be related to the issue of the RPi Kernel as this seems to be a problem within the esphome firmware running on the ESP32.
Could you try using this in your config, instead of removing the complete framework section?
esp32:
board: esp32dev
framework:
type: esp-idf
version: recommended
Changing my config to:
esp32:
board: esp32dev
framework:
type: esp-idf
version: recommended
Gives error: ModuleNotFoundError: No module named 'chardet'
(.venv) braddavis@BradBookPro esphome_matrixio % esphome compile matrix_voice.yaml
INFO ESPHome 2023.11.6
INFO Reading configuration matrix_voice.yaml...
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Compiling app...
*********************************************************************************************************************************************************
Obsolete PIO Core v6.1.11 is used (previous was 6.1.13)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/en/latest/core/installation/troubleshooting.html
*********************************************************************************************************************************************************
Processing matrixio-voice (board: esp32dev; framework: espidf; platform: platformio/espressif32@5.4.0)
---------------------------------------------------------------------------------------------------------------------------------------------------------
Tool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
INFO Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Unpacking [####################################] 100%
Tool Manager: toolchain-xtensa-esp32@8.4.0+2021r2-patch5 has been installed!
INFO toolchain-xtensa-esp32@8.4.0+2021r2-patch5 has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40502.0
INFO Installing platformio/tool-scons @ ~4.40502.0
Unpacking [####################################] 100%
Tool Manager: tool-scons@4.40502.0 has been installed!
INFO tool-scons@4.40502.0 has been installed!
Tool Manager: Removing tool-scons @ 4.40600.0
INFO Removing tool-scons @ 4.40600.0
Tool Manager: tool-scons@4.40600.0 has been removed!
INFO tool-scons@4.40600.0 has been removed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- framework-espidf @ 3.40405.230623 (4.4.5)
- tool-cmake @ 3.16.4
- tool-ninja @ 1.9.0
- toolchain-esp32ulp @ 2.35.0-20220830
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.39.3 (Apple Git-145)")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Configuring incomplete, errors occurred!
See also "/Users/braddavis/Developer/esphome_matrixio/.esphome/build/matrixio-voice/.pioenvs/matrixio-voice/CMakeFiles/CMakeOutput.log".
fatal: not a git repository (or any of the parent directories): .git
CMake Error at /Users/braddavis/.platformio/packages/framework-espidf@3.40405.230623/tools/cmake/build.cmake:463 (message):
Traceback (most recent call last):
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/requests/compat.py", line 11, in <module>
import chardet
ModuleNotFoundError: No module named 'chardet'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/idf_component_manager/prepare_components/__main__.py", line 4, in <module>
from .prepare import main
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/idf_component_manager/prepare_components/prepare.py", line 18, in <module>
from ..core import ComponentManager
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/idf_component_manager/core.py", line 18, in <module>
import requests
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/requests/__init__.py", line 45, in <module>
from .exceptions import RequestsDependencyWarning
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/requests/exceptions.py", line 9, in <module>
from .compat import JSONDecodeError as CompatJSONDecodeError
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/requests/compat.py", line 13, in <module>
import charset_normalizer as chardet
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/__init__.py", line 24, in <module>
from .api import from_bytes, from_fp, from_path, is_binary
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/api.py", line 5, in <module>
from .cd import (
File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/cd.py", line 14, in <module>
from .md import is_suspiciously_successive_range
ImportError:
dlopen(/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so,
0x0002): tried:
'/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so'
(mach-o file, but is an incompatible architecture (have 'arm64', need
'x86_64')),
'/System/Volumes/Preboot/Cryptexes/OS/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so'
(no such file),
'/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so'
(mach-o file, but is an incompatible architecture (have 'arm64', need
'x86_64'))
Call Stack (most recent call first):
/Users/braddavis/.platformio/packages/framework-espidf@3.40405.230623/tools/cmake/project.cmake:393 (idf_build_process)
CMakeLists.txt:3 (project)
============================================================== [FAILED] Took 5.78 seconds ==============================================================
I'm working on solving this now.
This might be a Mac M1 issue. I solved my build issue by:
Enter venv:
source scripts/setup_esphome.sh
Then:
(.venv) braddavis@BradBookPro esphome_matrixio % pip install chardet
Then after some googling I learned I needed to copy the chardet
package that pip installed to the correct path. Python venvs confuse me. :)
(.venv) braddavis@BradBookPro esphome_matrixio % cp -R /Users/braddavis/Developer/esphome_matrixio/.venv/lib/python3.11/site-packages/chardet /Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages
Matrix Voice ESP32 is connected to RPI Zero 2W running Lastest Bookworm OS w/ Linux Kernel 6.1.0-rpi7-rpi-v8 aarch64. I've successfully flashed
firmware-factory.bin
to the Matrix Voice ESP32. Upon booting, the Matrix Voice shows white LEDs that are intermittently blinking. I cannot connect Home Assistant ESPHome. Thanks for help and great project here!Is this issue cause by new GPIO layout discussed here? Or maybe it's because I modified my
matrix_voice.yaml
file to make the build succeed?Run
sudo minicom -D /dev/ttyS0
to see logs:GPIO Debug:
Checking the FPGA info:
NOTE! I did remove the the following lines from the
matrix_voice.yaml
esp32 section so the build would succeed:Here is my entire
matrix_voice.yaml
: