iperf example fails to compile for ESP32-P4

rosspeters-precision
Posts: 1
Joined: Thu Oct 24, 2024 10:03 pm

iperf example fails to compile for ESP32-P4

Postby rosspeters-precision » Thu Oct 24, 2024 10:16 pm

I am attempting to run the Wi-Fi iperf example on an ESP32-P4 Function_EV_Board V1.4, but it is failing to compile.

I am unable to use `idf.py build` to run the examples/wifi/iperf application in v5.3.1 of ESP-IDF. I did set the target as esp32p4..

It seems like the proper files are not being included, because it's complaining about undefined functions that do exist in ESP-IDF. Including a snippet below, attaching the full build log.

Two questions:
- Is this iperf example expected to compile for ESP32-P4? It does say it is supported in the example's README.
- This ESP32-P4 dev board includes an ESP32-C6 mini. My understanding is I need to use the ESP32-C6 mini as the Wi-Fi chip. How do I flash the ESP32-C6 for the iperf project?

Thank you very much for your time and support.


Compilation Log:

Code: Select all

/Users/r/workspace/esp-idf/examples/wifi/iperf/main/iperf_example_main.c: In function 'app_main':
/Users/r/workspace/esp-idf/examples/wifi/iperf/main/iperf_example_main.c:80:5: error: unknown type name 'app_wifi_initialise_config_t'; did you mean 'wifi_init_config_t'?
   80 |     app_wifi_initialise_config_t config = APP_WIFI_CONFIG_DEFAULT();
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     wifi_init_config_t
/Users/r/workspace/esp-idf/examples/wifi/iperf/main/iperf_example_main.c:80:43: error: implicit declaration of function 'APP_WIFI_CONFIG_DEFAULT'; did you mean 'WIFI_INIT_CONFIG_DEFAULT'? [-Werror=implicit-function-declaration]
   80 |     app_wifi_initialise_config_t config = APP_WIFI_CONFIG_DEFAULT();
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~
      |                                           WIFI_INIT_CONFIG_DEFAULT
/Users/r/workspace/esp-idf/examples/wifi/iperf/main/iperf_example_main.c:81:11: error: request for member 'storage' in something not a structure or union
   81 |     config.storage = WIFI_STORAGE_RAM;
      |           ^
/Users/r/workspace/esp-idf/examples/wifi/iperf/main/iperf_example_main.c:82:11: error: request for member 'ps_type' in something not a structure or union
   82 |     config.ps_type = WIFI_PS_NONE;
      |           ^
/Users/r/workspace/esp-idf/examples/wifi/iperf/main/iperf_example_main.c:83:5: error: implicit declaration of function 'app_initialise_wifi' [-Werror=implicit-function-declaration]
   83 |     app_initialise_wifi(&config);
      |     ^~~~~~~~~~~~~~~~~~~
/Users/r/workspace/esp-idf/examples/wifi/iperf/main/iperf_example_main.c:114:5: error: implicit declaration of function 'app_register_all_wifi_commands'; did you mean 'app_register_ping_commands'? [-Werror=implicit-function-declaration]
  114 |     app_register_all_wifi_commands();
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     app_register_ping_commands
Attachments
iperf_p4_build.rtf
(31.46 KiB) Downloaded 129 times

Who is online

Users browsing this forum: No registered users and 208 guests