openthread组件使用源代码编译出错

aacaac50
Posts: 10
Joined: Thu Nov 11, 2021 10:28 am

openthread组件使用源代码编译出错

Postby aacaac50 » Sun Nov 14, 2021 6:01 pm

使用IDFv4.4版本.
芯片是ESP32.
编译平台是windows.
编译openthread的ot_cil例程.

使用默认配置可以正常编译,但是openthread使用源代码编译(在menuconfig里使能Build esp_openthread libraries from source)的形式再编译ot_cil的话会报错:
CMake Error at ../../../tools/cmake/component.cmake:369 (__component_get_property):
__component_get_property Function invoked with incorrect arguments for
function named: __component_get_property
Call Stack (most recent call first):
../../../components/openthread/CMakeLists.txt:52 (idf_component_get_property)

另外还一个不清楚是不是我操作问题,每次我menuconfig里修改了这个Build esp_openthread libraries from source后,工程默认是按ESP32-H2编译的,就算之前我用idf.py set-target esp32也会被覆盖.

ESP_Eavo
Posts: 186
Joined: Tue Jun 08, 2021 6:23 am

Re: openthread组件使用源代码编译出错

Postby ESP_Eavo » Thu Nov 18, 2021 9:35 am

1. "Build esp_openthread libraries from source" 这个选项不需要打开,这是内部测试用的;
2. ot_cli 的 target 默认设置为 ESP32-H2,不支持其他芯片。建议用默认配置直接编译。

aacaac50
Posts: 10
Joined: Thu Nov 11, 2021 10:28 am

Re: openthread组件使用源代码编译出错

Postby aacaac50 » Fri Nov 19, 2021 2:19 am

你好,感谢回复,我这边需要使用Build esp_openthread libraries from source的原因是我需要修改openthread的OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT常量的值.另外你说的ot_cli 的 target 默认设置为 ESP32-H2,不支持其他芯片,我这边的方案是ESP32+NRF52811(RCP),是说后续ESP-IDF的openthread只支持ESP32-H2了?这种ESP32+RCP的方案后续还会支持吗?

ESP_Shu
Posts: 2
Joined: Fri Nov 19, 2021 6:36 am

Re: openthread组件使用源代码编译出错

Postby ESP_Shu » Fri Nov 19, 2021 6:47 am

OpenThread 协议栈本身始终是从源码编译的,这里 `Build esp_openthread libraries from source` 是指用 libopenthread_port.a / libopenthread_br.a 还是从内部源码编译。OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT 是 OpenThread 协议栈的配置,所以修改后直接编译就可以了。

ESP32+RCP 会继续支持,是 ot_br 而不是 ot_cli, 参考这个链接:https://github.com/espressif/esp-idf/tr ... read/ot_br.

aacaac50
Posts: 10
Joined: Thu Nov 11, 2021 10:28 am

Re: openthread组件使用源代码编译出错

Postby aacaac50 » Fri Dec 10, 2021 3:38 am

还是有问题,我这边直接改OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT后并不生效,我顺便也试了下把用到OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT的radio_spinel_impl.hpp的内容全部删除,编译也不会报错.

aacaac50
Posts: 10
Joined: Thu Nov 11, 2021 10:28 am

Re: openthread组件使用源代码编译出错

Postby aacaac50 » Wed Dec 15, 2021 5:48 pm

望回复,谢谢

Who is online

Users browsing this forum: No registered users and 154 guests