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

5.2.2 commit SPI FLASH CACHE PROBLEM WHILE TRYING TO MOUNT FATFS FROM WEBSOCKET EVENT HANDLER - Commit d1ed3a8 cause FLASH CACHE problem (IDFGH-13399) #14307

Open
3 tasks done
filzek opened this issue Aug 6, 2024 · 0 comments
Assignees
Labels
Status: Opened Issue is new

Comments

@filzek
Copy link

filzek commented Aug 6, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

ESP32 comaptible with 1.0.

When trying to mount FATFS inside the websocket event handler its crashes

D (91141) wl_flash: config - config result: state_size=0x00001000, cfg_size=0x00001000, addr_cfg=0x0008f000, addr_state1=0x0008d000, addr_state2=0x0008e000, flash_size=0x0008c000
Guru Meditation Error: Core 0 panic'ed (Cache disabled but cached memory region accessed).

Core 0 register dump:
PC : 0x4008bffa PS : 0x00060135 A0 : 0x8008cea6 A1 : 0x3ffb7520
0x4008bffa: spi_flash_op_block_func at C:/Espressif/frameworks/esp-idf-v5.2/components/spi_flash/cache_utils.c:138 (discriminator 1)

A2 : 0x00000000 A3 : 0x00000001 A4 : 0x3ffc2820 A5 : 0x3ffbdc24
A6 : 0x00000000 A7 : 0x00000054 A8 : 0x00000000 A9 : 0x3ffc75ae
A10 : 0x00000001 A11 : 0x3ffb773c A12 : 0x8400006f A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000020 SAR : 0x00000001 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x4008bff7:0x3ffb7520 0x4008cea3:0x3ffb7540
0x4008bff7: spi_flash_op_block_func at C:/Espressif/frameworks/esp-idf-v5.2/components/spi_flash/cache_utils.c:138 (discriminator 1)
0x4008cea3: ipc_task at C:/Espressif/frameworks/esp-idf-v5.2/components/esp_system/esp_ipc.c:64

So, there is no such restrictions and this was the code running for a long time, so, one of the latests commits in the libs and files has broken the code.

@espressif-bot espressif-bot added the Status: Opened Issue is new label Aug 6, 2024
@github-actions github-actions bot changed the title 5.2.2 commit SPI FLASH CACHE PROBLEM WHILE TRYING TO MOUNT FATFS FROM WEBSOCKET EVENT HANDLER - Commit d1ed3a8 cause FLASH CACHE problem 5.2.2 commit SPI FLASH CACHE PROBLEM WHILE TRYING TO MOUNT FATFS FROM WEBSOCKET EVENT HANDLER - Commit d1ed3a8 cause FLASH CACHE problem (IDFGH-13399) Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

3 participants