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

mkseven32
Posts: 32
Joined: Mon Apr 23, 2018 1:21 am

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

Postby mkseven32 » Mon Apr 23, 2018 1:32 am

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
Attachments
2018-04-23_103911.png
2018-04-23_103911.png (49.67 KiB) Viewed 547 times
Last edited by mkseven32 on Mon Apr 23, 2018 2:39 am, edited 1 time in total.

ESP_Angus
Posts: 1267
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Mon Apr 23, 2018 2:23 am

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?

mkseven32
Posts: 32
Joined: Mon Apr 23, 2018 1:21 am

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

Postby mkseven32 » Mon Apr 23, 2018 2:43 am

hi

it is like the attched pic shows
Attachments
2018-04-23_104430.png
2018-04-23_104430.png (16 KiB) Viewed 547 times

ESP_Angus
Posts: 1267
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Mon Apr 23, 2018 3:35 am

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.

chegewara
Posts: 529
Joined: Wed Jun 14, 2017 9:00 pm

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

Postby chegewara » Mon Apr 23, 2018 4:25 am

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

mkseven32
Posts: 32
Joined: Mon Apr 23, 2018 1:21 am

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

Postby mkseven32 » Mon Apr 23, 2018 5:22 am

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"~~~~~

Return to “ESP32 IDF”

Who is online

Users browsing this forum: No registered users and 14 guests