Cannot build using ESP-IDF 5.4 because of missing bootloader log configuration

bpare95
Posts: 2
Joined: Tue Mar 18, 2025 3:24 pm

Cannot build using ESP-IDF 5.4 because of missing bootloader log configuration

Postby bpare95 » Tue Mar 18, 2025 3:48 pm

I recently updated to ESP-IDF 5.4 from 5.1 using the pre-cloned package from here: https://dl.espressif.com/github_assets/ ... f-v5.4.zip


After deleting and re-creating my sdkconfig file via idf.py menuconfig, when attempting to build using this IDF verison (idf.py build), I get multiple errors about a missing bootloader log level definition (specifically CONFIG_BOOTLOADER_LOG_LEVEL). Upon closer inspection, it looks like running menuconfig deleted the entire bootloader configuration section that was previously there on 5.1, and I do not see any option in the menuconfig under the "bootloader Config" named "Log" like the documentation here would imply: https://docs.espressif.com/projects/esp ... onfig.html

To get around this, I manually copied in the old working bootloader configuration into the new sdkconfig. I re-ran idf.py build and the bootloader config section just deletes itself. I don't understand how I'm supposed to build if the default settings in the pre-generated sdkconfig don't even work, and my modified settings just delete themselves when I manually change them? Has anyone run into this? I don't understand why it seems like bootloader Log level options have been disabled in 5.4.

Thanks for any help.

bpare95
Posts: 2
Joined: Tue Mar 18, 2025 3:24 pm

Re: Cannot build using ESP-IDF 5.4 because of missing bootloader log configuration

Postby bpare95 » Wed Mar 19, 2025 12:29 pm

Update for more information: I downloaded the 5.2.5 archived version and this is NOT an issue. The log configurations work fine and I have no issues building. However, this is not a fix for me as I would like to be on the latest version.

PollysCracker
Posts: 17
Joined: Fri Jul 19, 2024 11:08 pm

Re: Cannot build using ESP-IDF 5.4 because of missing bootloader log configuration

Postby PollysCracker » Mon Jun 02, 2025 3:12 pm

I have tried upgrading from idf 5.3.2 to 5.4.1 but failed catastrophically, multiple times, through the official download page ( https://dl.espressif.com/dl/esp-idf/ - 5.4.1 offline installer to manual install using the provided release zip file ( https://github.com/espressif/esp-idf/re ... v5.4.1.zip ) .

ESP-IDE can't build, not even a new project, the build always returns this error:

Code: Select all

CMake Error at C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/gdbinit.cmake:40 (file):
  file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
  exactly three arguments.
Call Stack (most recent call first):
  C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/project.cmake:356 (__generate_gdbinit)
  C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/project.cmake:923 (__project_info)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
cmake --build . -- -v
ninja: error: loading 'build.ninja': The system cannot find the file specified.
After inspecting C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/gdbinit.cmake:40 verified the path: C:\Espressif\frameworks\esp-idf-v5.4.1>echo %ESP_ROM_ELF_DIR%
C:\Espressif\tools\esp-rom-elfs\20241011\

What is going on, i tried reinstalling everything multiple times already, always same result, on multiple computers.
How to use idf 5.4.1??

EDIT:
the toolchain and framework 5.4.1 work perfectly fine when using the esp-idf cmd prompt (idf.py build etc)
When using the ide(im currently on 3.1 but also tested this with ide 3.4) there is alot of things that are not being recieved by cmake/build ninja.

when using the terminal in esp ide and first running the export.bat in the framework 5.4.1 directory and then i navigate to my project to build it like that using the idf.py build command but in the terminal, it is safe to say that the problem comes from the ide invironment, i now get the following output:

Code: Select all

C:\Espressif\frameworks\esp-idf-v5.4.1>export.bat
Activating ESP-IDF 5.4
Setting IDF_PATH to 'C:\Espressif\frameworks\esp-idf-v5.4.1'.
* Checking python version ... 3.13.3
* Checking python dependencies ... OK
* Deactivating the current ESP-IDF environment (if any) ... OK
* Establishing a new ESP-IDF environment ... OK
* Identifying shell ... cmd.exe
* Detecting outdated tools in system ... Found tools that are not used by active ESP-IDF version.
For removing old versions of amazon-corretto-11-x64-windows-jdk, esp-clang, esp-rom-elfs, espressif-ide, idf-driver, idf-python-wheels, riscv32-esp-elf, xtensa-esp-elf use command 'python.exe C:\Espressif\frameworks\esp-idf-v5.4.1\tools\idf_tools.py 
uninstall'
To free up even more space, remove installation packages of those tools.
Use option python.exe C:\Espressif\frameworks\esp-idf-v5.4.1\tools\idf_tools.py uninstall --remove-archives.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build


C:\Espressif\frameworks\esp-idf-v5.4.1>cd C:\Users\***\workspace\12354

C:\Users\***\workspace\12354>idf.py build
Executing action: all (aliases: build)
Running cmake in directory C:\Users\***\workspace\12354\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.4_py3.13_env\Scripts\python.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 C:\Users\***\workspace\12354"...
-- IDF_TARGET is not set, guessed 'esp32' from sdkconfig 'C:/Users/***/workspace/12354/sdkconfig'
-- Found Git: C:/Espressif/tools/idf-git/2.44.0/bin/git.exe (found version "2.44.0.windows.1")
CMake Warning at C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/project.cmake:566 (message):
  enabled ccache in build but ccache program not found
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: xtensa-esp32-elf-gcc
CMake Error at C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/project.cmake:571 (__project):
  The CMAKE_C_COMPILER:

    xtensa-esp32-elf-gcc

  is not a full path and was not found in the PATH.  Perhaps the extension is
  missing?

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


CMake Error at C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/project.cmake:571 (__project):
  The CMAKE_CXX_COMPILER:

    xtensa-esp32-elf-g++

  is not a full path and was not found in the PATH.  Perhaps the extension is
  missing?

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


CMake Error at C:/Espressif/frameworks/esp-idf-v5.4.1/tools/cmake/project.cmake:571 (__project):
  The CMAKE_ASM_COMPILER:

    xtensa-esp32-elf-gcc

  is not a full path and was not found in the PATH.  Perhaps the extension is
  missing?

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
HINT: Try to reinstall the toolchain for the chip that you trying to use. 
For more information run 'idf.py docs -sp get-started/#installation' and follow the instructions for your system
cmake failed with exit code 1, output of the command is in the C:\Users\***\workspace\12354\build\log\idf_py_stderr_output_25416 and C:\Users\***\workspace\12354\build\log\idf_py_stdout_output_25416
EDIT2:
it works on eclipse aswell, i guess i'm moving to eclipse with esp-ide instead of standalone esp-ide

Who is online

Users browsing this forum: Semrush [Bot] and 3 guests