Closed
Description
And now only recognize 2MB space,before can recognize 4MB
Using 26MHz bootloader
App/part. size: 479,184/2,031,616 bytes, 23.59%
espflash v3 log
xiaguangbo@debian:/media/xiaguangbo/linux_data/project/xtempctrl/esp32c2$ cargo run
Finished `dev` profile [optimized + debuginfo] target(s) in 0.23s
Running `espflash flash --monitor target/riscv32imc-esp-espidf/debug/esp32c2`
[2024-03-13T15:53:25Z INFO ] Serial port: '/dev/ttyUSB0'
[2024-03-13T15:53:25Z INFO ] Connecting...
[2024-03-13T15:53:25Z INFO ] Using flash stub
Chip type: esp32c2 (revision v1.0)
Crystal frequency: 26 MHz
Flash size: 4MB
Features: WiFi, BLE
MAC address: 34:98:7a:0f:6f:b0
Using 26MHz bootloader
App/part. size: 479,184/2,031,616 bytes, 23.59%
[00:00:01] [========================================] 12/12 0x0
[00:00:00] [========================================] 1/1 0x8000
[00:00:21] [========================================] 216/216 0x10000 [2024-03-13T15:53:51Z INFO ] Flashing has completed!
Commands:
CTRL+R Reset chip
CTRL+C Exit
ESP-ROM:esp8684-api2-20220127
Build:Jan 27 2022
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fcd5c80,len:0x16bc
load:0x403acb70,len:0x974
load:0x403aeb70,len:0x297c
entry 0x403acb70
I (32) boot: ESP-IDF v5.1.2 2nd stage bootloader
I (32) boot: compile time Jan 16 2024 14:05:06
I (32) boot: chip revision: v1.0
I (37) boot.esp32c2: MMU Page Size : 32K
I (44) boot.esp32c2: SPI Speed : 30MHz
I (51) boot.esp32c2: SPI Mode : DIO
I (59) boot.esp32c2: SPI Flash Size : 4MB
I (66) boot: Enabling RNG early entropy source...
I (74) boot: Partition Table:
I (80) boot: ## Label Usage Type ST Offset Length
I (91) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (102) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (114) boot: 2 factory factory app 00 00 00010000 001f0000
I (126) boot: End of partition table
I (132) esp_image: segment 0: paddr=00010020 vaddr=3fca8770 size=0108ch ( 4236) load
I (147) esp_image: segment 1: paddr=000110b4 vaddr=40380000 size=06f64h ( 28516) load
I (169) esp_image: segment 2: paddr=00018020 vaddr=3c048020 size=1e298h (123544) map
I (214) esp_image: segment 3: paddr=000362c0 vaddr=40386f64 size=0180ch ( 6156) load
I (216) esp_image: segment 4: paddr=00037ad4 vaddr=00000000 size=08544h ( 34116)
I (234) esp_image: segment 5: paddr=00040020 vaddr=42000020 size=44f8ch (282508) map
I (335) boot: Loaded app from partition at offset 0x10000
I (335) boot: Disabling RNG early entropy source...
I (352) cpu_start: Unicore app
I (353) cpu_start: Pro cpu up.
assert failed: esp_clk_init clk.c:70 (rtc_clk_xtal_freq_get() == CONFIG_XTAL_FREQ)
Core 0 register dump:
MEPC : 0x40380ee4 RA : 0x403839f6 SP : 0x3fcde5d0 GP : 0x3fca8f70
0x40380ee4 - panic_abort
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/esp_system/panic.c:472
0x403839f6 - __ubsan_include
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/esp_system/ubsan.c:313
0x3fca8f70 - __global_pointer$
at ??:??
TP : 0x00000000 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x00000001 S1 : 0x3fcde742 A0 : 0x3fcde628 A1 : 0x3fca8f05
A2 : 0x00000001 A3 : 0x00000029 A4 : 0x00000001 A5 : 0x3fcaa000
0x3fcaa000 - xIsrStack
at ??:??
A6 : 0x0000000c A7 : 0x76757473 S2 : 0x00000075 S3 : 0x3fcde628
S4 : 0x3fcde628 S5 : 0x3c060005 S6 : 0xffff8000 S7 : 0x40380b58
0x40380b58 - rv_utils_dbgr_is_attached
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/riscv/include/riscv/rv_utils.h:203
S8 : 0x00040020 S9 : 0x00018020 S10 : 0x00000006 S11 : 0x3fcde82c
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001801 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x00000000
0x40380001 - _vector_table
at ??:??
MHARTID : 0x00000000
Stack memory:
3fcde5d0: 0x37620ee9 0x96e2160c 0x3c05ffac 0x403872de 0xffffffff 0x0000005f 0x0000000a 0x3fca8f04
0x403872de - esp_ptr_in_drom
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/esp_hw_support/include/esp_memory_utils.h:301
3fcde5f0: 0xff003037 0x0000005f 0x00000000 0x00000000 0xff000000 0x3fca9184 0x3c060010 0x3fca9168
0x3c060010 - __func__.0
at ??:??
3fcde610: 0x3c060005 0x3fca9194 0x3fcde5f0 0x3fca9198 0x3c05ffac 0x3fca8f04 0x65737361 0x66207472
3fcde630: 0x656c6961 0x65203a64 0x635f7073 0x695f6b6c 0x2074696e 0x2e6b6c63 0x30373a63 0x74722820
3fcde650: 0x6c635f63 0x74785f6b 0x665f6c61 0x5f716572 0x28746567 0x3d3d2029 0x4e4f4320 0x5f474946
3fcde670: 0x4c415458 0x4552465f 0x00002951 0x40036d06 0xffffffff 0x00000029 0xfffffff6 0x00000002
3fcde690: 0xffffffff 0x0001e298 0x0000000f 0x00000000 0x600c0000 0x60008080 0x00000061 0x4038199e
0x4038199e - regi2c_ctrl_write_reg_mask
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/esp_hw_support/regi2c_ctrl.c:47
3fcde6b0: 0x30303030 0x00000031 0x00000000 0x00000001 0x00000002 0x00000002 0x00000000 0x00000000
3fcde6d0: 0x00000006 0x00018020 0x20000000 0x4203f812 0xffff8000 0x0001e298 0x3fcde894 0x3c048000
0x4203f812 - rtc_init
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/esp_hw_support/port/esp32c2/rtc_init.c:130
3fcde6f0: 0x42000000 0x0001e298 0x3fcde894 0x3c048000 0x42000000 0x00000001 0x00000000 0x4203ccb0
0x4203ccb0 - esp_clk_init
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/esp_system/port/soc/esp32c2/clk.c:73
3fcde710: 0x3fcde7e0 0x0001e298 0x00000009 0x3fcde734 0x00200000 0x00200000 0x00068000 0x40380c80
0x40380c80 - call_start_cpu0
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/esp_system/port/cpu_start.c:590
3fcde730: 0x0000001b 0x00000161 0x3c05ff50 0x00000004 0x600c2148 0x000003e8 0x00000000 0x40380c88
0x40380c88 - call_start_cpu0
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/esp_system/port/cpu_start.c:591
3fcde750: 0xffff8000 0x0001e298 0x3fcde894 0x3c048000 0x42000000 0x3c0662b7 0x42044fab 0x403afb48
3fcde770: 0x0b16db9e 0x1583c780 0xeb83ff57 0x00044f8c 0xe759c444 0xef322ac6 0xe9993caa 0x00048000
3fcde790: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x3fce0000
3fcde7b0: 0x000049dc 0x3ff48094 0x0000ffff 0xffffffff 0xffffffff 0x3fcde910 0xffffffff 0x403affa0
3fcde7d0: 0xffffffff 0x0000002f 0x00010000 0x001f0000 0x00010000 0x200206e9 0x40380b58 0x000000ee
0x40380b58 - rv_utils_dbgr_is_attached
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/riscv/include/riscv/rv_utils.h:203
3fcde7f0: 0x0000000c 0x00012b00 0x01000000 0x3fca8770 0x0000108c 0x40380000 0x00006f64 0x3c048020
3fcde810: 0x0001e298 0x40386f64 0x0000180c 0x00000000 0x00008544 0x42000020 0x00044f8c 0x00000000
0x40386f64 - spimem_flash_ll_set_hold
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/hal/esp32c2/include/hal/spimem_flash_ll.h:534
0x42000020 - std::sys_common::backtrace::__rust_begin_short_backtrace
at /home/xiaguangbo/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:151
3fcde830: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcde850: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcde870: 0x00000000 0x00000000 0x00000000 0x00010020 0x000110b4 0x00018020 0x000362c0 0x00037ad4
3fcde890: 0x00040020 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcde8b0: 0x00000000 0x00000000 0x00000000 0x00074fd0 0x4732da15 0x36a7f2c8 0x538d45e0 0x9c30e0ed
3fcde8d0: 0x0b16db9e 0x1583c780 0xeb83ff57 0x6552aa62 0x000049dc 0x3ff48094 0x0000ffff 0x3fce0000
3fcde8f0: 0x00000000 0x000000f8 0x000049e0 0x403acbf2 0xd64be8f6 0xf9c6e265 0x00000000 0xffffffff
3fcde910: 0x00000000 0x00000000 0x00010000 0x001f0000 0x00000000 0x00000000 0x00000000 0x00000000
3fcde930: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcde950: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcde970: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcde990: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcde9b0: 0x600c5100 0x600c5100 0x00000020 0x40055c20 0x52b5a563 0x37de2ba5 0xd7a54895 0x00000000
ELF file SHA256: 0000000000000000
Rebooting...
ESP-ROM:esp8684-api2-20220127
Build:Jan 27 2022
rst:0xc (RTC_SW_CPU_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380ea6
0x40380ea6 - esp_restart_noos
at /media/xiaguangbo/linux_data/project/xtempctrl/esp32c2/.embuild/espressif/esp-idf/v5.1.3/components/esp_system/port/soc/esp32c2/system_internal.c:96
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fcd5c80,len:0x16bc
load:0x403acb70,len:0x974
load:0x403aeb70,len:0x297c
entry 0x403acb70
I (36) boot: ESP-IDF v5.1.2 2nd stage bootloader
I (36) boot: compile time Jan 16 2024 14:05:06
I (36) boot: chip revision: v1.0
I (41) boot.esp32c2: MMU Page Size : 32K
...
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done