Microsoft Store Error Code: 0x80131500

问题:

Microsoft Store 无法正常打开,报错提示0x80131500

解决:

1.重置Store:

重置
原链接:
https://support.microsoft.com/en-us/account-billing/fix-problems-with-apps-from-microsoft-store-93ed0bcf-9c12-3df6-6dda-92ec5d0415ac
笔者使用该方法未能有效重置store,报错仍旧存在。

2.Internet属性设置

win+R启动inetcpl.cpl
内容——清除SSL状态
SSL
随后在高级中,勾选TLS1.2 1.3
如图
成功解决问题

3.重装Microsoft store

Get-AppxPackage -allusers *WindowsStore* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
重装
笔者使用该方式无法找到文件夹,此处留档。

参考链接:

https://answers.microsoft.com/en-us/windows/forum/all/microsoft-store-error-code-0x80131500/41d2d363-83ee-4b5d-ba43-615ca63bb1bf

I (361) main_task: Calling app_main() I (371) pp: pp rom version: 9387209 I (371) net80211: net80211 rom version: 9387209 I (381) wifi:wifi driver task: 3fca30b0, prio:23, stack:6656, core=0 I (381) wifi:wifi firmware version: 79fa3f41ba I (381) wifi:wifi certification version: v7.0 I (381) wifi:config NVS flash: enabled I (391) wifi:config nano formatting: disabled I (391) wifi:Init data frame dynamic rx buffer num: 32 I (401) wifi:Init static rx mgmt buffer num: 5 I (401) wifi:Init management short buffer num: 32 I (401) wifi:Init dynamic tx buffer num: 32 I (411) wifi:Init static tx FG buffer num: 2 I (411) wifi:Init static rx buffer size: 1600 I (421) wifi:Init static rx buffer num: 10 I (421) wifi:Init dynamic rx buffer num: 32 I (421) wifi_init: rx ba win: 6 I (431) wifi_init: accept mbox: 6 I (431) wifi_init: tcpip mbox: 32 I (431) wifi_init: udp mbox: 6 I (441) wifi_init: tcp mbox: 6 I (441) wifi_init: tcp tx win: 5760 I (441) wifi_init: tcp rx win: 5760 I (451) wifi_init: tcp mss: 1440 I (451) wifi_init: WiFi IRAM OP enabled I (451) wifi_init: WiFi RX IRAM OP enabled I (461) phy_init: phy_version 1200,2b7123f9,Feb 18 2025,15:22:21 Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. Core 0 register dump: MEPC : 0x4209e22c RA : 0x4209de30 SP : 0x3fca2de0 GP : 0x3fc92000 --- 0x4209e22c: txcal_gain_check at ??:? --- 0x4209de30: rom1_bt_get_tx_gain_new at ??:? TP : 0x3fca30a0 T0 : 0x000000f0 T1 : 0x3fc92bc0 T2 : 0x00000042 S0/FP : 0x0000000c S1 : 0x00000000 A0 : 0xffffff68 A1 : 0xffffffe0 A2 : 0x3fc92cca A3 : 0xffe00000 A4 : 0xffffffec A5 : 0xffffffc0 A6 : 0x3fc92ba6 A7 : 0x0000000e S2 : 0x0000ffa0 S3 : 0x3fc92b50 S4 : 0x3fc92ba6 S5 : 0x3fc92cda S6 : 0x3fc92cca S7 : 0x00000000 S8 : 0x3fc9a000 S9 : 0xffffffc8 S10 : 0x00000018 S11 : 0x3fc94000 T3 : 0x0000000e T4 : 0xffffff68 T5 : 0xffffffa0 T6 : 0x0000000c MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x0000001b --- 0x40380001: _vector_table at E:/espidf/v5.4.1/esp-idf/components/riscv/vectors_intc.S:54 MHARTID : 0x00000000 Stack memory: 3fca2de0: 0x00000006 0x3fc92b30 0x3fc92ca9 0x3fc92ca9 0x3fc92b98 0xffffff68 0xffffffa0 0x0000000c 3fca2e00: 0x00000002 0x0000004f 0x00cdf000 0x0000ffec 0x3fcdf934 0x3fce0000 0x01000100 0x00000000 3fca2e20: 0x3fcdf934 0x3fce0000 0x3ff1b000 0x3fce0000 0x00000000 0x3c0dab38 0x3fc99f50 0x00000000 3fca2e40: 0x3fca9958 0x3fc93000 0x3fc93000 0x4209e136 0xffffffa0 0x00000003 0x00000000 0x00000000 --- 0x4209e136: rom1_bt_set_tx_gain at ??:? 3fca2e60: 0x3fca9958 0x3fc99f50 0x3fc92b30 0x4209e188 0x3fca9958 0x3fc99f50 0x3fc92b30 0x4209ac72 --- 0x4209e188: bt_tx_gain_init at ??:? --- 0x4209ac72: bb_init at ??:? 3fca2e80: 0x3fca9958 0x00000000 0x3fc92b30 0x4209adc6 0x00ea0100 0x00ff0100 0x00eb0100 0x01010101 --- 0x4209adc6: register_chipv7_phy at ??:? 3fca2ea0: 0x00ed0101 0x00ff00ff 0x00f00100 0x010100ff 0x00f10100 0x01000101 0x00fa0101 0x00fe0103 3fca2ec0: 0x00fb0101 0x00f50100 0x00fb0101 0x00fa00fc 0x00000079 0x0cc90a8f 0x00000000 0x04090077 3fca2ee0: 0x070c1100 0x09010b0b 0x0908020a 0x4200c502 0x52520002 0x484c4c50 0x4648484c 0x4446464a --- 0x4200c502: nvs_get_u32 at E:/espidf/v5.4.1/esp-idf/components/nvs_flash/src/nvs_api.cpp:487 3fca2f00: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f20: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f40: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f60: 0x00000000 0x00000000 0x00000000 0x00000000 0x3fce0000 0x3fce0000 0x3fce0000 0x00000000 3fca2f80: 0x3c0d2000 0x3fca9958 0x00000000 0x42076b1e 0x00000000 0x00000000 0x3fca0e60 0x3fc99f58 --- 0x42076b1e: esp_phy_load_cal_and_init at E:/espidf/v5.4.1/esp-idf/components/esp_phy/src/phy_init.c:889 3fca2fa0: 0x3fc9a000 0x00000000 0x97b0cd34 0x0000dc59 0x00000000 0x00000000 0x3fce0000 0x3fc9883c 3fca2fc0: 0x3fc9a000 0x3fc9a000 0x00000001 0x42076bf6 0x00000000 0x3fc99000 0x3fce0000 0x420b0cc2 --- 0x42076bf6: esp_phy_enable at E:/espidf/v5.4.1/esp-idf/components/esp_phy/src/phy_init.c:301 --- 0x420b0cc2: esp_phy_enable_wrapper at E:/espidf/v5.4.1/esp-idf/components/esp_wifi/esp32c3/esp_adapter.c:564 3fca2fe0: 0x00000000 0x3fc99000 0x00000000 0x4205c4c6 0x3fc9883c 0x3fca30b0 0x3fca0e60 0x00000001 --- 0x4205c4c6: wifi_hw_start at ??:? 3fca3000: 0x3fc9883c 0x00000003 0x00000000 0x4205ce12 0x3fce0000 0x3fce0000 0x3fc98c70 0x3ff1b5a8 --- 0x4205ce12: wifi_start_process at ??:? 3fca3020: 0x3fc9883c 0xffffffff 0x3fca993c 0x4205b058 0x00000000 0x3fcdf918 0x3fce0000 0x4004094c --- 0x4205b058: ieee80211_ioctl_process at ??:? --- 0x4004094c: ppRxFragmentProc in ROM 3fca3040: 0x00000000 0x00000000 0x00000006 0x3fca993c 0x00000000 0x00000000 0x00000000 0x00000000 3fca3060: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3080: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 3fca30a0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x3fca2cc0 0x00000000 0x3fc9495c 0x3fc9495c 3fca30c0: 0x3fca30b0 0x3fc94954 0x00000002 0x3fca0fbc 0x3fca0fbc 0x3fca30b0 0x00000000 0x00000017 3fca30e0: 0x3fca16ac 0x69666977 0x00000000 0x00000000 0x00000000 0x3fca30a0 0x00000017 0x00000001 3fca3100: 0x00000000 0x00000000 0x00000000 0x3fc9aa50 0x3fc9aab8 0x3fc9ab20 0x00000000 0x00000000 3fca3120: 0x00000001 0x00000000 0x00000000 0x00000000 0x42004694 0x00000000 0x00000000 0x00000000 --- 0x42004694: esp_cleanup_r at E:/espidf/v5.4.1/esp-idf/components/newlib/newlib_init.c:43 3fca3140: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3160: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3180: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca31a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca31c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: e1814a13e Rebooting... ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0xc (RTC_SW_CPU_RST),boot:0xc (SPI_FAST_FLASH_BOOT) Saved PC:0x403807f4 --- 0x403807f4: esp_restart_noos at E:/espidf/v5.4.1/esp-idf/components/esp_system/port/soc/esp32c3/system_internal.c:112 SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd5820,len:0x1574 load:0x403cc710,len:0xc30 load:0x403ce710,len:0x2f64 entry 0x403cc71a I (24) boot: ESP-IDF v5.4.1 2nd stage bootloader I (24) boot: compile time Jun 26 2025 16:31:34 I (24) boot: chip revision: v0.4 I (25) boot: efuse block revision: v1.3 I (27) boot.esp32c3: SPI Speed : 80MHz I (31) boot.esp32c3: SPI Mode : DIO I (35) boot.esp32c3: 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=3c0c0020 size=21af0h (137968) map I (105) esp_image: segment 1: paddr=00031b18 vaddr=3fc91800 size=02dd8h ( 11736) load I (107) esp_image: segment 2: paddr=000348f8 vaddr=40380000 size=0b720h ( 46880) load I (117) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=b1a14h (727572) map I (233) esp_image: segment 4: paddr=000f1a3c vaddr=4038b720 size=06068h ( 24680) load I (239) esp_image: segment 5: paddr=000f7aac vaddr=50000200 size=0001ch ( 28) load I (245) boot: Loaded app from partition at offset 0x10000 I (245) boot: Disabling RNG early entropy source... I (259) cpu_start: Unicore app I (267) cpu_start: Pro cpu start user code I (267) cpu_start: cpu freq: 160000000 Hz I (268) app_init: Application information: I (268) app_init: Project name: internal_communication I (272) app_init: App version: 1 I (276) app_init: Compile time: Jun 26 2025 16:31:14 I (281) app_init: ELF file SHA256: e1814a13e... I (285) app_init: ESP-IDF: v5.4.1 I (289) efuse_init: Min chip rev: v0.3 I (293) efuse_init: Max chip rev: v1.99 I (297) efuse_init: Chip rev: v0.4 I (301) heap_init: Initializing. RAM available for dynamic allocation: I (307) heap_init: At 3FC9A410 len 00025BF0 (150 KiB): RAM I (312) heap_init: At 3FCC0000 len 0001C710 (113 KiB): Retention RAM I (318) heap_init: At 3FCDC710 len 00002950 (10 KiB): Retention RAM I (324) heap_init: At 5000021C len 00001DCC (7 KiB): RTCRAM I (330) spi_flash: detected chip: generic I (333) spi_flash: flash io: dio W (336) spi_flash: DetectEd size(8192k) larger than the size in the binary image header(2048k). I (361) main_task: Calling app_main() I (371) pp: pp rom version: 9387209 I (371) net80211: net80211 rom version: 9387209 I (381) wifi:wifi driver task: 3fca30b0, prio:23, stack:6656, core=0 I (381) wifi:wifi firmware version: 79fa3f41ba I (381) wifi:wifi certification version: v7.0 I (381) wifi:config NVS flash: enabled I (391) wifi:config nano formatting: disabled I (391) wifi:Init data frame dynamic rx buffer num: 32 I (401) wifi:Init static rx mgmt buffer num: 5 I (401) wifi:Init management short buffer num: 32 I (401) wifi:Init dynamic tx buffer num: 32 I (411) wifi:Init static tx FG buffer num: 2 I (411) wifi:Init static rx buffer size: 1600 I (421) wifi:Init static rx buffer num: 10 I (421) wifi:Init dynamic rx buffer num: 32 I (421) wifi_init: rx ba win: 6 I (431) wifi_init: accept mbox: 6 I (431) wifi_init: tcpip mbox: 32 I (431) wifi_init: udp mbox: 6 I (441) wifi_init: tcp mbox: 6 I (441) wifi_init: tcp tx win: 5760 I (441) wifi_init: tcp rx win: 5760 I (451) wifi_init: tcp mss: 1440 I (451) wifi_init: WiFi IRAM OP enabled I (451) wifi_init: WiFi RX IRAM OP enabled I (461) phy_init: phy_version 1200,2b7123f9,Feb 18 2025,15:22:21 Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. Core 0 register dump: MEPC : 0x4209e22c RA : 0x4209de30 SP : 0x3fca2de0 GP : 0x3fc92000 --- 0x4209e22c: txcal_gain_check at ??:? --- 0x4209de30: rom1_bt_get_tx_gain_new at ??:? TP : 0x3fca30a0 T0 : 0x000000f0 T1 : 0x3fc92bc0 T2 : 0x00000042 S0/FP : 0x0000000c S1 : 0x00000000 A0 : 0xffffff68 A1 : 0xffffffe0 A2 : 0x3fc92cca A3 : 0xffe00000 A4 : 0xffffffec A5 : 0xffffffc0 A6 : 0x3fc92ba6 A7 : 0x0000000e S2 : 0x0000ffa0 S3 : 0x3fc92b50 S4 : 0x3fc92ba6 S5 : 0x3fc92cda S6 : 0x3fc92cca S7 : 0x00000000 S8 : 0x3fc9a000 S9 : 0xffffffc8 S10 : 0x00000018 S11 : 0x3fc94000 T3 : 0x0000000e T4 : 0xffffff68 T5 : 0xffffffa0 T6 : 0x0000000c MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x0000001b --- 0x40380001: _vector_table at E:/espidf/v5.4.1/esp-idf/components/riscv/vectors_intc.S:54 MHARTID : 0x00000000 Stack memory: 3fca2de0: 0x00000006 0x3fc92b30 0x3fc92ca9 0x3fc92ca9 0x3fc92b98 0xffffff68 0xffffffa0 0x0000000c 3fca2e00: 0x00000002 0x0000004f 0x00cdf000 0x0000ffec 0x3fcdf934 0x3fce0000 0x01000100 0x00000000 3fca2e20: 0x3fcdf934 0x3fce0000 0x3ff1b000 0x3fce0000 0x00000000 0x3c0dab38 0x3fc99f50 0x00000000 3fca2e40: 0x3fca9958 0x3fc93000 0x3fc93000 0x4209e136 0xffffffa0 0x00000003 0x00000000 0x00000000 --- 0x4209e136: rom1_bt_set_tx_gain at ??:? 3fca2e60: 0x3fca9958 0x3fc99f50 0x3fc92b30 0x4209e188 0x3fca9958 0x3fc99f50 0x3fc92b30 0x4209ac72 --- 0x4209e188: bt_tx_gain_init at ??:? --- 0x4209ac72: bb_init at ??:? 3fca2e80: 0x3fca9958 0x00000000 0x3fc92b30 0x4209adc6 0x00ea0100 0x00ff0100 0x00eb0100 0x01010101 --- 0x4209adc6: register_chipv7_phy at ??:? 3fca2ea0: 0x00ed0101 0x00ff00ff 0x00f00100 0x010100ff 0x00f10100 0x01000101 0x00fa0101 0x00fe0103 3fca2ec0: 0x00fb0101 0x00f50100 0x00fb0101 0x00fa00fc 0x00000079 0x0cc90a8f 0x00000000 0x04090077 3fca2ee0: 0x070c1100 0x09010b0b 0x0908020a 0x4200c502 0x52520002 0x484c4c50 0x4648484c 0x4446464a --- 0x4200c502: nvs_get_u32 at E:/espidf/v5.4.1/esp-idf/components/nvs_flash/src/nvs_api.cpp:487 3fca2f00: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f20: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f40: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f60: 0x00000000 0x00000000 0x00000000 0x00000000 0x3fce0000 0x3fce0000 0x3fce0000 0x00000000 3fca2f80: 0x3c0d2000 0x3fca9958 0x00000000 0x42076b1e 0x00000000 0x00000000 0x3fca0e60 0x3fc99f58 --- 0x42076b1e: esp_phy_load_cal_and_init at E:/espidf/v5.4.1/esp-idf/components/esp_phy/src/phy_init.c:889 3fca2fa0: 0x3fc9a000 0x00000000 0x97b0cd34 0x0000dc59 0x00000000 0x00000000 0x3fce0000 0x3fc9883c 3fca2fc0: 0x3fc9a000 0x3fc9a000 0x00000001 0x42076bf6 0x00000000 0x3fc99000 0x3fce0000 0x420b0cc2 --- 0x42076bf6: esp_phy_enable at E:/espidf/v5.4.1/esp-idf/components/esp_phy/src/phy_init.c:301 --- 0x420b0cc2: esp_phy_enable_wrapper at E:/espidf/v5.4.1/esp-idf/components/esp_wifi/esp32c3/esp_adapter.c:564 3fca2fe0: 0x00000000 0x3fc99000 0x00000000 0x4205c4c6 0x3fc9883c 0x3fca30b0 0x3fca0e60 0x00000001 --- 0x4205c4c6: wifi_hw_start at ??:? 3fca3000: 0x3fc9883c 0x00000003 0x00000000 0x4205ce12 0x3fce0000 0x3fce0000 0x3fc98c70 0x3ff1b5a8 --- 0x4205ce12: wifi_start_process at ??:? 3fca3020: 0x3fc9883c 0xffffffff 0x3fca993c 0x4205b058 0x00000000 0x3fcdf918 0x3fce0000 0x4004094c --- 0x4205b058: ieee80211_ioctl_process at ??:? --- 0x4004094c: ppRxFragmentProc in ROM 3fca3040: 0x00000000 0x00000000 0x00000006 0x3fca993c 0x00000000 0x00000000 0x00000000 0x00000000 3fca3060: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3080: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 3fca30a0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x3fca2cc0 0x00000000 0x3fc9495c 0x3fc9495c 3fca30c0: 0x3fca30b0 0x3fc94954 0x00000002 0x3fca0fbc 0x3fca0fbc 0x3fca30b0 0x00000000 0x00000017 3fca30e0: 0x3fca16ac 0x69666977 0x00000000 0x00000000 0x00000000 0x3fca30a0 0x00000017 0x00000001 3fca3100: 0x00000000 0x00000000 0x00000000 0x3fc9aa50 0x3fc9aab8 0x3fc9ab20 0x00000000 0x00000000 3fca3120: 0x00000001 0x00000000 0x00000000 0x00000000 0x42004694 0x00000000 0x00000000 0x00000000 --- 0x42004694: esp_cleanup_r at E:/espidf/v5.4.1/esp-idf/components/newlib/newlib_init.c:43 3fca3140: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3160: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3180: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca31a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca31c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: e1814a13e Rebooting... ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0xc (RTC_SW_CPU_RST),boot:0xc (SPI_FAST_FLASH_BOOT) Saved PC:0x403807f4 --- 0x403807f4: esp_restart_noos at E:/espidf/v5.4.1/esp-idf/components/esp_system/port/soc/esp32c3/system_internal.c:112 SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd5820,len:0x1574 load:0x403cc710,len:0xc30 load:0x403ce710,len:0x2f64 entry 0x403cc71a I (24) boot: ESP-IDF v5.4.1 2nd stage bootloader I (24) boot: compile time Jun 26 2025 16:31:34 I (24) boot: chip revision: v0.4 I (25) boot: efuse block revision: v1.3 I (27) boot.esp32c3: SPI Speed : 80MHz I (31) boot.esp32c3: SPI Mode : DIO I (35) boot.esp32c3: 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=3c0c0020 size=21af0h (137968) map I (105) esp_image: segment 1: paddr=00031b18 vaddr=3fc91800 size=02dd8h ( 11736) load I (107) esp_image: segment 2: paddr=000348f8 vaddr=40380000 size=0b720h ( 46880) load I (117) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=b1a14h (727572) map I (233) esp_image: segment 4: paddr=000f1a3c vaddr=4038b720 size=06068h ( 24680) load I (239) esp_image: segment 5: paddr=000f7aac vaddr=50000200 size=0001ch ( 28) load I (245) boot: Loaded app from partition at offset 0x10000 I (245) boot: Disabling RNG early entropy source... I (259) cpu_start: Unicore app I (267) cpu_start: Pro cpu start user code I (267) cpu_start: cpu freq: 160000000 Hz I (268) app_init: Application information: I (268) app_init: Project name: internal_communication I (272) app_init: App version: 1 I (276) app_init: Compile time: Jun 26 2025 16:31:14 I (281) app_init: ELF file SHA256: e1814a13e... I (285) app_init: ESP-IDF: v5.4.1 I (289) efuse_init: Min chip rev: v0.3 I (293) efuse_init: Max chip rev: v1.99 I (297) efuse_init: Chip rev: v0.4 I (301) heap_init: Initializing. RAM available for dynamic allocation: I (307) heap_init: At 3FC9A410 len 00025BF0 (150 KiB): RAM I (312) heap_init: At 3FCC0000 len 0001C710 (113 KiB): Retention RAM I (318) heap_init: At 3FCDC710 len 00002950 (10 KiB): Retention RAM I (324) heap_init: At 5000021C len 00001DCC (7 KiB): RTCRAM I (330) spi_flash: detected chip: generic I (333) spi_flash: flash io: dio W (336) spi_flash: DetectEd size(8192k) larger than the size in the binary image header(2048k).
最新发布
06-27
<think>我们遇到了一个严重的错误:GuruMeditationError:Core0panic'ed(Storeaccessfault)。这个错误发生在WiFi初始化过程中,具体是在phy_init之后。错误类型是存储访问错误(Storeaccessfault),这通常表示尝试向无效的内存地址写入数据。从堆栈跟踪中,我们可以看到错误发生在`txcal_gain_check`函数中,这个函数属于蓝牙射频(RF)相关的初始化部分。错误地址是0x4209e22c。可能的原因:1.错误的PHY初始化数据(phy_init分区数据损坏或不匹配)2.射频校准数据问题(NVS中的校准数据损坏)3.硬件问题(如天线或射频电路)4.电源问题(供电不足导致射频初始化失败)解决方案:###步骤1:清除NVS分区并重新校准我们可以尝试清除NVS分区中的WiFi和蓝牙校准数据,让系统重新生成。使用以下Python脚本通过串口擦除NVS分区:```pythonimportserialimporttimedeferase_nvs(port='COM4',baudrate=115200):try:ser=serial.Serial(port,baudrate)print(f"连接到{port}...")#发送进入引导加载程序的命令ser.write(b'\n')#先发送一个换行确保唤醒time.sleep(1)ser.write(b'\x03')#Ctrl+C中断可能正在运行的程序time.sleep(1)ser.write(b'\x03')time.sleep(1)ser.write(b'rest\n')#有些版本使用`reset`命令time.sleep(1)#发送擦除命令ser.write(b'esptool.py--portCOM4erase_region0x90000x6000\n')time.sleep(5)#也可以使用idf.py命令#ser.write(b'idf.pyerase_nvs\n')#time.sleep(10)print("NVS分区已擦除,请重新烧录固件。")ser.close()exceptExceptionase:print(f"错误:{str(e)}")if__name__=='__main__':erase_nvs()```###步骤2:检查phy_init分区确保`phy_init`分区包含正确的射频初始化数据。检查方法:1.确认项目中有`phy_init_data.bin`文件(位于`components/esp_phy/esp32c3/phy_init_data.bin`)2.确认分区表中`phy_init`分区的位置和大小与烧录的`phy_init_data.bin`匹配###步骤3:检查电源确保开发板供电充足。射频初始化需要较大电流,建议使用USB3.0端口或外接电源。###步骤4:降低WiFi/BT并发模式如果同时启用了WiFi和蓝牙,尝试只启用WiFi。在`sdkconfig`中设置:```CONFIG_ESP32C3_REV_MIN=3CONFIG_ESP_PHY_ENABLE_USB=falseCONFIG_ESP_WIFI_SOFTAP_SUPPORT=n```###步骤5:更新ESP-IDF确保使用最新版本的ESP-IDF(至少v5.1以上),因为旧版本可能存在已知的射频问题。###步骤6:硬件检查如果以上步骤都失败,可能是硬件问题。尝试以下方法:1.更换ESP32-C3开发板2.检查天线连接是否良好3.使用示波器检查供电电压是否稳定##修复后的代码调整在代码中,我们可以添加一些安全措施来避免射频初始化问题:```c//在app_main中添加NVS初始化错误处理#include"nvs_flash.h"#include"esp_phy_init.h"voidapp_main(){//初始化NVSesp_err_tret=nvs_flash_init();if(ret==ESP_ERR_NVS_NO_FREE_PAGES||ret==ESP_ERR_NVS_NEW_VERSION_FOUND){//如果NVS分区被占用,则擦除并重新初始化ESP_ERROR_CHECK(nvs_flash_erase());ret=nvs_flash_init();}ESP_ERROR_CHECK(ret);//加载PHY初始化数据esp_phy_init_data_t*init_data=esp_phy_get_init_data();if(init_data==NULL){ESP_LOGE("main","FailedtogetPHYinitdata");return;}//设置PHY校准数据在NVS中的存储位置esp_phy_calibration_data_tcal_data;ret=esp_phy_load_cal_data_from_nvs(&cal_data);if(ret!=ESP_OK){ESP_LOGW("main","NoPHYcalibrationdatafound,usingdefault");//使用默认校准数据esp_phy_calibration_mode_tcal_mode=PHY_RF_CAL_FULL;ESP_ERROR_CHECK(esp_phy_load_cal_data_and_init(cal_mode));}else{ESP_ERROR_CHECK(esp_phy_load_cal_data_from_nvs(&cal_data));}//继续其他初始化...}```##完整错误处理流程```c#include"esp_system.h"#include"esp_log.h"#include"nvs_flash.h"#include"esp_phy_init.h"#include"esp_wifi.h"voidapp_main(){//1.初始化NVSesp_err_tret=nvs_flash_init();if(ret==ESP_ERR_NVS_NO_FREE_PAGES||ret==ESP_ERR_NVS_NEW_VERSION_FOUND){ESP_ERROR_CHECK(nvs_flash_erase());ret=nvs_flash_init();}ESP_ERROR_CHECK(ret);//2.初始化PHYesp_phy_init_data_t*phy_init_data=esp_phy_get_init_data();if(phy_init_data==NULL){ESP_LOGE("main","PHYinitdatafailed");return;}//3.尝试加载校准数据esp_phy_calibration_data_tcal_data;ret=esp_phy_load_cal_data_from_nvs(&cal_data);if(ret!=ESP_OK){ESP_LOGW("main","Nocalibrationdata,usingdefault");//使用默认校准并保存ret=esp_phy_load_cal_data_and_init(PHY_RF_CAL_FULL);if(ret==ESP_OK){esp_phy_store_cal_data_to_nvs(&cal_data);}}else{ret=esp_phy_load_cal_data_from_nvs(&cal_data);}if(ret!=ESP_OK){ESP_LOGE("main","PHYcalibrationfailed");return;}//4.初始化WiFiwifi_init_config_tcfg=WIFI_INIT_CONFIG_DEFAULT();ret=esp_wifi_init(&cfg);if(ret!=ESP_OK){ESP_LOGE("main","WiFiinitfailed:%s",esp_err_to_name(ret));return;}//...其余代码...}```##相关问题§§相关问题§§:1.ESP32的NVS分区损坏有哪些常见症状?2.如何为ESP32设计安全的固件升级机制避免射频校准数据丢失?3.在ESP-IDF中如何为不同型号的ESP32芯片加载不同的PHY初始化数据?4.如何通过软件方法检测ESP32开发板的供电不足问题?</think># ESP32-C3 Guru Meditation Error: Store Access Fault 分析与解决 从错误日志分析,您的ESP32-C3设备在WiFi初始化阶段出现了严重的"Store access fault"错误。这是一个内存访问违规错误,通常发生在尝试访问无效内存地址时。以下是完整的解决方案: ## 错误分析 关键错误信息: ``` Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. MEPC : 0x4209e22c RA : 0x4209de30 --- 0x4209e22c: txcal_gain_check at ??:? --- 0x4209de30: rom1_bt_get_tx_gain_new at ??:? ``` 这表明错误发生在蓝牙射频(RF)初始化阶段,具体在`txcal_gain_check`函数中。可能的原因包括: 1. 射频校准数据损坏 2. 电源不稳定导致射频初始化失败 3. 分区表与PHY初始化数据不匹配 4. 硬件兼容性问题(ESP32-C3芯片版本问题) ## 解决方案 ### 1. 清除NVS分区并重新校准射频 ```python # erase_nvs.py import serial import time def erase_nvs(port='COM4', baudrate=115200): try: ser = serial.Serial(port, baudrate) print(f"连接到 {port}...") # 发送进入引导加载程序的命令 ser.write(b'\n') # 先发送一个换行确保唤醒 time.sleep(1) ser.write(b'\x03') # Ctrl+C 中断可能正在运行的程序 time.sleep(1) ser.write(b'\x03') time.sleep(1) ser.write(b'rest\n') # 有些版本使用`reset`命令 time.sleep(1) # 发送擦除NVS
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值