Skip to content

WIP: ESP32: Fix tcpip adapter in esp-idf v5.0. #8777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

IhorNehrutsa
Copy link
Contributor

I try to build MicroPython with esp-idf v5.0

cd ~/esp-idf
git checkout release/v5.0
git submodule update --init --recursive
./install.sh
. ./export.sh

Error log:

-- Building ESP-IDF components for target esp32
CMake Error at /home/pc/esp-idf/tools/cmake/build.cmake:207 (message):
  Failed to resolve component 'esp32'.
Call Stack (most recent call first):
  /home/pc/esp-idf/tools/cmake/build.cmake:243 (__build_resolve_and_add_req)
  /home/pc/esp-idf/tools/cmake/build.cmake:538 (__build_expand_requirements)
  /home/pc/esp-idf/tools/cmake/project.cmake:434 (idf_build_process)
  CMakeLists.txt:58 (project)


-- Configuring incomplete, errors occurred!
See also "/home/pc/micropython/ports/esp32/build-GENERIC/CMakeFiles/CMakeOutput.log".
FAILED: build.ninja 
/usr/bin/cmake -S/home/pc/micropython/ports/esp32 -B/home/pc/micropython/ports/esp32/build-GENERIC
ninja: error: rebuilding 'build.ninja': subcommand failed
ninja failed with exit code 1
make: *** [Makefile:34: all] Error 2

Can anyone resolve cmake eroor,?

@dpgeorge
Copy link
Member

Can anyone resolve cmake eroor,?

Maybe remove this line in main/CMakeLists.txt: list(APPEND IDF_COMPONENTS esp32)

@IhorNehrutsa
Copy link
Contributor Author

cd ~/esp-idf/examples/get-started/hello_world/
idf.py build

Output is ok:

...
Project build complete. To flash, run this command:
...

@IhorNehrutsa
Copy link
Contributor Author

Maybe remove this line in main/CMakeLists.txt: list(APPEND IDF_COMPONENTS esp32)
Yes.
Thanks @dpgeorge

@dpgeorge
Copy link
Member

I'll close this in favour of #11528, which has WiFi working on IDF v5.0.1.

@dpgeorge dpgeorge closed this May 17, 2023
@IhorNehrutsa IhorNehrutsa deleted the fix_tcpip_adapter_idf5 branch July 10, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants