Closed Unochepassa closed 2 years ago
UPDATE:
As I am not proficient yet with PlatformIO, I tried the old-school approach of adding dbgprint ("") here and there and commenting out parts of code. Apparently, commenting [vs1053player->streamMode ( true )] out in the part of code below allows the boot to complete. Still, no screen nor audio is available, even if the web interface works properly. I checked the wiring, and everything seems in place (plus, it was working perfectly before the anomaly). As you can imagine, re-uploading the code did nothing, this time.
readprogbuttons() ; // Program the free input pins SPI.begin ( ini_block.spi_sck_pin,
ini_block.spi_miso_pin, ini_block.spi_mosi_pin ) ; // Init VSPI bus with default or modified pins vs1053player = new VS1053 ( ini_block.vs_cs_pin,
ini_block.vs_dcs_pin, ini_block.vs_dreq_pin, ini_block.vs_shutdown_pin, ini_block.vs_shutdownx_pin ) ; // Make instance of player vs1053player->streamMode ( true ) ; // Set streammode (experimental)
Ok, apparently it was just a cold joint on the EN pin. Very difficult to spot, even if the behaviour could have provided some hint. I still have some stability issues, but I probably just need a better power supply.
First of all, thank you very much for your time and support and congratulations for your magnificent software. Now that I'm done with the box, I'm having issues with the system. I have had to reinstall it three times because of misterious problems. While working, it suddenly reboots and keeps rebooting or stops at some point of the code (last time it was right after wifi connection). I suspect a hardware issue, but I would like to give it another try before tossing the esp32 into the bin. This time, while I was listening to some music, it rebooted and hung just after checking the status of the GPIO. This is what I can see in the terminal (pio):
To be candid, I made some changes to the code to modify the behaviour of the knob and to make the web interface more mobile friendly. Any ideas? Thank you.