ESP32-C6 and Wifi Neighbor Awareness Networking
Posted: Thu Oct 12, 2023 4:15 pm
Hello,
I am the proud owner of several ESP32-C6-DevKitC-1 boards for two weeks.
I am now trying to compile the Wifi Neighbor Awareness Networking (NAN) examples.
Unfortunately, I get the following error message:
Here are my steps:
Does the board even support Wifi NAN? If so, how can I fix the bug here so that I can compile the sample project?
Thank you for your support in advance
Best regards,
esp32c6_user
I am the proud owner of several ESP32-C6-DevKitC-1 boards for two weeks.
I am now trying to compile the Wifi Neighbor Awareness Networking (NAN) examples.
Unfortunately, I get the following error message:
Code: Select all
[931/933] Linking CXX executable nan_publisher.elf
FAILED: nan_publisher.elf
...
/home/esp_user/.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: esp-idf/main/libmain.a(publisher_main.c.obj): in function `nan_ndp_indication_event_handler':
/home/esp_user/esp/nan_publisher/main/publisher_main.c:60: undefined reference to `esp_wifi_nan_datapath_resp'
/home/esp_user/.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: esp-idf/main/libmain.a(publisher_main.c.obj): in function `wifi_nan_publish':
/home/esp_user/esp/nan_publisher/main/publisher_main.c:80: undefined reference to `esp_netif_create_default_wifi_nan'
/home/esp_user/.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: /home/esp_user/esp/nan_publisher/main/publisher_main.c:82: undefined reference to `esp_wifi_nan_start'
/home/esp_user/.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: /home/esp_user/esp/nan_publisher/main/publisher_main.c:93: undefined reference to `esp_wifi_nan_publish_service'
/home/esp_user/.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: /home/esp_user/esp/nan_publisher/main/publisher_main.c:116: undefined reference to `esp_wifi_nan_send_message'
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 /home/esp_user/esp/nan_publisher/build/log/idf_py_stderr_output_23488 and /home/esp_user/esp/nan_publisher/build/log/idf_py_stdout_output_23488
Code: Select all
$ cd ~/esp/
$ cp -R esp-idf/examples/wifi/wifi_aware/nan_publisher .
$ . $HOME/esp/esp-idf/export.sh
$ cd nan_publisher
$ idf.py set-target esp32c6
$ idf.py build
Thank you for your support in advance
Best regards,
esp32c6_user