Skip to content

Commit 6b9242b

Browse files
committed
Merge branch 'bugfix/fix_some_issues_of_cert_test' into 'master'
fix(phy): update cert_test docs See merge request espressif/esp-idf!33635
2 parents 86c1ad2 + da4a079 commit 6b9242b

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

examples/phy/cert_test/README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Before project configuration and build, be sure to set the correct chip target u
1313

1414
### Hardware Required
1515

16-
* A development board with ESP32-C3/ESP32-S3/ SoC.
16+
* A development board with ESP32/ESP32-C2/ESP32-C3/ESP32-C6/ESP32-H2/ESP32-S2/ESP32-S3/ SoC.
1717
* A USB cable for Power supply and programming
1818

1919
### Configure the project
@@ -34,11 +34,6 @@ Run `idf.py -p PORT flash monitor` to build, flash and monitor the project.
3434

3535
(To exit the serial monitor, type ``Ctrl-]``.)
3636

37-
See the Getting Started Guide for all the steps to configure and use the ESP-IDF to build projects.
38-
39-
* [ESP-IDF Getting Started Guide on ESP32-C3](https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/get-started/index.html)
40-
* [ESP-IDF Getting Started Guide on ESP32-S3](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/get-started/index.html)
41-
4237
## Example Output
4338

4439
The command and output logs for each test are as follows:

examples/phy/cert_test/main/cert_test.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/*
2-
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include "sdkconfig.h"
78
#include "nvs_flash.h"
89

910
#include "esp_console.h"
@@ -38,20 +39,25 @@ void app_main(void)
3839
register_phy_cmd();
3940

4041
/* rftest.a requirements */
41-
#ifndef CONFIG_IDF_TARGET_ESP32H2
42+
#if CONFIG_SOC_WIFI_SUPPORTED
4243
esp_wifi_power_domain_on();
4344
#endif
4445

4546
esp_phy_rftest_config(1);
4647
esp_phy_rftest_init();
4748
#endif
4849

50+
int help_index = 1;
4951
printf("\n ==================================================\n");
5052
printf(" | RF certification test |\n");
5153
printf(" | |\n");
5254
printf(" | 1. Print 'help' to gain overview of commands |\n");
53-
printf(" | 2. Wi-Fi certification test |\n");
54-
printf(" | 3. Bluetooth certification test |\n");
55+
#if CONFIG_SOC_WIFI_SUPPORTED
56+
printf(" | %d. Wi-Fi certification test |\n", ++help_index);
57+
#endif
58+
#if CONFIG_SOC_BT_SUPPORTED
59+
printf(" | %d. Bluetooth certification test |\n", ++help_index);
60+
#endif
5561
printf(" | |\n");
5662
printf(" =================================================\n\n");
5763

examples/phy/cert_test/main/cmd_phy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
*
44
* SPDX-License-Identifier: Unlicense OR CC0-1.0
55
*/
6+
7+
#include "sdkconfig.h"
68
#include "freertos/FreeRTOS.h"
79
#include "freertos/task.h"
810
#include "esp_log.h"

0 commit comments

Comments
 (0)