Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spi_bus_intr_disable not in IRAM (IDFGH-4992) #6781

Closed
KaeLL opened this issue Mar 25, 2021 · 1 comment
Closed

spi_bus_intr_disable not in IRAM (IDFGH-4992) #6781

KaeLL opened this issue Mar 25, 2021 · 1 comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@KaeLL
Copy link
Contributor

KaeLL commented Mar 25, 2021

As expected, it breaks when the spi interrupt runs and a flash operation is taking place.
IDF ver: 1067b28

Backtrace
Re-enable cpu cache.
Guru Meditation Error: Core  0 panic'ed (Cache disabled but cached memory region accessed). 

Core  0 register dump:
PC      : 0x401964dc  PS      : 0x00060034  A0      : 0x8009121e  A1      : 0x3ffbf840  
0x401964dc: spi_bus_intr_disable at /esp-idf/components/driver/spi_master.c:515

A2      : 0x3ffd0614  A3      : 0x3ffc4a98  A4      : 0x27fa57a9  A5      : 0x27fa57a9  
A6      : 0x3ffc4b4c  A7      : 0xffffedff  A8      : 0x80090764  A9      : 0x27fa57a9  
A10     : 0x3ffbb670  A11     : 0x00000001  A12     : 0x27fa57a9  A13     : 0x00000000  
A14     : 0x00060c23  A15     : 0x00000000  SAR     : 0x00000000  EXCCAUSE: 0x00000007  
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000  

Backtrace:0x401964d9:0x3ffbf840 0x4009121b:0x3ffbf870 0x40086439:0x3ffbf8a0 0x40087121:0x3ffb7540 0x40091ee1:0x3ffb7570
0x401964d9: spi_master_deinit_driver at /esp-idf/components/driver/spi_master.c:291

0x4009121b: spi_intr at /esp-idf/components/driver/spi_master.c:606

0x40086439: _xt_lowint1 at /esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1105

0x40087121: spi_flash_op_block_func at /esp-idf/components/spi_flash/cache_utils.c:114

0x40091ee1: ipc_task at /esp-idf/components/esp_ipc/ipc.c:62
Piece of the coredump
==================== CURRENT THREAD STACK =====================
#0  spi_bus_intr_disable (host=0x3ffd0614) at /esp-idf/components/driver/spi_master.c:515
#1  0x40090764 in bg_disable (lock=0x3ffd0614) at /esp-idf/components/driver/spi_bus_lock.c:720
#2  bg_entry_core (lock=0x3ffd0614) at /esp-idf/components/driver/spi_bus_lock.c:480
#3  spi_bus_lock_bg_entry (lock=0x3ffd0614) at /esp-idf/components/driver/spi_bus_lock.c:720
#4  0x4009121e in spi_intr (arg=0x3ffbb670 <rwip_heap_msg+7248>) at /esp-idf/components/driver/spi_master.c:606
#5  0x4008643c in _xt_lowint1 () at /esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1105
@espressif-bot espressif-bot added the Status: Opened Issue is new label Mar 25, 2021
@github-actions github-actions bot changed the title spi_bus_intr_disable not in IRAM spi_bus_intr_disable not in IRAM (IDFGH-4992) Mar 25, 2021
@igrr
Copy link
Member

igrr commented Mar 26, 2021

Linking to #6529

@KaeLL KaeLL closed this as completed Mar 26, 2021
@espressif-bot espressif-bot added Resolution: Won't Do This will not be worked on Status: Done Issue is done internally and removed Status: Opened Issue is new labels Mar 26, 2021
@espressif-bot espressif-bot added Status: Opened Issue is new and removed Resolution: Won't Do This will not be worked on Status: Done Issue is done internally labels Aug 4, 2021
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new labels Aug 6, 2021
espressif-bot pushed a commit that referenced this issue Aug 6, 2021
espressif-bot pushed a commit that referenced this issue Aug 11, 2021
espressif-bot pushed a commit that referenced this issue Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants