Basic Hello World ESP-IDF failed
Basic Hello World ESP-IDF failed
Hello, I have installed ESP idf by the manual shown in the link below. and copied the hello example folder to the esp folder but when I tried to do the “make” command to compile the example , it gave me the following errors shown in red arrow. In the attached file.
Also I tried to update the module later as shown below and it to gives me error.
Where did I go wrong?
https://docs.espressif.com/projects/esp ... idf-legacy
Also I tried to update the module later as shown below and it to gives me error.
Where did I go wrong?
https://docs.espressif.com/projects/esp ... idf-legacy
- Attachments
-
- 3.JPG (289.39 KiB) Viewed 7108 times
-
- Posts: 8921
- Joined: Thu Nov 26, 2015 4:08 am
Re: Basic Hello World ESP-IDF failed
Are you sure you added the '--recursive'? If you're unsure, try this:
Code: Select all
cd esp-idf
git submodule update --init --recursive
Re: Basic Hello World ESP-IDF failed
Hello, I have tried the command as shown bellow,it gave me the following output with error,
then i tried to do make the hello world and gor the same thing.
Where could i go wrong?
Thanks.
Asus@LAPTOP-SRMU2837 MINGW32 ~/esp/esp-idf
$ git submodule update --init --recursive
error: The following untracked working tree files would be overwritten by checkout:
.gitignore
.travis.yml
AUTHORS
ChangeLog
LICENSE
Makefile.am
README.markdown
THANKS
appveyor.yml
autogen.sh
builds/.gitignore
builds/msvc/build/buildall.bat
builds/msvc/build/buildbase.bat
builds/msvc/properties/ARM.props
builds/msvc/properties/Common.props
builds/msvc/properties/DLL.props
builds/msvc/properties/Debug.props
builds/msvc/properties/DebugDEXE.props
builds/msvc/properties/DebugDLL.props
builds/msvc/properties/DebugLEXE.props
builds/msvc/properties/DebugLIB.props
builds/msvc/properties/DebugLTCG.props
builds/msvc/properties/DebugSEXE.props
builds/msvc/properties/EXE.props
builds/msvc/properties/LIB.props
builds/msvc/properties/LTCG.props
builds/msvc/properties/Link.props
builds/msvc/properties/Messages.props
builds/msvc/properties/Output.props
builds/msvc/properties/Release.props
builds/msvc/properties/ReleaseDEXE.props
builds/msvc/properties/ReleaseDLL.props
builds/msvc/properties/ReleaseLEXE.props
builds/msvc/properties/ReleaseLIB.props
builds/msvc/properties/ReleaseLTCG.props
builds/msvc/properties/ReleaseSEXE.props
builds/msvc/properties/Win32.props
builds/msvc/properties/x64.props
builds/msvc/version.h
builds/msvc/vs2010/libsodium.import.props
builds/msvc/vs2010/libsodium.import.xml
builds/msvc/vs2010/libsodium.sln
builds/msvc/vs2010/libsodium/libsodium.props
builds/msvc/vs2010/libsodium/libsodium.vcxproj
builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters
builds/msvc/vs2010/libsodium/libsodium.xml
builds/msvc/vs2012/libsodium.import.props
builds/msvc/vs2012/libsodium.import.xml
builds/msvc/vs2012/libsodium.sln
builds/msvc/vs2012/libsodium/libsodium.props
builds/msvc/vs2012/libsodium/libsodium.vcxproj
builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters
builds/msvc/vs2012/libsodium/libsodium.xml
builds/msvc/vs2013/libsodium.import.props
builds/msvc/vs2013/libsodium.import.xml
builds/msvc/vs2013/libsodium.sln
builds/msvc/vs2013/libsodium/libsodium.props
builds/msvc/vs2013/libsodium/libsodium.vcxproj
builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters
builds/msvc/vs2013/libsodium/libsodium.xml
builds/msvc/vs2015/libsodium.import.props
builds/msvc/vs2015/libsodium.import.xml
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.gitattributes
.gitignore
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.github/issue_template.md
.github/pull_request_template.md
.gitignore
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.editorconfig
.github/main.workflow
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.clang-format
.gitignore
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.commit_docs.sh
Doxyfile.in
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.travis.yml
FUZZING.md
LICENSE
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.gitattributes
.gitignore
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.gitignore
.travis.yml
Please move or remove them before you switch branches.
Aborting
Unable to checkout '70170c28c844a4786e75efc626e1aeebc93caebc' in submodule path 'components/libsodium/libsodium'
Unable to checkout 'c9e3b53c6f04052943f97210b858cec805cc98d9' in submodule path 'components/lwip/lwip'
Unable to checkout 'f5f2e5926cd294ae7cb579ff6a12ad9303caeb6e' in submodule path 'components/mbedtls/mbedtls'
Unable to checkout '566b0349843edaedce9ad958bd47cd328b66ffbf' in submodule path 'components/mqtt/esp-mqtt'
Unable to checkout '3bcc416e13cc790e2fb45fcfe9111d38609c5032' in submodule path 'components/nghttp/nghttp2'
Unable to checkout 'dac1a65feac4ad72f612aab99f487056fbcf5c1a' in submodule path 'components/protobuf-c/protobuf-c'
Unable to checkout 'f5e26c4e933189593a71c6b82cda381a7b21e41c' in submodule path 'components/spiffs/spiffs'
Unable to checkout '7d2bf62b7e6afaf38153041a9d53c21aeeca9a25' in submodule path 'components/unity/unity'
Unable to checkout '7e8e249990ec491ec15990cf95b6d871a66cf64a' in submodule path 'examples/build_system/cmake/import_lib/main/lib/tinyxml2'
then i tried to do make the hello world and gor the same thing.
Where could i go wrong?
Thanks.
Asus@LAPTOP-SRMU2837 MINGW32 ~/esp/esp-idf
$ git submodule update --init --recursive
error: The following untracked working tree files would be overwritten by checkout:
.gitignore
.travis.yml
AUTHORS
ChangeLog
LICENSE
Makefile.am
README.markdown
THANKS
appveyor.yml
autogen.sh
builds/.gitignore
builds/msvc/build/buildall.bat
builds/msvc/build/buildbase.bat
builds/msvc/properties/ARM.props
builds/msvc/properties/Common.props
builds/msvc/properties/DLL.props
builds/msvc/properties/Debug.props
builds/msvc/properties/DebugDEXE.props
builds/msvc/properties/DebugDLL.props
builds/msvc/properties/DebugLEXE.props
builds/msvc/properties/DebugLIB.props
builds/msvc/properties/DebugLTCG.props
builds/msvc/properties/DebugSEXE.props
builds/msvc/properties/EXE.props
builds/msvc/properties/LIB.props
builds/msvc/properties/LTCG.props
builds/msvc/properties/Link.props
builds/msvc/properties/Messages.props
builds/msvc/properties/Output.props
builds/msvc/properties/Release.props
builds/msvc/properties/ReleaseDEXE.props
builds/msvc/properties/ReleaseDLL.props
builds/msvc/properties/ReleaseLEXE.props
builds/msvc/properties/ReleaseLIB.props
builds/msvc/properties/ReleaseLTCG.props
builds/msvc/properties/ReleaseSEXE.props
builds/msvc/properties/Win32.props
builds/msvc/properties/x64.props
builds/msvc/version.h
builds/msvc/vs2010/libsodium.import.props
builds/msvc/vs2010/libsodium.import.xml
builds/msvc/vs2010/libsodium.sln
builds/msvc/vs2010/libsodium/libsodium.props
builds/msvc/vs2010/libsodium/libsodium.vcxproj
builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters
builds/msvc/vs2010/libsodium/libsodium.xml
builds/msvc/vs2012/libsodium.import.props
builds/msvc/vs2012/libsodium.import.xml
builds/msvc/vs2012/libsodium.sln
builds/msvc/vs2012/libsodium/libsodium.props
builds/msvc/vs2012/libsodium/libsodium.vcxproj
builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters
builds/msvc/vs2012/libsodium/libsodium.xml
builds/msvc/vs2013/libsodium.import.props
builds/msvc/vs2013/libsodium.import.xml
builds/msvc/vs2013/libsodium.sln
builds/msvc/vs2013/libsodium/libsodium.props
builds/msvc/vs2013/libsodium/libsodium.vcxproj
builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters
builds/msvc/vs2013/libsodium/libsodium.xml
builds/msvc/vs2015/libsodium.import.props
builds/msvc/vs2015/libsodium.import.xml
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.gitattributes
.gitignore
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.github/issue_template.md
.github/pull_request_template.md
.gitignore
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.editorconfig
.github/main.workflow
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.clang-format
.gitignore
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.commit_docs.sh
Doxyfile.in
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.travis.yml
FUZZING.md
LICENSE
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.gitattributes
.gitignore
Please move or remove them before you switch branches.
Aborting
error: The following untracked working tree files would be overwritten by checkout:
.gitignore
.travis.yml
Please move or remove them before you switch branches.
Aborting
Unable to checkout '70170c28c844a4786e75efc626e1aeebc93caebc' in submodule path 'components/libsodium/libsodium'
Unable to checkout 'c9e3b53c6f04052943f97210b858cec805cc98d9' in submodule path 'components/lwip/lwip'
Unable to checkout 'f5f2e5926cd294ae7cb579ff6a12ad9303caeb6e' in submodule path 'components/mbedtls/mbedtls'
Unable to checkout '566b0349843edaedce9ad958bd47cd328b66ffbf' in submodule path 'components/mqtt/esp-mqtt'
Unable to checkout '3bcc416e13cc790e2fb45fcfe9111d38609c5032' in submodule path 'components/nghttp/nghttp2'
Unable to checkout 'dac1a65feac4ad72f612aab99f487056fbcf5c1a' in submodule path 'components/protobuf-c/protobuf-c'
Unable to checkout 'f5e26c4e933189593a71c6b82cda381a7b21e41c' in submodule path 'components/spiffs/spiffs'
Unable to checkout '7d2bf62b7e6afaf38153041a9d53c21aeeca9a25' in submodule path 'components/unity/unity'
Unable to checkout '7e8e249990ec491ec15990cf95b6d871a66cf64a' in submodule path 'examples/build_system/cmake/import_lib/main/lib/tinyxml2'
-
- Posts: 8921
- Joined: Thu Nov 26, 2015 4:08 am
Re: Basic Hello World ESP-IDF failed
...how did you end up with so many changes? Did you try to copy a release zip over the idf directory or something?
You can try doing a 'git reset --hard HEAD' in the idf directory before running the commands I quoted, that might clean things up. But if it doesn't, rather than try cleaning up the mess, you may try removing the esp-idf directory and following the instructions again.
You can try doing a 'git reset --hard HEAD' in the idf directory before running the commands I quoted, that might clean things up. But if it doesn't, rather than try cleaning up the mess, you may try removing the esp-idf directory and following the instructions again.
Re: Basic Hello World ESP-IDF failed
Hello, i have done the steps again as shown in the DOCX document link ,i ran install and export in the esp-idf-4,then i copied the hello world example but i dont know what should i do next in order to run it.
What is the formal steps i shown do to run the hello world example?
Thanks.
https://docs.espressif.com/projects/esp ... setup.html
https://drive.google.com/file/d/1eDoSZ9 ... sp=sharing
What is the formal steps i shown do to run the hello world example?
Thanks.
https://docs.espressif.com/projects/esp ... setup.html
https://drive.google.com/file/d/1eDoSZ9 ... sp=sharing
-
- Posts: 8921
- Joined: Thu Nov 26, 2015 4:08 am
Re: Basic Hello World ESP-IDF failed
Erm... the getting started guide tells you exactly how to? You seem to have arrived at step 6, do you have any problems with that?
Re: Basic Hello World ESP-IDF failed
Hello,I have tried to do the next step its gives me the follwong error with MAKE shown in the document of the attached link.
What could be done?
Thanks.
https://docs.google.com/document/d/1Jdt ... sp=sharing
What could be done?
Thanks.
https://docs.google.com/document/d/1Jdt ... sp=sharing
Re: Basic Hello World ESP-IDF failed
As the error suggest, the CMake is seeing a "build" folder which "doesn't seem to be a CMake build directory" so it is "Refusing to automatically delete files". Try deleting the build folder in your "hello_world" project and then run "idf.py set-target esp32" again.
Re: Basic Hello World ESP-IDF failed
Hello ,think i did ok till the last step of flashing.
In the link bellow shown my device connected and that its using com3 port
but when i write the flashing idf.py -p 3 flash command to the device of ESP32-devKitC it shows me the error shown in the document.
Where did i go wrong?
Thanks.
https://docs.google.com/document/d/180q ... sp=sharing
In the link bellow shown my device connected and that its using com3 port
but when i write the flashing idf.py -p 3 flash command to the device of ESP32-devKitC it shows me the error shown in the document.
Where did i go wrong?
Thanks.
https://docs.google.com/document/d/180q ... sp=sharing
Re: Basic Hello World ESP-IDF failed
Did you try:
Code: Select all
idf.py -p com3 flash
Who is online
Users browsing this forum: awegel, StanInexeon and 124 guests