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

Sound with major interrupts on VS1003 #2

Open
skartalov opened this issue Oct 6, 2021 · 5 comments
Open

Sound with major interrupts on VS1003 #2

skartalov opened this issue Oct 6, 2021 · 5 comments

Comments

@skartalov
Copy link

skartalov commented Oct 6, 2021

I am using VS1003 insted of VS1053.

The Terminal shows correct about using VS1003, but when the stream starts it is interrupted a lot.
Like 0.5 sec sound, 5 sec - no sound.
On every stations.

What could be the issue? Did someone else used VS1003 ?

Also:

When it can not connect to the network and tried to create hotspot ESP32Radio, it reboots with this log:

WiFi Failed! Trying to setup AP with name ESP32Radio and password ESP32Radio.
D: IP = 192.168.4.1
D: Start server for commands
D: Rotary encoder is enabled
D: STOP requested
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x4018d92b PS : 0x00060e30 A0 : 0x800d211b A1 : 0x3ffb1f10
A2 : 0x00000000 A3 : 0xa3a2e1c9 A4 : 0x3f400a96 A5 : 0x3ffb1f30
A6 : 0x3ffb1f00 A7 : 0x00000004 A8 : 0xa3a2e1c9 A9 : 0x3ffb1ea0
A10 : 0x00000001 A11 : 0x00000001 A12 : 0x3ffd75e8 A13 : 0x00000001
A14 : 0x00000000 A15 : 0x00000001 SAR : 0x00000020 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000

ELF file SHA256: 0000000000000000

Backtrace: 0x4018d92b:0x3ffb1f10 0x400d2118:0x3ffb1f30 0x400d4654:0x3ffb1f50 0x400d7366:0x3ffb1f90 0x400eb2c4:0x3ffb1fb0 0x4008a586:0x3ffb1fd0
#0 0x4018d92b:0x3ffb1f10 in AsyncClient::connected() at .pio\libdeps\esp32doit-devkit-v1\AsyncTCP\src/AsyncTCP.cpp:1118
#1 0x400d2118:0x3ffb1f30 in stop_mp3client() at src/main.cpp:1323
#2 0x400d4654:0x3ffb1f50 in mp3loop() at src/main.cpp:2925
#3 0x400d7366:0x3ffb1f90 in loop() at src/main.cpp:3130
#4 0x400eb2c4:0x3ffb1fb0 in loopTask(void*) at C:\Users\moni.platformio\packages\framework-arduinoespressif32\cores\esp32/main.cpp:23
#5 0x4008a586:0x3ffb1fd0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...

@Edzelf
Copy link
Owner

Edzelf commented Oct 6, 2021

I can not check the VS1003 output as I do not have one.

The AP bug is fixed.

@skartalov
Copy link
Author

Yes AP now starts but can not load properly the config window. See the image attachedimage

@Edzelf
Copy link
Owner

Edzelf commented Oct 6, 2021

You have the wrong files in SPIFFS. In the data directory there should be a file "config.html" without the "MP3 player" tab:

 <ul>
   <li><a class="pull-left" href="/index.html">Control</a></li>
   <li><a class="pull-left" href="/search.html">Search</a></li>
   <li><a class="pull-left active" href="/config.html">Config</a></li>
   <li><a class="pull-left" href="/about.html">About</a></li>
  </ul>

@Edzelf
Copy link
Owner

Edzelf commented Oct 7, 2021

See https://randomnerdtutorials.com/esp32-vs-code-platformio-spiffs/

Uploading Filesystem Image

After creating and saving the file or files you want to upload under the data folder, follow the next steps:

Click the PIO icon at the left side bar. The project tasks should open.
Select env:esp32doit-devkit-v1 (it may be slightly different depending on the board you’re using).
Expand the Platform menu.
Select Build Filesystem Image.
Finally, click Upload Filesystem Image.

Or open a PlatformIO terminal and type "pio run -t uploadfs"

@skartalov
Copy link
Author

Yes, this is exactly what I did and now it works! Thanks!

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

2 participants