FreeRTOS @ ESP32-C6 测试报告

支持状态

BASIC

最后更新

2025-05-19

FreeRTOS ESP32-C6 测试报告

测试环境

操作系统信息

硬件信息

  • ESP32-C6-DevKitC-1

安装步骤

安装 ESP-IDF

ESP-IDF的环境安装可以主要参考官网连接: https://docs.espressif.com/projects/esp-idf/zh_CN/v5.4/esp32c6/get-started/index.html#get-started-how-to-get-esp-idf 不管是图形化界面还是命令行开发都有不错的效果。

准备工程仓库

git clone https://github.com/espressif/esp-idf

编译代码

cd esp-idf/examples/system/freertos/real_time_stats
idf.py menuconfig
idf.py build

根据使用的board在menuconfig调整参数

烧写镜像

确认连接到ESP32-C6后,烧写镜像。 在linux开发环境中,可能需要提前添加 udev 规则并应用(根据发行版不同可能需要更改 GROUP)

idf.py -p PORT flash monitor

(将 PORT 替换为要使用的串行端口的名称。

(要退出串行监视器,请键入 。Ctrl-]

有关配置和使用 ESP-IDF 构建项目的完整步骤,请参阅入门指南。

观察log

通过串口连接开发板。

预期结果

系统正常启动,能够通过板载串口查看信息。

实际结果

系统正常启动,能够通过板载串口查看信息。

启动信息

屏幕录像(从编译到启动):

ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x16b8
load:0x4086c110,len:0xe84
load:0x4086e610,len:0x304c
entry 0x4086c11a
I (23) boot: ESP-IDF v5.4-dirty 2nd stage bootloader
I (24) boot: compile time May 16 2025 16:34:35
I (24) boot: chip revision: v0.0
I (24) boot: efuse block revision: v0.2
I (27) boot.esp32c6: SPI Speed      : 80MHz
I (31) boot.esp32c6: SPI Mode       : DIO
I (35) boot.esp32c6: SPI Flash Size : 2MB
I (39) boot: Enabling RNG early entropy source...
I (43) boot: Partition Table:
I (46) boot: ## Label            Usage          Type ST Offset   Length
I (52) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (59) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (65) boot:  2 factory          factory app      00 00 00010000 00100000
I (72) boot: End of partition table
I (75) esp_image: segment 0: paddr=00010020 vaddr=42018020 size=089d8h ( 35288) map
I (89) esp_image: segment 1: paddr=00018a00 vaddr=40800000 size=07618h ( 30232) load
I (96) esp_image: segment 2: paddr=00020020 vaddr=42000020 size=11778h ( 71544) map
I (110) esp_image: segment 3: paddr=000317a0 vaddr=40807618 size=03b8ch ( 15244) load
I (114) esp_image: segment 4: paddr=00035334 vaddr=4080b1b0 size=01760h (  5984) load
I (119) boot: Loaded app from partition at offset 0x10000
I (119) boot: Disabling RNG early entropy source...
I (136) cpu_start: Unicore app
I (144) cpu_start: Pro cpu start user code
I (144) cpu_start: cpu freq: 160000000 Hz
I (145) app_init: Application information:
I (145) app_init: Project name:     real_time_stats
I (149) app_init: App version:      1
I (152) app_init: Compile time:     May 16 2025 16:34:10
I (157) app_init: ELF file SHA256:  387ce8e7e...
I (162) app_init: ESP-IDF:          v5.4-dirty
I (166) efuse_init: Min chip rev:     v0.0
I (170) efuse_init: Max chip rev:     v0.99 
I (174) efuse_init: Chip rev:         v0.0
I (178) heap_init: Initializing. RAM available for dynamic allocation:
I (184) heap_init: At 4080D8E0 len 0006ED30 (443 KiB): RAM
I (189) heap_init: At 4087C610 len 00002F54 (11 KiB): RAM
I (194) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
I (200) spi_flash: detected chip: generic
I (203) spi_flash: flash io: dio
W (206) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (219) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (225) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (231) coexist: coex firmware version: 49a8cdc
I (250) coexist: coexist rom version 5b8dcfa
I (250) main_task: Started on CPU0
I (250) main_task: Calling app_main()


Getting real time stats over 100 ticks
I (440) main_task: Returned from app_main()
| Task | Run Time | Percentage
| stats | 681 | 0%
| spin1 | 119517 | 11%
| spin2 | 109538 | 10%
| spin3 | 109542 | 10%
| spin4 | 119510 | 11%
| spin5 | 109530 | 10%
| spin0 | 109545 | 10%
| IDLE | 321671 | 32%
| esp_timer | 0 | 0%
| main | Deleted
Real time stats obtained


Getting real time stats over 100 ticks
| Task | Run Time | Percentage
| stats | 579 | 0%
| spin1 | 130826 | 13%
| IDLE | 228407 | 22%
| spin4 | 125172 | 12%
| spin3 | 125152 | 12%
| spin0 | 125176 | 12%
| spin5 | 125181 | 12%
| spin2 | 139507 | 13%
| esp_timer | 0 | 0%
Real time stats obtained


Getting real time stats over 100 ticks
| Task | Run Time | Percentage
| stats | 579 | 0%
| spin5 | 140819 | 14%
| spin3 | 140799 | 14%
| IDLE | 217144 | 21%
| spin1 | 125182 | 12%
| spin2 | 125165 | 12%
| spin4 | 125158 | 12%
| spin0 | 125153 | 12%
| esp_timer | 0 | 0%
Real time stats obtained

测试判定标准

测试成功:实际结果与预期结果相符。

测试失败:实际结果与预期结果不符。

测试结论

测试成功