Skip to content
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

esp-drone compile error #5

Closed
AzollaGit opened this issue Aug 25, 2020 · 14 comments
Closed

esp-drone compile error #5

AzollaGit opened this issue Aug 25, 2020 · 14 comments

Comments

@AzollaGit
Copy link

compile error
大佬好:
我采用最新 esp-idf - mater分支, idf 例程编译没有问题,esp-drone 近百个这样类似的错误,不知道为什么,希望解答!

谢谢!

@leeebo
Copy link
Collaborator

leeebo commented Aug 25, 2020

Clean your project then execute the following commands step by step

cd esp-drone
rm -r build sdkconfig sdkconfig.old
idf.py set-target esp32s2
idf.py build

@AzollaGit
Copy link
Author

Clean your project then execute the following commands step by step

cd esp-drone
rm -r build sdkconfig sdkconfig.old
idf.py set-target esp32s2
idf.py build

你好! 我按照你给的指令依次执行,还是报相同的错误。 esp-drone 是用git clone 下来的。

@leeebo
Copy link
Collaborator

leeebo commented Aug 25, 2020

Please add more details to reproduce the failure:

OS:{windows 7 8 10/ubuntu/Mac ...?}
esp-idf version: {branch} {commitID} {any change?}{submodule ready?} 
toolchain:{all update?} //you can rerun install.xx to update it

@AzollaGit
Copy link
Author

请添加更多详细信息以重现故障:

OS:{windows 7 8 10/ubuntu/Mac ...?}
esp-idf version: {branch} {commitID} {any change?}{submodule ready?} 
toolchain:{all update?} //you can rerun install.xx to update it

你好!

OS: ubuntu 18.04 TLS
esp-idf: version: { master } {Merge: 9e45dca65 ee135b8e2}
{commit 6c17e3a64c02eff3a4f726ce4b7248ce11810833 (HEAD -> master, origin/master, origin/HEAD) }
有执行 git pull git submodule update --init --recursive
toolchain: 参考官方教程执行 cd esp-idf ./install.sh
测试 $IDF_PATH/examples/get-started/hello_world idf.py set-target esp32s2 编译通过。
谢谢!

@leeebo
Copy link
Collaborator

leeebo commented Aug 26, 2020

Hi your code seems in a wrong place, have you changed the directory structure ?

1

@AzollaGit
Copy link
Author

嗨,你的代码似乎在一个错误的地方,你改变了目录结构?

1

Hi
I didn't make any changes to Git clone. An error will still be reported if the following instructions are executed.

idf.py set-target esp32s2
idf.py build
compile error

@AzollaGit
Copy link
Author

你好:

esp-idf { commit 98d5b5dfd94c5dbc0c50be8d100651e118b56a0f (HEAD -> origin_v4.2, origin/release/v4.2, espressif/release/v4.2) }
当使用: idf.py set-target esp32 编译esp-drone 可以通过。
使用 idf.py set-target esp32s2 会报一下错误;请问是esp32s2不支持吗? 开源硬件使用的是esp32s2,相信应该是支持的吧。
compile error

@leeebo
Copy link
Collaborator

leeebo commented Aug 27, 2020

你好:

esp-idf { commit 98d5b5dfd94c5dbc0c50be8d100651e118b56a0f (HEAD -> origin_v4.2, origin/release/v4.2, espressif/release/v4.2) }
当使用: idf.py set-target esp32 编译esp-drone 可以通过。
使用 idf.py set-target esp32s2 会报一下错误;请问是esp32s2不支持吗? 开源硬件使用的是esp32s2,相信应该是支持的吧。
compile error

Yes, esp32s2 is also supported. The pxCurrentTCB bug comes from esp-idf , which has been fixed in master branch. You can refer commit: 600665a to modify your esp-idf code.

@AzollaGit
Copy link
Author

你好:

esp-idf = 提交 98d5b5dfd94c5dbc0c50be8d100651e118b56a0f (HEAD -> origin_v4.2, 原点/发布/v4.2, espressif/发布/v4.2) = idf.py 设定目标 esp32esp- drone = [idf.py设定目标 esp32s2];][esp32s2]?
compile error

是,esp32s2 也受支持。错误来自esp-idf,它已被固定在主分支中。您可以引用提交:600665a来修改您的 esp-idf 代码。pxCurrentTCB

谢谢解答,问题已经解决了,顺利编译通过。 非常感谢!

@leeebo
Copy link
Collaborator

leeebo commented Aug 31, 2020

Hi @AzollaGit, would you please add your cmake and ninja version below to help us find the bug.

you can run:

cmake --version
ninja --version

to get the installed version in your PC.

@leeebo
Copy link
Collaborator

leeebo commented Aug 31, 2020

@AzollaGit We have added a new commit to fix the bug, you can checkout your ESP-IDF to master to try it.

@AzollaGit
Copy link
Author

@AzollaGit我们添加了一个新的提交来修复错误, 您可以签出您的 ESP - idf 以掌握以尝试它。

你好!
cmake version 3.17.2
ninja version 1.8.2
得知你有新的提交;我在esp-drone 目录执行 git pull 后,会以下报错,我查询是esp-idf/components/esp_adc_cal 下
image

image

@leeebo
Copy link
Collaborator

leeebo commented Sep 1, 2020

@AzollaGit我们添加了一个新的提交来修复错误, 您可以签出您的 ESP - idf 以掌握以尝试它。

你好!
cmake version 3.17.2
ninja version 1.8.2
得知你有新的提交;我在esp-drone 目录执行 git pull 后,会以下报错,我查询是esp-idf/components/esp_adc_cal 下
image

image

You need to update your esp-idf to latest commit.

@leeebo
Copy link
Collaborator

leeebo commented Sep 7, 2020

Could you please close the issue if your problem got resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants