adafruit/Adafruit_VS1053_Library

Strange error occurs once and again while using Music Maker

Opened this issue · 0 comments

Hello everybody!

I'm developing a build in which I need to play an .mp3 file in the ESP32-based Feather HUZZAH32 board.
In order to get that, I decided to use the Adafruit Music Maker FeatherWing (without Amp) board, and Adafruit VS1053 library.

I started with the example recomended in official site. So, after connecting all the pins of both boards, I uploaded the VS1053 library's example "feather_player" without any modification. However, I get the error below:

`Adafruit VS1053 Feather Test
VS1053 found
SD OK!
track002.wav 5299354
track001.wav 5299346
Playing full track 001
Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception).
Debug exception reason: Stack canary watchpoint triggered (dF⸮?)
Core 1 register dump:
PC : 0x40084583 PS : 0x00050036 A0 : 0x3ffb097c A1 : 0x3ffb08bc
A2 : 0x00000029 A3 : 0x3ffbe110 A4 : 0x400845eb A5 : 0xc0000000
A6 : 0x3ffb097c A7 : 0x3ffbdc1c A8 : 0x000000f9 A9 : 0x4008459f
A10 : 0x80000000 A11 : 0x3ffbdf58 A12 : 0x3ffbdf5c A13 : 0x3ffbdf2c
A14 : 0x00008000 A15 : 0x3ffbdc1c SAR : 0x00000001 EXCCAUSE: 0x00000001
EXCVADDR: 0x00008000 LBEG : 0x40087151 LEND : 0x40087161 LCOUNT : 0xfffffffa

Backtrace:0x40084580:0x3ffb08bc |<-CORRUPTED

ELF file SHA256: 0000000000000000

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:1184
load:0x40078000,len:13160
load:0x40080400,len:3036
entry 0x400805e4`

This text is repeated once and again without any change. The only sound you can hear is the one that is generated at start of the sketch.
You can see that the error doesn't start when reading the uSD card: it appears when starts playing a file. I don't know if it is a library's problem, but I post it just in case.

I have tried checking conections, changing the HUZZAH32 board (I got two of them), changing the uSD card, changing audio files format, making all code and conection changes that appears on the official troubleshooting page... But none of them worked. Even more, none of the characters of the error changed.

Could somenone explain what should I do? Why does the error occur?

Thank you very much for help!

Iñigo