From 4281f58229067be58206fdf6122c049948a918cc Mon Sep 17 00:00:00 2001 From: "rudi ;-)" Date: Tue, 17 Sep 2024 03:04:45 +0200 Subject: [PATCH 1/2] feat(advanced_console): Add support for ESP32-P4 and ESP32-C5 models in 'version' command output The model ESP32P4 and ESP32C5 was unknown on version command in iperf example add model ESP32P4 and ESP32C5 which prints out model names now by the knowed model ESP32P4 = "ESP32-P4" ESP32C5 = "ESP32-C5" example app: iperf before: iperf> version IDF Version:v5.4-dev-2744-g59e1838270-dirty Chip info: model:Unknown cores:1 feature:/802.11bgn/BLE/External-Flash:8 MB revision number:0 iperf> after this add model is knowed now iperf> version IDF Version:v5.4-dev-2744-g59e1838270-dirty Chip info: model:ESP32-C5 cores:1 feature:/802.11bgn/BLE/External-Flash:8 MB revision number:0 iperf> Merges https://github.com/espressif/esp-idf/pull/14593 --- .../advanced/components/cmd_system/cmd_system_common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/system/console/advanced/components/cmd_system/cmd_system_common.c b/examples/system/console/advanced/components/cmd_system/cmd_system_common.c index d027ecc405..aea5f7d10b 100644 --- a/examples/system/console/advanced/components/cmd_system/cmd_system_common.c +++ b/examples/system/console/advanced/components/cmd_system/cmd_system_common.c @@ -81,6 +81,12 @@ static int get_version(int argc, char **argv) case CHIP_ESP32C2: model = "ESP32-C2"; break; + case CHIP_ESP32P4: + model = "ESP32-P4"; + break; + case CHIP_ESP32C5: + model = "ESP32-C5"; + break; default: model = "Unknown"; break; From 328de495de2eae0bced482089d43d3a56e2b6409 Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Tue, 17 Sep 2024 09:16:06 +0200 Subject: [PATCH 2/2] fix(console): Fixed a typing error in the console advanced example --- .../console/advanced/components/cmd_system/cmd_system_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/system/console/advanced/components/cmd_system/cmd_system_common.c b/examples/system/console/advanced/components/cmd_system/cmd_system_common.c index aea5f7d10b..8daa5e5cca 100644 --- a/examples/system/console/advanced/components/cmd_system/cmd_system_common.c +++ b/examples/system/console/advanced/components/cmd_system/cmd_system_common.c @@ -159,7 +159,7 @@ static void register_free(void) ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); } -/* 'heap' command prints minumum heap size */ +/* 'heap' command prints minimum heap size */ static int heap_size(int argc, char **argv) { uint32_t heap_size = heap_caps_get_minimum_free_size(MALLOC_CAP_DEFAULT);