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

Quickstart.ino panic #496

Open
y-nk opened this issue Oct 3, 2024 · 0 comments
Open

Quickstart.ino panic #496

y-nk opened this issue Oct 3, 2024 · 0 comments

Comments

@y-nk
Copy link

y-nk commented Oct 3, 2024

Hello,

I'm trying to use this library for the 1st time. Here's relevant information to begin with:

  • Board is ESP32 D0WD V3 (rev 3.1)
  • uSD card reader
  • 2 uSD cards, 1Gb and 32Gb formatted with SD Card Formatter + added one file inside.
  • Running Quickstart.ino
  • Custom SPI wiring (sadly mandatory) added at the top
    #define SCK 27
    #define MISO 32
    #define MOSI 33
    #define SS 14

Exactly this leads to a "stable" panic. Here's the log:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:4832
load:0x40078000,len:16460
load:0x40080400,len:4
load:0x40080404,len:3504
entry 0x400805cc

SPI pins:
MISO: 32
MOSI: 33
SCK:  27
SS:   14

Be sure to edit DISABLE_CHIP_SELECT if you have
a second SPI device.  For example, with the Ethernet
shield, DISABLE_CHIP_SELECT should be set to 10
to disable the Ethernet controller.

SD chip select is the key hardware option.
Common values are:
Arduino Ethernet shield, pin 4
Sparkfun SD shield, pin 8
Adafruit SD shields and modules, pin 10

Enter the chip select pin number: 14

Assuming the SD is the only SPI device.
Edit DISABLE_CHIP_SELECT to disable another device.
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x400d1d56  PS      : 0x00060030  A0      : 0x800d7a4b  A1      : 0x3ffb2240  
A2      : 0x3ffc1570  A3      : 0x3ffc15dc  A4      : 0x400f723c  A5      : 0x00000000  
A6      : 0x3ffc1510  A7      : 0x00000000  A8      : 0x800d1d14  A9      : 0x3ffb2210  
A10     : 0x00000000  A11     : 0x3ffc1858  A12     : 0x000f4240  A13     : 0x3ffb224c  
A14     : 0x3ffc1514  A15     : 0x00000001  SAR     : 0x00000012  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x0000000e  LBEG    : 0x400842b5  LEND    : 0x400842bd  LCOUNT  : 0x00000027  


Backtrace: 0x400d1d53:0x3ffb2240 0x400d7a48:0x3ffb2270 0x4008a281:0x3ffb2290

Decoded backtrace:

PC: 0x400d1d56: _GLOBAL__sub_I_sd() at /Users/julien/Documents/Arduino/libraries/SdFat/src/iostream/ios.h line 148
EXCVADDR: 0x0000000e

Decoding stack results
0x400d1d53: _GLOBAL__sub_I_sd() at /Users/julien/Documents/Arduino/libraries/SdFat/src/iostream/ios.h line 146
0x400d7a48: uartDetectBaudrate at /Users/julien/Library/Arduino15/packages/esp32/hardware/esp32/3.0.5/cores/esp32/esp32-hal-uart.c line 1080
0x4008a281: xPortStartScheduler at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c line 140

My current level of C leaves me with no clue what to do else than opening an issue. I would really like to be able to avoid asking for help but...

Anybody has an idea of what's happening here? Thank you.

EDIT:

After testing the default wiring prompted, library works fine.

SPI pins:
MISO: 19
MOSI: 23
SCK:  18
SS:   5

How could I run the Quickstart with a custom SPI?

@y-nk y-nk changed the title Quickstart panic Quickstart.ino panic Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant