spi_nand_flash 长时间运行报错 (IEC-359)
Answers checklist.
- [x] I have read the component documentation ESP-IDF Components and the issue is not addressed there.
- [x] I am using target and esp-idf version as defined in component's idf_component.yml
- [x] I have searched the issue tracker for a similar issue and not found any related issue.
Which component are you using? If you choose Other, provide details in More Information.
argtable3
ESP-IDF version.
v5.4.0
Development Kit.
ESP32-P4
Used Component version.
V0.11.0
More Information.
assert failed: nand_read nand_impl.c:248 (page < handle->chip.num_blocks * (1 << handle->chip.log2_ppb))
--- Stack dump detected
Core 0 register dump:
MEPC : 0x4ff00cb0 RA : 0x4ff130c6 SP : 0x485d3270 GP : 0x4ff1e680
--- 0x4ff00cb0: panic_abort at /Users/logicdance/esp/esp-idf/components/esp_system/panic.c:482
--- 0x4ff130c6: flash_read at /Users/logicdance/esp/esp-idf/components/esp_system/port/image_process.c:77
TP : 0x485d3790 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x00000001 S1 : 0x485d33f8 A0 : 0x485d32c8 A1 : 0x4ff23589
A2 : 0x00000001 A3 : 0x00000029 A4 : 0x00000001 A5 : 0x4ff29000
A6 : 0x0000000c A7 : 0x76757473 S2 : 0x0000005f S3 : 0x485d32c8
S4 : 0x485d32c8 S5 : 0x485d34cc S6 : 0x485d347c S7 : 0x0000004a
S8 : 0xffffffff S9 : 0x00000020 S10 : 0x80000000 S11 : 0x485d3620
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00011880 MTVEC : 0x4ff00003 MCAUSE : 0x00000002 MTVAL : 0x00000000
--- 0x4ff00003: _vector_table at ??:?
MHARTID : 0x00000000
--- Backtrace:
panic_abort (details=details@entry=0x485d32c8 "assert failed: nand_read nand_impl.c:248 (page < handle->chip.num_blocks * (1 << handle->chip.log2_ppb))") at /Users/logicdance/esp/esp-idf/components/esp_system/panic.c:482
482 asm("unimp"); // should be an invalid operation on RISC-V targets
#0 panic_abort (details=details@entry=0x485d32c8 "assert failed: nand_read nand_impl.c:248 (page < handle->chip.num_blocks * (1 << handle->chip.log2_ppb))") at /Users/logicdance/esp/esp-idf/components/esp_system/panic.c:482
#1 0x4ff130c6 in esp_system_abort (details=details@entry=0x485d32c8 "assert failed: nand_read nand_impl.c:248 (page < handle->chip.num_blocks * (1 << handle->chip.log2_ppb))") at /Users/logicdance/esp/esp-idf/components/esp_system/port/esp_system_chip.c:87
#2 0x4ff1cbe4 in __assert_func (file=
报错信息如上,请问如何修复,系统在运行不定时间的时候会卡死报错
Hello @logicDance-mcu , thank you for reporting the issue. Could you please share a few more details? Specifically, which NAND flash are you using, what SPI frequency and mode (SIO, DIO, etc.) you configured, and how the NAND flash is connected to your ESP32-P4? If possible, please also provide a photograph of your setup and the schematics.