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

Sync TOD | Failed to obtain time #120

Open
igor756 opened this issue Jul 17, 2023 · 9 comments
Open

Sync TOD | Failed to obtain time #120

igor756 opened this issue Jul 17, 2023 · 9 comments

Comments

@igor756
Copy link

igor756 commented Jul 17, 2023

Hello, thank you for nice project.
I connected only ESP32 + VS1053B (slightly different PCB design then your).

After uploading default config through web (no change, only wifi) I am receiving following error in serial monitor:
[ 46647][I][main.cpp:4347] gettime(): [main] Sync TOD
[ 51657][W][main.cpp:4350] gettime(): [main] Failed to obtain time!

The sound is OK and I can change radio stations in web.
Can you advise where the problem can be?

Thank you and have a nice day.

@Edzelf
Copy link
Owner

Edzelf commented Jul 17, 2023

It may take some time before the clock is synchronized. The message will disappear after some time.

@igor756
Copy link
Author

igor756 commented Jul 19, 2023

Hmm, waited for 1 hour and no luck.
Added rotary encoder and now I am receiving:
[ 89830][W][AsyncTCP.cpp:930] _poll(): pcb is NULL
[ 91934][I][main.cpp:4347] gettime(): [main] Sync TOD
[ 96944][W][main.cpp:4350] gettime(): [main] Failed to obtain time!

Encoder works for mute/unmute and preset, though not working for volume control.
Any idea please?

@igor756
Copy link
Author

igor756 commented Jul 24, 2023

Update:
After very long time:
[1025218][I][main.cpp:4347] gettime(): [main] Sync TOD
[1030229][W][main.cpp:4350] gettime(): [main] Failed to obtain time!
[1109608][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: WOOD, BSSID: 08:45:d1:e2:0c:a0, Reason: 200
[1109609][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[1109613][I][main.cpp:2505] onError(): [main] MP3 host error Connection aborted
[1109616][W][WiFiGeneric.cpp:1057] _eventCallback(): Reason: 200 - BEACON_TIMEOUT
[1109624][I][main.cpp:2529] onDisConnect(): [main] Host disconnected

And the radio stopped working.
Can you help please?

@Edzelf
Copy link
Owner

Edzelf commented Jul 25, 2023

Are you sure you have a working NTP timeserver configured?
See paragraph 2.2 in the documentation.

clk_dst = 1
clk_offset = -1
clk_server = pool.ntp.org

Port 123 UDP must be open for access (in/out).

@igor756
Copy link
Author

igor756 commented Aug 1, 2023

Now lot of different errors there, ie:
E (43750) gpio: gpio_set_level(226): GPIO output gpio_num error
E (43764) gpio: gpio_set_level(226): GPIO output gpio_num error
E (43769) gpio: gpio_set_level(226): GPIO ouGuru Meditation Error: Core 0 panic'ed (Unhandled debug exception).
Debug exception reason: Stack canary watchpoint triggered (Playtask)
...
Backtrace: 0x400925f4:0x3ffdbfc0 0x400907ad:0x3ffdc000 0x4008ec14:0x3ffdc030 0x4008ebc4:0xa5a5a5a5 |<-CORRUPTED

I will try to change ESP32 and VS1053 for different pieces to see if it is not a hardware error.
Thank you for help so far.

@Edzelf
Copy link
Owner

Edzelf commented Aug 1, 2023 via email

@igor756
Copy link
Author

igor756 commented Aug 2, 2023

Here is what I receive after connecting to power from serial monitor Platformio. Only ESP32 and VS1053B (different PCB from yours) are connected. I am pretty much sure wiring is good.
Can you see what can be wrong here beside HW problems?
Thank you very much!

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:2
load:0x3fff0030,len:1184
load:0x40078000,len:13192
load:0x40080400,len:3028
entry 0x400805e4
E (511) esp_core_dump_flash: No core dump��ѥѥ���found!
E (511) esp_core_dump_flash: No core dump partition found!
[ 8][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz

Starting ESP32-radio running on CPU 1 at 240 MHz.
[ 3043][I][main.cpp:2559] setup(): [main] Version Fri, 16 Jun 2023 07:30:00 GMT. Free memory 110580
[ 3045][I][main.cpp:2560] setup(): [main] Display type is DUMMY
[ 3141][I][main.cpp:2570] setup(): [main] SPIFFS is okay, space 1016801, used 33383
[ 3145][I][main.cpp:2591] setup(): [main] Found partition 'nvs ' at offset 0x009000 with size 20480
[ 3147][I][main.cpp:2591] setup(): [main] Found partition 'otadata ' at offset 0x00E000 with size 8192
[ 3157][I][main.cpp:2591] setup(): [main] Found partition 'spiffs ' at offset 0x2F0000 with size 1114112
[ 3169][I][main.cpp:2466] fillkeylist(): [main] Read 47 keys from NVS
[ 3181][I][main.cpp:1890] readIOprefs(): [main] pin_spi_sck set to 18
[ 3181][I][main.cpp:1890] readIOprefs(): [main] pin_spi_miso set to 19
[ 3185][I][main.cpp:1890] readIOprefs(): [main] pin_spi_mosi set to 23
[ 3202][I][main.cpp:2632] setup(): [main] GPIO0 is HIGH
[ 3212][I][main.cpp:2632] setup(): [main] GPIO2 is LOW, probably no PULL-UP
[ 3222][I][main.cpp:2632] setup(): [main] GPIO4 is HIGH
[ 3232][I][main.cpp:2632] setup(): [main] GPIO5 is HIGH
[ 3242][I][main.cpp:2632] setup(): [main] GPIO12 is HIGH
[ 3252][I][main.cpp:2632] setup(): [main] GPIO13 is HIGH
[ 3262][I][main.cpp:2632] setup(): [main] GPIO14 is HIGH
[ 3272][I][main.cpp:2632] setup(): [main] GPIO15 is HIGH
[ 3282][I][main.cpp:2632] setup(): [main] GPIO16 is HIGH
[ 3292][I][main.cpp:2632] setup(): [main] GPIO17 is HIGH
[ 3302][I][main.cpp:2632] setup(): [main] GPIO18 is HIGH
[ 3312][I][main.cpp:2632] setup(): [main] GPIO19 is HIGH
[ 3322][I][main.cpp:2632] setup(): [main] GPIO21 is HIGH
[ 3332][I][main.cpp:2632] setup(): [main] GPIO22 is HIGH
[ 3342][I][main.cpp:2632] setup(): [main] GPIO23 is HIGH
[ 3352][I][main.cpp:2632] setup(): [main] GPIO25 is HIGH
[ 3362][I][main.cpp:2632] setup(): [main] GPIO26 is HIGH
[ 3372][I][main.cpp:2632] setup(): [main] GPIO27 is HIGH
[ 3382][I][main.cpp:2632] setup(): [main] GPIO32 is HIGH
[ 3392][I][main.cpp:2632] setup(): [main] GPIO33 is HIGH
[ 3402][I][main.cpp:2632] setup(): [main] GPIO34 is LOW, probably no PULL-UP
[ 3412][I][main.cpp:2632] setup(): [main] GPIO35 is LOW, probably no PULL-UP
[ 3422][I][main.cpp:2632] setup(): [main] GPIO39 is LOW, probably no PULL-UP
[ 3423][I][main.cpp:1736] readprogbuttons(): [main] gpio_00 will execute uppreset = 1
[ 3426][I][main.cpp:1736] readprogbuttons(): [main] gpio_12 will execute upvolume = 2
[ 3434][I][main.cpp:1736] readprogbuttons(): [main] gpio_13 will execute downvolume = 2
[ 3442][I][main.cpp:1736] readprogbuttons(): [main] gpio_14 will execute stop
[ 3449][I][main.cpp:1736] readprogbuttons(): [main] gpio_17 will execute resume
[ 3456][I][main.cpp:1736] readprogbuttons(): [main] gpio_34 will execute station = icecast.omroep.nl:80/radio1-bb-mp3
[ 3466][I][main.cpp:2649] setup(): [main] Start DUMMY display
[ 3471][I][main.cpp:2258] mk_lsan(): [main] Create list with acceptable WiFi networks
[ 3479][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: XXXX
[ 3485][I][main.cpp:2288] mk_lsan(): [main] Added XXXX to list of networks
[ 3493][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: XXXX
[ 3498][I][main.cpp:2288] mk_lsan(): [main] Added XXXX to list of networks
[ 4021][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 0 - WIFI_READY
[ 4111][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started
[ 4111][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 2 - STA_START
[ 4611][I][main.cpp:847] listNetworks(): [main] Scan Networks
[ 10825][V][WiFiGeneric.cpp:383] _arduino_event_cb(): SCAN Done: ID: 128, Status: 0, Results: 18
[ 10826][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[ 10831][I][main.cpp:849] listNetworks(): [main] Scan completed
[ 10836][I][main.cpp:858] listNetworks(): [main] Number of available networks: 18
[ 10843][I][main.cpp:876] listNetworks(): [main] 1 - XXXX Signal: -65 dBm, Encryption WPA2_PSK, Acceptable
[ 10854][I][main.cpp:876] listNetworks(): [main] 2 - XXXX Signal: -65 dBm, Encryption ????, Acceptable
[ 10865][I][main.cpp:876] listNetworks(): [main] 3 - XXXX Signal: -66 dBm, Encryption WPA2_PSK, Acceptable
[ 10876][I][main.cpp:876] listNetworks(): [main] 4 - XXXX Signal: -66 dBm, Encryption OPEN, Acceptable
[ 10887][I][main.cpp:876] listNetworks(): [main] 5 - XXXX Signal: -81 dBm, Encryption WPA2_PSK, Acceptable
[ 10899][I][main.cpp:876] listNetworks(): [main] 6 - XXXX Signal: -81 dBm, Encryption WPA2_PSK, Acceptable
[ 10910][I][main.cpp:876] listNetworks(): [main] 7 - XXXX Signal: -81 dBm, Encryption OPEN, Acceptable
[ 10921][I][main.cpp:876] listNetworks(): [main] 8 - XXXX Signal: -81 dBm, Encryption ????, Acceptable
[ 10932][I][main.cpp:876] listNetworks(): [main] 9 - XXXX Signal: -83 dBm, Encryption WPA2_PSK,
[ 10942][I][main.cpp:876] listNetworks(): [main] 10 - XXXX Signal: -84 dBm, Encryption WPA2_PSK,
[ 10953][I][main.cpp:876] listNetworks(): [main] 11 - XXXX Signal: -88 dBm, Encryption WPA2_PSK,
[ 10963][I][main.cpp:876] listNetworks(): [main] 12 - XXXX Signal: -89 dBm, Encryption WPA2_PSK,
[ 10973][I][main.cpp:876] listNetworks(): [main] 13 - XXXX Signal: -91 dBm, Encryption OPEN, Acceptable
[ 10984][I][main.cpp:876] listNetworks(): [main] 14 - XXXX Signal: -92 dBm, Encryption WPA2_PSK, Acceptable
[ 10996][I][main.cpp:876] listNetworks(): [main] 15 - XXXX Signal: -92 dBm, Encryption WPA2_PSK,
[ 11006][I][main.cpp:876] listNetworks(): [main] 16 - XXXX Signal: -92 dBm, Encryption WPA2_PSK,
[ 11017][I][main.cpp:876] listNetworks(): [main] 17 - XXXX Signal: -93 dBm, Encryption WPA2_PSK, Acceptable
[ 11028][I][main.cpp:876] listNetworks(): [main] 18 - XXXX Signal: -94 dBm, Encryption WPA2_PSK,
[ 11038][I][main.cpp:880] listNetworks(): [main] End of list
[ 11069][I][main.cpp:949] nextPreset(): [main] nextPreset is 0
E (11078) gpio: gpio_set_level(226): GPIO output gpio_num error
E (11079) gpio: gpio_set_level(226): GPIO output gpio_num error
[ 11095][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected
[ 11095][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected
[ 11097][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected
E (11097) gpio: gpio_set_level(226): GPIO output gpio_num error
E (11102) gpio: gpio_set_level(226): GPIO output gpio_num error
[ 11234][I][VS1053.cpp:127] testComm(): [VS1053] Slow SPI, Testing VS1053 read/write registers...
[ 11234][E][VS1053.cpp:130] testComm(): [VS1053] VS1053 not properly installed!
[ 11239][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected
[ 11245][I][main.cpp:2697] setup(): [main] Connect to network
[ 11251][V][WiFiGeneric.cpp:343] _arduino_event_cb(): STA Stopped
[ 11256][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 3 - STA_STOP
[ 12261][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 0 - WIFI_READY
[ 12265][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started
[ 12266][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 2 - STA_START
[ 19478][V][WiFiGeneric.cpp:383] _arduino_event_cb(): SCAN Done: ID: 129, Status: 0, Results: 21
[ 19479][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[ 19484][I][WiFiMulti.cpp:114] run(): [WIFI] scan done
[ 19488][I][WiFiMulti.cpp:119] run(): [WIFI] 21 networks found
[ 19494][D][WiFiMulti.cpp:149] run(): ---> 0: [1][08:45:D1:E2:0C:A0] XXXX (-66) *
[ 19501][D][WiFiMulti.cpp:151] run(): 1: [1][08:45:D1:E2:0C:A2] XXXX (-66)
[ 19509][D][WiFiMulti.cpp:151] run(): 2: [1][08:45:D1:E2:0C:A3] XXXX (-66) *
[ 19517][D][WiFiMulti.cpp:151] run(): 3: [1][08:45:D1:E2:0C:A1] XXXX (-67) *
[ 19525][D][WiFiMulti.cpp:151] run(): 4: [11][D8:EC:E5:C4:11:1D] XXXX (-79) *
[ 19533][D][WiFiMulti.cpp:151] run(): 5: [11][DA:1D:E5:C4:11:1E] XXXX (-79) *
[ 19541][D][WiFiMulti.cpp:151] run(): 6: [6][08:45:D1:E2:3A:61] XXXX (-81) *
[ 19549][D][WiFiMulti.cpp:151] run(): 7: [6][08:45:D1:E2:3A:63] XXXX (-81) *
[ 19558][D][WiFiMulti.cpp:149] run(): ---> 8: [6][08:45:D1:E2:3A:60] XXXX (-81) *
[ 19565][D][WiFiMulti.cpp:151] run(): 9: [6][08:45:D1:E2:3A:62] XXXX-Guests (-82)
[ 19573][D][WiFiMulti.cpp:151] run(): 10: [11][EC:F4:0C:15:CF:A0] XXXX (-89) *
[ 19580][D][WiFiMulti.cpp:151] run(): 11: [11][EC:F4:0C:15:CF:A1] XXXX (-90) *
[ 19588][D][WiFiMulti.cpp:151] run(): 12: [1][F8:C2:88:2E:40:72] XXXX (-91)
[ 19596][D][WiFiMulti.cpp:151] run(): 13: [1][F8:C2:88:2E:40:73] XXXX (-91) *
[ 19605][D][WiFiMulti.cpp:149] run(): ---> 14: [1][F8:C2:88:2E:40:70] XXXX (-92) *
[ 19612][D][WiFiMulti.cpp:151] run(): 15: [1][F8:C2:88:2E:40:71] XXXX (-92) *
[ 19620][D][WiFiMulti.cpp:151] run(): 16: [6][9E:30:5B:8E:BC:DA] XXXX (-92) *
[ 19630][D][WiFiMulti.cpp:151] run(): 17: [1][DA:29:E5:C4:1F:2A] XXXX (-93) *
[ 19638][D][WiFiMulti.cpp:151] run(): 18: [6][24:81:3B:B7:F2:E0] XXXX (-93) *
[ 19646][D][WiFiMulti.cpp:151] run(): 19: [6][24:81:3B:B7:D7:C0] XXXX (-94) *
[ 19653][D][WiFiMulti.cpp:151] run(): 20: [6][24:81:3B:B7:F2:E1] XXXX (-94) *
[ 19661][I][WiFiMulti.cpp:160] run(): [WIFI] Connecting BSSID: 08:45:D1:E2:0C:A0 SSID: XXXX Channel: 1 (-66)
[ 19671][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
[ 20485][V][WiFiGeneric.cpp:355] _arduino_event_cb(): STA Connected: SSID: XXXX, BSSID: 08:45:d1:e2:0c:a0, Channel: 1, Auth: WPA2_PSK
[ 20487][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[ 23082][V][WiFiGeneric.cpp:369] _arduino_event_cb(): STA Got New IP:10.100.133.44
[ 23083][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[ 23086][D][WiFiGeneric.cpp:1098] _eventCallback(): STA IP: 10.100.133.44, MASK: 255.255.254.0, GW: 10.100.133.254
[ 23096][I][WiFiMulti.cpp:174] run(): [WIFI] Connecting done.
[ 23101][D][WiFiMulti.cpp:175] run(): [WIFI] SSID: XXXX
[ 23106][D][WiFiMulti.cpp:176] run(): [WIFI] IP: 10.100.133.44
[ 23112][D][WiFiMulti.cpp:177] run(): [WIFI] MAC: 08:45:D1:E2:0C:A0
[ 23118][D][WiFiMulti.cpp:178] run(): [WIFI] Channel: 1
[ 23123][I][main.cpp:1618] connectwifi(): [main] SSID = XXXX
[ 23128][I][main.cpp:1622] connectwifi(): [main] IP = 10.100.133.44
[ 23134][I][main.cpp:2707] setup(): [main] Start web server
[ 23141][I][main.cpp:2717] setup(): [main] Network found. Starting clients
[ 23152][I][main.cpp:2751] setup(): [main] MDNS responder started
[ 24155][I][main.cpp:2796] setup(): [main] Rotary encoder is disabled (-1/-1/-1)
[ 24156][I][main.cpp:4347] gettime(): [main] Sync TOD
[ 29166][W][main.cpp:4350] gettime(): [main] Failed to obtain time!
[ 29169][I][main.cpp:949] nextPreset(): [main] nextPreset is 6
[ 29271][I][main.cpp:3383] radiofuncs(): [main] Radiofuncs cmd is 1
[ 29271][I][main.cpp:4414] playtask(): [main] QSTOPSONG
[ 29272][I][main.cpp:1383] connecttohost(): [main] Connect to host icecast.omroep.nl:80/radio1-bb-mp3
E (40977) gpio: gpio_set_level(226): GPIO output gpio_num error
E (40991) gpio: gpio_set_level(226): GPIO output gpio_num error
E (40996) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41003) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41008) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41015) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41020) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41026) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41032) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41037) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41041) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41048) gpio: gpio_set_level(226): GPIO output gpio_num error
[ 29355][I][main.cpp:2518] onConnect(): [main] Connected to host at 145.58.52.181 on port 80

E (41068) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41072) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41079) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41083) gpio: gpio_set_level(226): GPIO outpu[ 29382][I][main.cpp:1444] connecttohost(): [main] send GET command
t gpio_num error
E (41098) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41101) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41106) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41112) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41119) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41123) gpio: gpio_set_level(226): GPIO output gpio_num er[ 29423][I][main.cpp:3631] handlebyte_ch(): [main] Switch to HEADER
[ 29429][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: Server: Icecast
[ 29436][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: Connection: Close
[ 29443][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: Pragma: no-cache
[ 29450][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: Expires: Thu, 19 Nov 1981 08:52:00 GMT
[ 29459][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: Cache-Control: no-store, no-cache, private
[ 29469][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: Content-Type: audio/mpeg
[ 29476][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: icy-br: 192
[ 29483][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: ice-audio-info: samplerate=48000;channels=2;bitrate=192
[ 29493][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: icy-genre: Talk
[ 29500][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: icy-metadata: 1
[ 29507][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: icy-name: NPO Radio1
[ 29515][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: icy-pub: 0
[ 29521][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: icy-url: http://www.radio1.nl
[ 29529][I][main.cpp:3652] handlebyte_ch(): [main] Headerline: icy-metaint: 16000
[ 29536][I][main.cpp:3722] handlebyte_ch(): [main] Switch to DATA, bitrate is 192, metaint is 16000
ror
E (41251) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41261) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41264) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41268) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41275) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41279) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41295) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41296) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41298) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41302) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41309) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41313) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41320) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41325) gpio: gpio_set_level(226): GPIO output gpio_num error
E (41333) gpio: gpio_set_level(226): GPIO output gpio_num error
Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception).
Debug exception reason: Stack canary watchpoint triggered (Playtask)
Core 0 register dump:
PC : 0x4008eb28 PS : 0x00060336 A0 : 0x4008599e A1 : 0x3ffdc610
A2 : 0x00000000 A3 : 0x00060323 A4 : 0x00060320 A5 : 0xb83fc000
A6 : 0x007d2250 A7 : 0x003fffff A8 : 0x800915df A9 : 0x3ffdc6a0
A10 : 0x3ffc7910 A11 : 0x3ffc7910 A12 : 0x00000000 A13 : 0x00060323
A14 : 0x00060323 A15 : 0x00000001 SAR : 0x00000004 EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000 LBEG : 0x4008bb95 LEND : 0x4008bba5 LCOUNT : 0xfffffff9

Backtrace: 0x4008eb25:0x3ffdc610 0x4008599b:0x3ffdc6e0 0x4008f661:0x3ffdc700 0x4008f7ab:0x3ffdc740 0x40085cf7:0x3ffdc760 0x40085dcd:0x3ffdc790 0x400fffa9:0x3ffdc7b0 0x400ff22f:0x3ffdc7d0 0x400fe7e5:0x3ffdc7f0 0x4008abf1:0x3ffdc810 0x40089a5a:0x3ffdc830 0x40089ae4:0x3ffdc850 0x40089fd1:0x3ffdc880 0x401969d3:0x3ffdc8b0 0x4018e5db:0x3ffdc8d0 0x4018e759:0x3ffdcbe0 0x401a7c85:0x3ffdcc10 0x4012b5d2:0x3ffdcc40 0x4012b66f:0x3ffdcc70 0x400f20e1:0x3ffdccf0 0x400efa0d:0x3ffdcd30 0x400ed48d:0x3ffdcd50 0x400ed550:0x3ffdcd70 0x400ed97c:0x3ffdcd90 0x400d35e5:0x3ffdcdd0

#0 0x4008eb25:0x3ffdc610 in _frxt_setup_switch at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:79
#1 0x4008599b:0x3ffdc6e0 in _xt_lowint1 at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/xtensa_vectors.S:1099
#2 0x4008f661:0x3ffdc700 in xQueueGenericSend at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/queue.c:946
#3 0x4008f7ab:0x3ffdc740 in xQueueGiveMutexRecursive at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/queue.c:685
#4 0x40085cf7:0x3ffdc760 in lock_release_generic at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/locks.c:199
#5 0x40085dcd:0x3ffdc790 in _lock_release_recursive at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/locks.c:211
#6 0x400fffa9:0x3ffdc7b0 in uart_write at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/vfs/vfs_uart.c:211
(inlined by) uart_write at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/vfs/vfs_uart.c:192
#7 0x400ff22f:0x3ffdc7d0 in console_write at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/vfs/vfs_console.c:73
#8 0x400fe7e5:0x3ffdc7f0 in esp_vfs_write at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/vfs/vfs.c:431 (discriminator 4)
#9 0x4008abf1:0x3ffdc810 in __swrite at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/stdio.c:94
#10 0x40089a5a:0x3ffdc830 in __sflush_r at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fflush.c:224
#11 0x40089ae4:0x3ffdc850 in _fflush_r at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fflush.c:278
#12 0x40089fd1:0x3ffdc880 in __sfvwrite_r at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fvwrite.c:251
#13 0x401969d3:0x3ffdc8b0 in __sprint_r at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:433
(inlined by) __sprint_r at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:403
#14 0x4018e5db:0x3ffdc8d0 in _vfprintf_r at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1781 (discriminator 1)
#15 0x4018e759:0x3ffdcbe0 in vprintf at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vprintf.c:34 (discriminator 5)
#16 0x401a7c85:0x3ffdcc10 in esp_log_writev at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/log/log.c:200
#17 0x4012b5d2:0x3ffdcc40 in __wrap_esp_log_writev at /Users/ficeto/Desktop/ESP32/ESP32S2/esp32-arduino-lib-builder/components/esp-insights/components/esp_diagnostics/src/esp_diagnostics_log_hook.c:452
#18 0x4012b66f:0x3ffdcc70 in __wrap_esp_log_write at /Users/ficeto/Desktop/ESP32/ESP32S2/esp32-arduino-lib-builder/components/esp-insights/components/esp_diagnostics/src/esp_diagnostics_log_hook.c:469
#19 0x400f20e1:0x3ffdccf0 in gpio_set_level at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/driver/gpio.c:226 (discriminator 5)
#20 0x400efa0d:0x3ffdcd30 in __digitalWrite at /home/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-gpio.c:145
#21 0x400ed48d:0x3ffdcd50 in VS1053::data_mode_off() const at lib/codecs/src/VS1053.cpp:39
#22 0x400ed550:0x3ffdcd70 in VS1053::sdi_send_fillers(unsigned char) at lib/codecs/src/VS1053.cpp:99
#23 0x400ed97c:0x3ffdcd90 in VS1053::stopSong() at lib/codecs/src/VS1053.cpp:275
#24 0x400d35e5:0x3ffdcdd0 in playtask(void*) at src/main.cpp:4418

ELF file SHA256: 616e7671ae3a569f

E (12184) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee

@igor756
Copy link
Author

igor756 commented Aug 2, 2023

And it keeps resetting again and again

@Edzelf
Copy link
Owner

Edzelf commented Aug 2, 2023

I miss the following settings in the debug logging:

D: pin_vs_cs set to 5
D: pin_vs_dcs set to 16
D: pin_vs_dreq set to 4

Your pins are probably different, but you should see them in the output.

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