Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_some_issues_of_cert_test' into 'master'
Browse files Browse the repository at this point in the history
fix(phy): update cert_test docs

See merge request espressif/esp-idf!33635
  • Loading branch information
jack0c committed Sep 19, 2024
2 parents 86c1ad2 + da4a079 commit 6b9242b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
7 changes: 1 addition & 6 deletions examples/phy/cert_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Before project configuration and build, be sure to set the correct chip target u

### Hardware Required

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

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

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

See the Getting Started Guide for all the steps to configure and use the ESP-IDF to build projects.

* [ESP-IDF Getting Started Guide on ESP32-C3](https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/get-started/index.html)
* [ESP-IDF Getting Started Guide on ESP32-S3](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/get-started/index.html)

## Example Output

The command and output logs for each test are as follows:
Expand Down
14 changes: 10 additions & 4 deletions examples/phy/cert_test/main/cert_test.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "sdkconfig.h"
#include "nvs_flash.h"

#include "esp_console.h"
Expand Down Expand Up @@ -38,20 +39,25 @@ void app_main(void)
register_phy_cmd();

/* rftest.a requirements */
#ifndef CONFIG_IDF_TARGET_ESP32H2
#if CONFIG_SOC_WIFI_SUPPORTED
esp_wifi_power_domain_on();
#endif

esp_phy_rftest_config(1);
esp_phy_rftest_init();
#endif

int help_index = 1;
printf("\n ==================================================\n");
printf(" | RF certification test |\n");
printf(" | |\n");
printf(" | 1. Print 'help' to gain overview of commands |\n");
printf(" | 2. Wi-Fi certification test |\n");
printf(" | 3. Bluetooth certification test |\n");
#if CONFIG_SOC_WIFI_SUPPORTED
printf(" | %d. Wi-Fi certification test |\n", ++help_index);
#endif
#if CONFIG_SOC_BT_SUPPORTED
printf(" | %d. Bluetooth certification test |\n", ++help_index);
#endif
printf(" | |\n");
printf(" =================================================\n\n");

Expand Down
2 changes: 2 additions & 0 deletions examples/phy/cert_test/main/cmd_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/

#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
Expand Down

0 comments on commit 6b9242b

Please sign in to comment.