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

Unable to build basic_thread_border_router (TZ-518) #53

Closed
manmountain opened this issue Dec 27, 2023 · 5 comments
Closed

Unable to build basic_thread_border_router (TZ-518) #53

manmountain opened this issue Dec 27, 2023 · 5 comments

Comments

@manmountain
Copy link

I have followed this guide: https://openthread.io/guides/border-router/espressif-esp32 to build basic_thread_border_router example for the official ESP Thread Border Router board but I get an error

/home/_USERNAME_/Sources/Repos/esp-thread-br/examples/basic_thread_border_router/main/esp_ot_br.c:78:24: error: implicit declaration of function 'ESP_OPENTHREAD_DEFAULT_HOST_CONFIG'; did you mean 'ESP_OPENTHREAD_DEFAULT_PORT_CONFIG'? [-Werror=implicit-function-declaration] 78 | .host_config = ESP_OPENTHREAD_DEFAULT_HOST_CONFIG(), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ESP_OPENTHREAD_DEFAULT_PORT_CONFIG /home/_USERNAME_/Sources/Repos/esp-thread-br/examples/basic_thread_border_router/main/esp_ot_br.c:76:56: error: missing braces around initializer [-Werror=missing-braces] 76 | esp_openthread_platform_config_t platform_config = { | ^ /home/_USERNAME_/Sources/Repos/esp-thread-br/examples/basic_thread_border_router/main/esp_ot_br.c:76:56: error: missing braces around initializer [-Werror=missing-braces] cc1: some warnings being treated as errors ninja: build stopped: subcommand failed.

Is there a newer guide or do I miss something in my setup? In idf.py menuconfig I'm enabling ESP Thread Border Router Example > Enable the automatic start mode in Thread Border Router and set my WIFI credentials in Example Connection Configuration > connect using Wi-Fi interface. Is there any other options in idf.py menuconfig I'm missing?

@github-actions github-actions bot changed the title Unable to build basic_thread_border_router Unable to build basic_thread_border_router (TZ-518) Dec 27, 2023
@manmountain
Copy link
Author

My ESP Thread Border Router board is version V1.2 if that makes any differences.

@zwx1995esp
Copy link
Collaborator

Ah, you need to use the IDF v5.1.2 branch, I will create a MR to update the instruction of this set-up-repositories

@zwx1995esp
Copy link
Collaborator

Please have a try with the IDF branch v5.1.2 and the ESP-THREAD-BR branch v1.0

@manmountain
Copy link
Author

It worked with the IDF branch v5.1.2 and the ESP-THREAD-BR branch v1.0

@zwx1995esp
Copy link
Collaborator

@manmountain FYI, the docs updating MR has already been created and waiting for reviewing and merging. Please see openthread/ot-docs#149

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