Skip to content

ESP32C6 rtc_example is panicking with BorrowMutError #462

Closed
@JurajSadel

Description

@JurajSadel
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x4086c610,len:0x7a0
0x4086c610 - __global_pointer$
    at ??:??
load:0x4086e610,len:0x2104
0x4086e610 - __global_pointer$
    at ??:??
load:0x40875718,len:0x16f8
0x40875718 - __global_pointer$
    at ??:??
SHA-256 comparison failed:
Calculated: 0d7421c8439701d529947bfd710dae9a81b40c21ef23f53569c6e589b1a868c3
Expected: 0040b01572c39f22be342c42a3162126cee4d3f66eac400719c8360613f5a063
Attempting to boot anyway...
entry 0x4086c672
0x4086c672 - __global_pointer$
    at ??:??
W (30) fpga: Project configuration is for internal FPGA use, not all functions will work
W (50) rtc_clk: rtc_clk_apb_freq_get() has not been implemented yet
W (51) rtc_clk: rtc_clk_xtal_freq_get() has not been implemented yet
I (53) boot: ESP-IDF v5.1-dev-2036-gb04e33256d 2nd stage bootloader
I (60) boot: compile time Nov 29 2022 09:55:01
I (65) boot: chip revision: v0.0
I (69) boot.esp32c6: SPI Speed      : 80MHz
I (74) boot.esp32c6: SPI Mode       : DIO
I (78) boot.esp32c6: SPI Flash Size : 4MB
I (83) boot: Enabling RNG early entropy source...
W (88) rand: bootloader_random_enable non-functional for FPGA builds
I (95) boot: Partition Table:
I (99) boot: ## Label            Usage          Type ST Offset   Length
I (106) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (114) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (121) boot:  2 factory          factory app      00 00 00010000 003f0000
I (129) boot: End of partition table
I (133) esp_image: segment 0: paddr=00010020 vaddr=42000020 size=05fe4h ( 24548) map
I (151) esp_image: segment 1: paddr=0001600c vaddr=40808000 size=0001ch (    28) load
I (153) esp_image: segment 2: paddr=00016030 vaddr=42006030 size=0224ch (  8780) map
I (162) esp_image: segment 3: paddr=00018284 vaddr=4080801c size=007b4h (  1972) load
I (168) esp_image: segment 4: paddr=00018a40 vaddr=408087ce size=00004h (     4) load
I (176) esp_image: segment 5: paddr=00018a4c vaddr=408087d0 size=00008h (     8) load
I (185) boot: Loaded app from partition at offset 0x10000
I (190) boot: Disabling RNG early entropy source...
W (196) rand: bootloader_random_disable non-functional for FPGA builds


!! A panic occured in 'examples\rtc_watchdog.rs', at line 54, column 38

PanicInfo {
    payload: Any { .. },
    message: Some(
        already borrowed: BorrowMutError,
    ),
    location: Location {
        file: "examples\\rtc_watchdog.rs",
        line: 54,
        col: 38,
    },
    can_unwind: true,
}

Backtrace:

No backtrace available - make sure to force frame-pointers. (see https://crates.io/crates/esp-backtrace)

I tried to revert commits one by one and it looks like 9a5a546 is causing panic here.

@MabezDev can you have a look, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions