Page 1 of 1

how to set up the right IDF_PATH for copy the hello-world example

Posted: Mon Apr 23, 2018 1:32 am
by mkseven32
Hi
follow the ESP-IDF Programming Guide , it shows set up the IDF_PATH as like below:

Code: Select all

export IDF_PATH="C:/msys32/home/11022259/esp/esp-idf"
when i set it right and then to copy the hello-world example to esp directory , it always noting a error that could not find the file or directory.

Code: Select all

$ cp: 无法获取'F:/msys32/home/11022259/esp/esp-idf/examples/get-started/hello-world' 的文件状态(stat): No such file or directory

Re: how to set up the right IDF_PATH for copy the hello-world example

Posted: Mon Apr 23, 2018 2:23 am
by ESP_Angus
If you run the command "pwd" (for "print working directory") when the prompt shows "~/esp", what does it print?

If you run the command "ls" (for "list") when the prompt shows "~/esp", what does it output then? Can you see the esp-idf directory there?

Re: how to set up the right IDF_PATH for copy the hello-world example

Posted: Mon Apr 23, 2018 2:43 am
by mkseven32
hi

it is like the attched pic shows

Re: how to set up the right IDF_PATH for copy the hello-world example

Posted: Mon Apr 23, 2018 3:35 am
by ESP_Angus
If MSYS32 is installed in F:/MSYS32 then this looks like it should work.

You could try changing the IDF_PATH variable value to "/home/11022259/esp/esp-idf" instead and see if this resolves the issue.

Re: how to set up the right IDF_PATH for copy the hello-world example

Posted: Mon Apr 23, 2018 4:25 am
by chegewara
On windows in msys32 absolute path to esp-idf looks like this:

Code: Select all

export IDF_PATH=/disk_letter/root_folder/subfolder/esp-idf
example:

Code: Select all

export IDF_PATH=/C/msys32/home/11022259/esp/esp-idf

Re: how to set up the right IDF_PATH for copy the hello-world example

Posted: Mon Apr 23, 2018 5:22 am
by mkseven32
thanks for everyone , it is the problem of "-" in the hello_world project name.

which right is "hello_world" while i write a wrong name as "hello-world"~~~~~