ESP32 project fails to build

Hi, Im trying to build Meatloaf-speciality (GitHub - idolpx/meatloaf-specialty: Meatloaf for FujiNet) but I cant make it work.
I have tried to remove and reinstall Python and PlatformIO, but its just the same.

When I run pio run I get the following error and I can make sense of it…

Processing lolin-d32-pro (board: esp32-16mb; platform: espressif32@6.4.0; framework: espidf)
----------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Automatic versioning disabled
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-16mb.html
PLATFORM: Espressif 32 (6.4.0) > Meatloaf v1
HARDWARE: ESP32 240MHz, 4.31MB RAM, 16MB Flash
DEBUG: Current (ftdi) On-board (ftdi) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-espidf @ 3.50101.230828 (5.1.1) 
 - tool-cmake @ 3.16.4 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - tool-ninja @ 1.7.1 
 - tool-riscv32-esp-elf-gdb @ 12.1.0+20221002 
 - tool-xtensa-esp-elf-gdb @ 12.1.0+20221002 
 - toolchain-esp32ulp @ 1.23500.220830 (2.35.0) 
 - toolchain-xtensa-esp32 @ 12.2.0+20230208
Reading CMake configuration...
-- git rev-parse returned 'fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).'
-- Building ESP-IDF components for target esp32
Processing 1 dependencies:
[1/1] idf (5.1.1)
-- Project sdkconfig file /home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.lolin-d32-pro
Loading defaults file /home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults...
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:21 CONFIG_APP_BUILD_TYPE_ELF_RAM was replaced with CONFIG_APP_BUILD_TYPE_RAM
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:485 CONFIG_ESP32_DEFAULT_CPU_FREQ_80 was replaced with CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_80
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:486 CONFIG_ESP32_DEFAULT_CPU_FREQ_160 was replaced with CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:487 CONFIG_ESP32_DEFAULT_CPU_FREQ_240 was replaced with CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:488 CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ was replaced with CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:489 CONFIG_ESP32_SPIRAM_SUPPORT was replaced with CONFIG_SPIRAM
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:553 CONFIG_ESP32_ULP_COPROC_ENABLED was replaced with CONFIG_ULP_COPROC_ENABLED
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:554 CONFIG_ESP32_ULP_COPROC_RESERVE_MEM was replaced with CONFIG_ULP_COPROC_RESERVE_MEM
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:555 CONFIG_ESP32_DEBUG_OCDAWARE was replaced with CONFIG_ESP_DEBUG_OCDAWARE
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:556 CONFIG_ESP32_BROWNOUT_DET was replaced with CONFIG_ESP_BROWNOUT_DET
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:557 CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_0 was replaced with CONFIG_ESP_BROWNOUT_DET_LVL_SEL_0
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:558 CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_1 was replaced with CONFIG_ESP_BROWNOUT_DET_LVL_SEL_1
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:559 CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_2 was replaced with CONFIG_ESP_BROWNOUT_DET_LVL_SEL_2
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:560 CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_3 was replaced with CONFIG_ESP_BROWNOUT_DET_LVL_SEL_3
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:561 CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_4 was replaced with CONFIG_ESP_BROWNOUT_DET_LVL_SEL_4
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:562 CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_5 was replaced with CONFIG_ESP_BROWNOUT_DET_LVL_SEL_5
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:563 CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_6 was replaced with CONFIG_ESP_BROWNOUT_DET_LVL_SEL_6
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:564 CONFIG_ESP32_BROWNOUT_DET_LVL_SEL_7 was replaced with CONFIG_ESP_BROWNOUT_DET_LVL_SEL_7
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:565 CONFIG_ESP32_BROWNOUT_DET_LVL was replaced with CONFIG_ESP_BROWNOUT_DET_LVL
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:566 CONFIG_ESP32_REDUCE_PHY_TX_POWER was replaced with CONFIG_ESP_PHY_REDUCE_TX_POWER
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:567 CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1 was replaced with CONFIG_NEWLIB_TIME_SYSCALL_USE_RTC_HRT
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:568 CONFIG_ESP32_TIME_SYSCALL_USE_RTC was replaced with CONFIG_NEWLIB_TIME_SYSCALL_USE_RTC
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:569 CONFIG_ESP32_TIME_SYSCALL_USE_FRC1 was replaced with CONFIG_NEWLIB_TIME_SYSCALL_USE_HRT
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:570 CONFIG_ESP32_TIME_SYSCALL_USE_NONE was replaced with CONFIG_NEWLIB_TIME_SYSCALL_USE_NONE
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:571 CONFIG_ESP32_RTC_CLK_SRC_INT_RC was replaced with CONFIG_RTC_CLK_SRC_INT_RC
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:572 CONFIG_ESP32_RTC_CLK_SRC_EXT_CRYS was replaced with CONFIG_RTC_CLK_SRC_EXT_CRYS
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:573 CONFIG_ESP32_RTC_CLK_SRC_EXT_OSC was replaced with CONFIG_RTC_CLK_SRC_EXT_OSC
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:574 CONFIG_ESP32_RTC_CLK_SRC_INT_8MD256 was replaced with CONFIG_RTC_CLK_SRC_INT_8MD256
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:575 CONFIG_ESP32_RTC_CLK_CAL_CYCLES was replaced with CONFIG_RTC_CLK_CAL_CYCLES
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:576 CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY was replaced with CONFIG_ESP_SLEEP_DEEP_SLEEP_WAKEUP_DELAY
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:577 CONFIG_ESP32_XTAL_FREQ_40 was replaced with CONFIG_XTAL_FREQ_40
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:578 CONFIG_ESP32_XTAL_FREQ_26 was replaced with CONFIG_XTAL_FREQ_26
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:579 CONFIG_ESP32_XTAL_FREQ_AUTO was replaced with CONFIG_XTAL_FREQ_AUTO
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:580 CONFIG_ESP32_XTAL_FREQ was replaced with CONFIG_XTAL_FREQ
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:582 CONFIG_ESP32_COMPATIBLE_PRE_V2_1_BOOTLOADERS was replaced with CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:613 CONFIG_ESP_CONSOLE_UART_NONE was replaced with CONFIG_ESP_CONSOLE_NONE
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:621 CONFIG_ESP_TASK_WDT was replaced with CONFIG_ESP_TASK_WDT_INIT
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:686 CONFIG_OTA_ALLOW_HTTP was replaced with CONFIG_ESP_HTTPS_OTA_ALLOW_HTTP
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:725 CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE was replaced with CONFIG_ESP_COEX_SW_COEXIST_ENABLE
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:726 CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM was replaced with CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:727 CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM was replaced with CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:728 CONFIG_ESP32_WIFI_STATIC_TX_BUFFER was replaced with CONFIG_ESP_WIFI_STATIC_TX_BUFFER
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:729 CONFIG_ESP32_WIFI_TX_BUFFER_TYPE was replaced with CONFIG_ESP_WIFI_TX_BUFFER_TYPE
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:730 CONFIG_ESP32_WIFI_STATIC_TX_BUFFER_NUM was replaced with CONFIG_ESP_WIFI_STATIC_TX_BUFFER_NUM
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:731 CONFIG_ESP32_WIFI_CACHE_TX_BUFFER_NUM was replaced with CONFIG_ESP_WIFI_CACHE_TX_BUFFER_NUM
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:732 CONFIG_ESP32_WIFI_CSI_ENABLED was replaced with CONFIG_ESP_WIFI_CSI_ENABLED
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:733 CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED was replaced with CONFIG_ESP_WIFI_AMPDU_TX_ENABLED
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:734 CONFIG_ESP32_WIFI_TX_BA_WIN was replaced with CONFIG_ESP_WIFI_TX_BA_WIN
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:735 CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED was replaced with CONFIG_ESP_WIFI_AMPDU_RX_ENABLED
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:736 CONFIG_ESP32_WIFI_RX_BA_WIN was replaced with CONFIG_ESP_WIFI_RX_BA_WIN
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:737 CONFIG_ESP32_WIFI_NVS_ENABLED was replaced with CONFIG_ESP_WIFI_NVS_ENABLED
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:738 CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_0 was replaced with CONFIG_ESP_WIFI_TASK_PINNED_TO_CORE_0
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:739 CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1 was replaced with CONFIG_ESP_WIFI_TASK_PINNED_TO_CORE_1
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:740 CONFIG_ESP32_WIFI_SOFTAP_BEACON_MAX_LEN was replaced with CONFIG_ESP_WIFI_SOFTAP_BEACON_MAX_LEN
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:741 CONFIG_ESP32_WIFI_MGMT_SBUF_NUM was replaced with CONFIG_ESP_WIFI_MGMT_SBUF_NUM
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:743 CONFIG_ESP32_WIFI_IRAM_OPT was replaced with CONFIG_ESP_WIFI_IRAM_OPT
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:744 CONFIG_ESP32_WIFI_RX_IRAM_OPT was replaced with CONFIG_ESP_WIFI_RX_IRAM_OPT
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:745 CONFIG_ESP32_WIFI_ENABLE_WPA3_SAE was replaced with CONFIG_ESP_WIFI_ENABLE_WPA3_SAE
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:751 CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE was replaced with CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:752 CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION was replaced with CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:753 CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER was replaced with CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:754 CONFIG_ESP32_PHY_MAX_TX_POWER was replaced with CONFIG_ESP_PHY_MAX_TX_POWER
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:760 CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH was replaced with CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:761 CONFIG_ESP32_ENABLE_COREDUMP_TO_UART was replaced with CONFIG_ESP_COREDUMP_ENABLE_TO_UART
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:762 CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE was replaced with CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:1309 CONFIG_WPA_MBEDTLS_CRYPTO was replaced with CONFIG_ESP_WIFI_MBEDTLS_CRYPTO
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:1310 CONFIG_WPA_DEBUG_PRINT was replaced with CONFIG_ESP_WIFI_DEBUG_PRINT
/home/henrik/dev/henrik/git/meatloaf-specialty/sdkconfig.defaults:1311 CONFIG_WPA_TESTING_OPTIONS was replaced with CONFIG_ESP_WIFI_TESTING_OPTIONS
-- App "Meatloaf_idf" version: fb612b3-dirty
-- Adding linker script /home/henrik/dev/henrik/git/meatloaf-specialty/.pio/build/lolin-d32-pro/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/components/soc/esp32/ld/esp32.peripherals.ld
-- Configuring incomplete, errors occurred!
See also "/home/henrik/dev/henrik/git/meatloaf-specialty/.pio/build/lolin-d32-pro/CMakeFiles/CMakeOutput.log".

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Compiler supported targets: xtensa-esp32-elf

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository: /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/components/openthread/openthread/../../../.git/modules/components/openthread/openthread
CMake Error at /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/tools/cmake/component.cmake:313 (message):
  Include directory
  '/home/henrik/dev/henrik/git/meatloaf-specialty/components/psramfs/psram/src'
  is not a directory.
Call Stack (most recent call first):
  /home/henrik/.platformio/packages/framework-espidf@3.50101.230828/tools/cmake/component.cmake:482 (__component_add_include_dirs)
  components/psramfs/CMakeLists.txt:15 (idf_component_register)



================================================ [FAILED] Took 2.82 seconds ================================================

Environment    Status    Duration
-------------  --------  ------------
lolin-d32-pro  FAILED    00:00:02.816
========================================== 1 failed, 0 succeeded in 00:00:02.816 ==========================================

link to CMakeOutput.log gist:f0ccf2e779ab569a9497cf9014478a2d · GitHub

Please help me in the right direction Im totally clueless!

The project contains no psram folder, only psramfs. The CMake is referencing files that don’t even exist.

Correct this path to psramfs/src/psramfs_nucleus.c and see what happens.

Made the trick when I changed all the references to psram to psramfs in CMakeLists.txt and some #include “psram.h” to “psramfs.h”

Thanks!

Henrik

Better let the project author know about this.

1 Like