Example does not build after installation

Sanyidev
Posts: 7
Joined: Mon Sep 18, 2023 12:38 pm

Example does not build after installation

Postby Sanyidev » Mon Sep 18, 2023 1:06 pm

Ubuntu 20.04 VM. I followed the steps as described in https://docs.espressif.com/projects/esp ... oping.html

All fine. sdk is in /home/xx/github/esp-idf, . ./export.sh done.

Then - so what do I do wrong?
$ cd /home/xx/github/esp-zigbee-sdk/examples/esp_zigbee_sleep/
$ idf.py set-target esp32c6
....
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xx/github/esp-zigbee-sdk/examples/esp_zigbee_sleep/sleepy_end_device/build
$ idf.py build
................
(rebuilding esp-idf)
................
[100%] Linking CXX executable sleepy_end_device.elf
/home/xx/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: ../managed_components/espressif__esp-zboss-lib/lib/esp32c6/libzboss_port.a(zb_esp_sleep.c.obj): in function `.L0 ':
(.text.zb_esp_sleep_process+0x24): undefined reference to `esp_ieee802154_enter_sleep'
/home/xx/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: (.text.zb_esp_wakeup_process+0x20): undefined reference to `esp_ieee802154_wakeup'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/sleepy_end_device.elf.dir/build.make:529: sleepy_end_device.elf] Error 1
make[1]: *** [CMakeFiles/Makefile2:1938: CMakeFiles/sleepy_end_device.elf.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
make failed with exit code 2, output of the command is in the /home/xx/github/esp-zigbee-sdk/examples/esp_zigbee_sleep/sleepy_end_device/build/log/idf_py_stderr_output_21083 and /home/xx/github/esp-zigbee-sdk/examples/esp_zigbee_sleep/sleepy_end_device/build/log/idf_py_stdout_output_21083

Sanyidev
Posts: 7
Joined: Mon Sep 18, 2023 12:38 pm

Re: Example does not build after installation

Postby Sanyidev » Fri Sep 22, 2023 2:35 pm

Same error on mac. It looks there is something to do with zboss linking - has anyone managed to actually build a sleepy end device ever?
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /Users/xx/esp/esp_zigbee_sleep/sleepy_end_device/build/log/idf_py_stderr_output_3583 and /Users/xx/esp/esp_zigbee_sleep/sleepy_end_device/build/log/idf_py_stdout_output_3583

$ grep -rnw $HOME -e "esp_ieee802154_wakeup"
Binary file /Users/xx/esp/hello_world/build/esp-idf/ieee802154/CMakeFiles/__idf_ieee802154.dir/esp_ieee802154.c.obj matches
Binary file /Users/xx/esp/hello_world/build/esp-idf/ieee802154/libieee802154.a matches
Binary file /Users/xx/esp/esp_zigbee_sleep/sleepy_end_device/managed_components/espressif__esp-zboss-lib/lib/esp32c6/libzboss_port.a matches
Binary file /Users/xx/esp/esp_zigbee_sleep/sleepy_end_device/managed_components/espressif__esp-zboss-lib/lib/esp32h2/libzboss_port.a matches
/Users/xx/esp/esp_zigbee_sleep/sleepy_end_device/build/sleepy_end_device.map:30518:esp_ieee802154_wakeup
/Users/xx/esp/esp_zigbee_sleep/sleepy_end_device/managed_components/espressif__esp-zboss-lib/lib/esp32c6/libzboss_port.a(zb_esp_sleep.c.obj)
/Users/xx/esp/esp_zigbee_sleep/sleepy_end_device/build/log/idf_py_stdout_output_3583:1062:/Users/xx/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld: (.text.zb_esp_wakeup_process+0x20): undefined reference to `esp_ieee802154_wakeup'

MagnusErler
Posts: 2
Joined: Thu Dec 28, 2023 2:02 pm

Re: Example does not build after installation

Postby MagnusErler » Fri Dec 29, 2023 6:50 pm

Same here. I had to remove

Code: Select all

esp_zb_sleep_now();

MagnusErler
Posts: 2
Joined: Thu Dec 28, 2023 2:02 pm

Re: Example does not build after installation

Postby MagnusErler » Fri Dec 29, 2023 8:58 pm

I updated

Code: Select all

idf_component.yml
with

Code: Select all

## IDF Component Manager Manifest File
dependencies:
  espressif/esp-zboss-lib: "~1.0.0"
  espressif/esp-zigbee-lib: "~1.0.0"
  # Required IDF version
  idf:
    version: ">=5.0.0"
and it built successfully

Who is online

Users browsing this forum: No registered users and 173 guests