Setup set-target esp32 error

eli$84469
Posts: 2
Joined: Tue Dec 17, 2024 11:55 am

Setup set-target esp32 error

Postby eli$84469 » Mon Dec 23, 2024 3:49 am

<r>Hello to whom this concerns, <br/>
<br/>
I'm on a pi 5 and new to micro-controllers. I am trying to use an esp-wroom-32 development board. <br/>
<br/>
I am trying to set up the the framework IDF following a youtube video (<URL url="https://www.youtube.com/watch?v=dOVjb2w ... jb2wXI84<e>[/url]</e></URL>). I installed the framework and used the create project command. I got to the part where I'm in folder ~/esp-idf/projects/blink-led/main and I'm running <CODE><s>

Code: Select all

</s>idf.py set-target esp32<e>
</e></CODE>.<br/>
<br/>
I get an error message saying the following about CMake issues below. I attached the files listed at the end (CMake output log, stderr output, stdout output). I'm not sure how to parse any of this to find a solution. Any help as to how to move forward from here would be greatly appreciated. <br/>
<br/>

<CODE><s>

Code: Select all

</s>Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/home/lie/esp-idf/projects/blink-led/main/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig will be created.
Running cmake in directory /home/lie/esp-idf/projects/blink-led/main/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/lie/.espressif/python_env/idf5.5_py3.11_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/lie/esp-idf/projects/blink-led/main"...
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:1 (idf_component_register):
  Unknown CMake command "idf_component_register".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.25)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/lie/esp-idf/projects/blink-led/main/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the /home/lie/esp-idf/projects/blink-led/main/build/log/idf_py_stderr_output_4317 and /home/lie/esp-idf/projects/blink-led/main/build/log/idf_py_stdout_output_4317
<e>
</e></CODE>

<br/>
Thank you</r>
Attachments
CMakeOutput.log
(41.62 KiB) Downloaded 68 times
idf_py_stdout_output_21444.txt
(636 Bytes) Downloaded 67 times
idf_py_stderr_output_21444.txt
(983 Bytes) Downloaded 68 times

eli$84469
Posts: 2
Joined: Tue Dec 17, 2024 11:55 am

Re: Setup set-target esp32 error

Postby eli$84469 » Sat Jan 04, 2025 3:54 pm

This issue has been resolved. Turns out that I need to run the "idf.py set-target esp32" command in the "blink-led" location instead of main. What I did was remove the build and sdkconfig files and folders with the rm command from the main folder and ran the set-target command in the directory before it. I was able to run that the next step which is "idf.py build" and it ran just fine.

Someguy22
Posts: 9
Joined: Wed Jan 08, 2025 4:51 am

Re: Setup set-target esp32 error

Postby Someguy22 » Wed Jan 08, 2025 10:19 pm

What do you mean by the "in the "blink-led" location instead of main" ? Are you not running this command in a terminal window in VSCode ?

Who is online

Users browsing this forum: Google [Bot] and 56 guests