Closed dabu667 closed 5 months ago
.. to add more info:
I tried setting flash freq to 40 or 80 MHz, setting QIO, DIO, DOUT mode to no avail ..
but I noticed something: the problem only occurs after a software reset (reboot
in serial monitor - which is an ESP.restart()
in code):
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
on the first hardware reset everything works fine:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
also disabling PSRAM has no effect
After a few more hours of getting nowhere I think that this is not a issue with hardware or configuration but software problem: after ESP.restart()
I think something is not initialised correctly.
Another day lost trying to find a solution. I removed the PSRAM chip from the board bringing it to the original state and the problem persists: after the first soft reset (from the serial monitor, from the web interface or when waking from deep sleep) the board becomes unstable: wi-fi drops and reconnects randomly, web interface is inaccessible or barely loads, vu-meters hang and I even notice dropouts on another yoRadio device nearby!! so something really wrong happens to the wi-fi chip. I cannot isolate the problem but I'm pretty sure it is this hardware and software combination: esp32-2432s028 board - the yellow one documented here: https://github.com/e2002/yoradio/wiki/ESP32-TFT-Boards-configurations#esp32-2432s028r I'm using the IDE 1.8.19, latest esp core 2.0.14, and latest libraries (although I tried many older ones also) If anybody has this board and is willing to try to flash the latest version (v0.9.300) please leave me a message.
works fine here with this myoptions (and PCM5102 DAC):
only the TP has to rotate 180°
Thank you saarfranzose for replying. Unfortunately it doesn't work - it has the same behavior: after the first software restart it constantly drops Wi-Fi.
Would you be so kind to send me your settings:
Arduino IDE version: Copmiler version: ESP32 core version: All of the above show on serial after reset:
[BOOT]# arduino: 10813
[BOOT]# compiler: 8.4.0
[BOOT]# esp32core: 2.0.14
Dependencies versions: Adafruit_GFX: Adafruit_ILI9341: OneButton: XPT2046_Touchscreen: RTCLib: If you're using the latest then don't bother.
Flash settings: 40 / 80Mhz, QIO, DIO, QOUT, DOUT?
Can you attach the exported compiled binary (yoRadio.ino.esp32.bin)?
hi dabu, my settings are absolutly standard: core is 2.0.14 and the libraries, if not included in yoradio/src, have current version
Hello dabu,
here is my bin-file
regards
Franz-Josef
Von: dabu667 @.*** Gesendet: Freitag, 26. Januar 2024 07:50 An: e2002/yoradio Cc: saarfranzose; Comment Betreff: Re: [e2002/yoradio] esp32-2432s028 unstable after soft reset (works fine after hard reset) (Issue #71)
Thank you saarfranzose https://github.com/saarfranzose for replying. Unfortunately it doesn't work - it has the same behavior: after the first software restart it constantly drops Wi-Fi.
Would you be so kind to send me your settings:
Arduino IDE version: Copmiler version: ESP32 core version: All of the above show on serial after reset:
Dependencies versions: Adafruit_GFX: Adafruit_ILI9341: OneButton: XPT2046_Touchscreen: RTCLib: If you're using the latest then don't bother.
Flash settings: 40 / 80Mhz, QIO, DIO, QOUT, DOUT?
Can you attach the exported compiled binary (yoRadio.ino.esp32.bin)?
— Reply to this email directly, view it on GitHub https://github.com/e2002/yoradio/issues/71#issuecomment-1911570861 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCM7RKUGF6QUXRMTR6EFFDYQNG2DAVCNFSM6AAAAABCIL7TBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJRGU3TAOBWGE . You are receiving this because you commented. https://github.com/notifications/beacon/AGCM7RK3VFK2ZEFG4NG3O6DYQNG2DA5CNFSM6AAAAABCIL7TBCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTR6BA22.gif Message ID: @.***>
I don't think you can send a file by replying from email, I think you need to log into github. Thank you for your help, though. I have one more thing to ask of you if it's not too difficult, then I give up: do a software reset (boot command on serial or save & reboot on WiFi settings on web interface) and then see if everything is as responsive as before: check for dropouts on stream, vu-meters freezing or unresponsive web interface.
It's FIXED now! It was a faulty ESP32 module on this CYD board. I have ordered an original esp32 module manufactured by Espressif and replace the one on the board and everything works jus as it should. Is it worth all the time spent? I guess not but I just couldn't let it go.
If you want to find out more read below: I have tried everything before: in software disconnecting WiFi and disabling various esp peripherals (spi, wifi radio, etc) before restarting but nothing worked. Then I modified the hardware:
So, the final step I took was to order a new original Espressif module and replace it. I went for a module with an antenna connector so to exclude the low signal from the possible problems but even if I don't connect the antenna (at -80dB) I have a more responsive device then any of my previous builds using non Espressif modules! So, be aware! it seems that some esp32 modules are really low quality!
HI, I removed the RGB LED to free IO16 and IO17 from the board and attached PSRAM IC following this tutorial: https://github.com/hexeguitar/ESP32_TFT_PIO?tab=readme-ov-file#3-adding-psram Everything seems fine until I try to play a stream - see serial output below:
.. but when I hit play I get constant Wi-Fi disconnect and reconnect:
I tried changing XTASK_MEM_SIZE from 4096 to 8192 to 16384 but nothing changed I suspect it's a memory issue though: if I use DSP_DUMMY it works fine. Or maybe a SPI issue? Although display and PSRAM use different SPI interfaces Can you please help?