espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.63k stars 7.28k forks source link

About the CHIP_FEATURE_EMB_FLASH variable (IDFGH-8735) #10175

Closed nopnop2002 closed 1 year ago

nopnop2002 commented 1 year ago

Answers checklist.

General issue report

I ran the example below on an ESP32C2. https://github.com/espressif/esp-idf/tree/master/examples/get-started/hello_world

I (32) boot: ESP-IDF v5.0-beta1-824-ga8ef7570ca 2nd stage bootloader
I (32) boot: compile time 10:02:08
I (32) boot: chip revision: V100
I (38) boot.esp32c2: MMU Page Size  : 32K
I (45) boot.esp32c2: SPI Speed      : 60MHz
I (53) boot.esp32c2: SPI Mode       : DIO
I (60) boot.esp32c2: SPI Flash Size : 2MB
I (67) boot: Enabling RNG early entropy source...
I (75) boot: Partition Table:
I (81) boot: ## Label            Usage          Type ST Offset   Length
I (92) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (104) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (115) boot:  2 factory          factory app      00 00 00010000 00100000
I (127) boot: End of partition table
I (133) esp_image: segment 0: paddr=00010020 vaddr=3c010020 size=05e50h ( 24144) map
I (152) esp_image: segment 1: paddr=00015e78 vaddr=3fca8970 size=00ce4h (  3300) load
I (160) esp_image: segment 2: paddr=00016b64 vaddr=40380000 size=014b4h (  5300) load
I (174) esp_image: segment 3: paddr=00018020 vaddr=42000020 size=09a6ch ( 39532) map
I (194) esp_image: segment 4: paddr=00021a94 vaddr=403814b4 size=074b4h ( 29876) load
I (209) boot: Loaded app from partition at offset 0x10000
I (209) boot: Disabling RNG early entropy source...
I (234) cpu_start: Pro cpu up.
I (242) cpu_start: Pro cpu start user code
I (242) cpu_start: cpu freq: 120000000 Hz
I (242) cpu_start: Application information:
I (247) cpu_start: Project name:     hello_world
I (255) cpu_start: App version:      v5.0-beta1-824-ga8ef7570ca
I (265) cpu_start: Compile time:     Nov 14 2022 10:02:00
I (275) cpu_start: ELF file SHA256:  23b27de14f1352ef...
I (284) cpu_start: ESP-IDF:          v5.0-beta1-824-ga8ef7570ca
I (294) heap_init: Initializing. RAM available for dynamic allocation:
I (305) heap_init: At 3FCAA4F0 len 00032680 (201 KiB): D/IRAM
I (315) heap_init: At 3FCDCB70 len 0000294C (10 KiB): STACK/DRAM
I (326) spi_flash: detected chip: generic
I (333) spi_flash: flash io: dio
I (339) cpu_start: Starting scheduler.
Hello world!
This is esp32c2 chip with 1 CPU core(s), WiFi/BLE, silicon revision 100, 2MB external flash
Minimum free heap size: 202356 bytes

pay attention to this part:

This is esp32c2 chip with 1 CPU core(s), WiFi/BLE, silicon revision 100, 2MB external flash

As far as I know the ESP32C2(=ESP8684) has a built in SPI FLASH. Isn't "2MB embedded flash" correct instead of "2MB external flash"?

This is from the ESP8684 datasheet.

ESP8684H1 1 MB –40 ∼ 105 QFN24 (4*4)
ESP8684H2 2 MB –40 ∼ 105 QFN24 (4*4)
ESP8684H4 4 MB –40 ∼ 105 QFN24 (4*4)
ESP-Marius commented 1 year ago

You are right, should be embedded. We'll fix this.