Closed anabolyc closed 6 months ago
{
"a2dp_sink_name": "squeezelite-c4020",
"a2dp_spin": "0000",
"actrls_config": "",
"airplay_name": "ESP32-AirPlay-c4020",
"ap_channel": "1",
"ap_ip_address": "192.168.4.1",
"ap_ip_gateway": "192.168.4.1",
"ap_ip_netmask": "255.255.255.0",
"ap_pwd": "squeezelite",
"ap_ssid": "squeezelite-c4020",
"autoexec": "1",
"autoexec1": "squeezelite -o I2S -b 500:2000 -d all=info -C 30 -W -n squeezelite-c4020",
"bat_config": "",
"bypass_wm": "0",
"cspot_config": "{\"deviceName\":\"squeezelite-c4020\",\"bitrate\":160,\"zeroConf\":1}",
"dac_config": "model=I2S,bck=14,ws=15,do=16,sda=8,scl=9,i2c=45",
"dac_controlset": "{\"init\":[{\"reg\":3,\"val\":2},{\"reg\":3,\"val\":3}],\"poweron\":[{\"reg\":3,\"val\":3}],\"poweroff\":[{\"reg\":3,\"val\":0}]}",
"dhcp_tmout": "8",
"display_config": "",
"enable_airplay": "1",
"enable_bt_sink": "0",
"enable_cspot": "1",
"equalizer": "",
"eth_config": "model=w5500,cs=10,speed=20000000,intr=6,rst=5",
"ethtmout": "8",
"gpio_exp_config": "",
"host_name": "squeezelite-c4020",
"i2c_config": "scl=9,sda=8,speed=400000,port=1",
"jack_mutes_amp": "n",
"led_brightness": "",
"led_vu_config": "",
"lms_ctrls_raw": "n",
"loudness": "0",
"metadata_config": "",
"model_config": "",
"ota_erase_blk": "249856",
"ota_prio": "6",
"ota_stack": "10240",
"pollmin": "15",
"pollmx": "600",
"rel_api": "https://api.github.com/repos/sle118/squeezelite-esp32/releases",
"release_url": "CONFIG_SQUEEZELITE_ESP32_RELEASE_URL",
"rotary_config": "",
"set_GPIO": "17=vcc",
"sleep_config": "",
"spdif_config": "",
"spi_config": "",
"stats": "n",
"target": "",
"telnet_block": "500",
"telnet_buffer": "40000",
"telnet_enable": ""
}
In all instances, this seems to be related to memory allocation and caused by some sdkconfig settings. Did you start from the experimental branch?
sdkconfig fine tuning is an art when pushing the limits of a system like we do. @philippe44 has mastered this more than me, so he would be better placed to answer, although he has currently limited availability.
Make sure you stay from his sdkconfig file, or compare with yours. https://github.com/sle118/squeezelite-esp32/blob/4.4-s3/sdkconfig There are several settings that lead to consuming internal memory, which is limited on this platform.
Also make sure you're doing the clock at max speed CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ=240
Thanks @sle118 I didn't realize that there is a branch for S3. I'll re-test and drop here a line
It is actually fixed both cspot and airplay. It is not particularly stable (compared to the ESP32 version), but generally works. I hope S3 support will not be dropped in the future.
Very likely that we will support it at some point
Hi @anabolyc ! I am trying to run/compile this but it is far too complicated for me. Would you sharing your bin- file with me? I am trying to flash it on a Seeed Studio esp32-s3 with 8M flash and 8M PSRAM. Would be great! Thanks /Gulliver
@gulliver103 give me some time, I'll publish web-flasher. I'm about to release the Louder-ESP32-S3 board, so I'm going to need this build anyway. I'll try to finish it tomorrow
Hey @gulliver103 please have a go at https://sonocotta.github.io/esp32-audio-dock/ web-installer. If you need binaries only, they are under https://github.com/sonocotta/esp32-audio-dock/tree/main/docs/artifacts
Hey @gulliver103 please have a go at https://sonocotta.github.io/esp32-audio-dock/ web-installer. If you need binaries only, they are under https://github.com/sonocotta/esp32-audio-dock/tree/main/docs/artifacts
Thank you :) I´ll try it out on my "Seeed Studio XIAO ESP32S3" and get back to you (Y)
Hi again @anabolyc and sorry for taking your time. After installing from the https://sonocotta.github.io/esp32-audio-dock/ the AP get disconnected with the following error at the end of the log. Please have a look when you have time. Thank you /Gulliver
I (35774) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (35774) wifi:station: 9a:9c:22:19:90:ca join, AID=1, bgn, 20 I (35774) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (35784) wifi:station: 9a:9c:22:19:90:ca join, AID=1, bgn, 20 I (37194) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 W (38424) httpd_uri: httpd_uri: URI '/chat' not found W (38434) httpd_handlers: redirect_processor(1002): 192.168.4.2 requested invalid URL: [/chat] W (38454) httpd_handlers: process_redirect(957): Redirecting host [192.168.4.2] to http://192.168.4.1/ (from uri /chat) CORRUPT HEAP: Bad tail at 0x3d81dd6b. Expected 0xbaad5678 got 0xbaad5600
assert failed: multi_heap_free multi_heap_poisoning.c:259 (head != NULL)
Backtrace: 0x40376296:0x3d80bc70 0x4037fac1:0x3d80bc90 0x40384d01:0x3d80bcb0 0x40384806:0x3d80bdd0 0x4037686d:0x3d80bdf0 0x40384d31:0x3d80be10 0x4201f24d:0x3d80be30 0x4201f49f:0x3d80be80 0x4201f604:0x3d80bef0 0x4205a89d:0x3d80bf10 0x4205ac15:0x3d80bf30 0x42059db8:0x3d80bf70 0x4205a31a:0x3d80c020 0x420590a4:0x3d80c040 0x420bdc82:0x3d80c060 0x420591af:0x3d80c080
ELF file SHA256: 48c219f9a6c31c40
CPU halted. ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x42006524 SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x1820 load:0x403c9700,len:0xe80 load:0x403cc700,len:0x3110 entry 0x403c9980 I (24) boot: ESP-IDF v4.4.7 2nd stage bootloader I (24) boot: compile time 13:57:36 I (25) boot: Multicore bootloader I (26) boot: chip revision: v0.2 I (30) qio_mode: Enabling default flash chip QIO I (36) boot.esp32s3: Boot SPI Speed : 80MHz I (40) boot.esp32s3: SPI Mode : QIO I (45) boot.esp32s3: SPI Flash Size : 8MB I (50) boot: Enabling RNG early entropy source... I (55) boot: Partition Table: I (59) boot: ## Label Usage Type ST Offset Length I (66) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (74) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (81) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (89) boot: 3 recovery factory app 00 00 00010000 00140000 I (96) boot: 4 ota_0 OTA app 00 10 00150000 002a0000 I (103) boot: 5 settings WiFi data 01 02 003f0000 00010000 I (111) boot: End of partition table I (115) boot: Defaulting to factory image I (120) esp_image: segment 0: paddr=00010020 vaddr=3c0d0020 size=59548h (365896) map I (184) esp_image: segment 1: paddr=00069570 vaddr=3fc96ce0 size=04870h ( 18544) load I (188) esp_image: segment 2: paddr=0006dde8 vaddr=40374000 size=02230h ( 8752) load I (191) esp_image: segment 3: paddr=00070020 vaddr=42000020 size=c64d0h (812240) map I (321) esp_image: segment 4: paddr=001364f8 vaddr=40376230 size=10ab0h ( 68272) load I (335) esp_image: segment 5: paddr=00146fb0 vaddr=600fe000 size=0002ch ( 44) load I (343) boot: Loaded app from partition at offset 0x10000 I (343) boot: Disabling RNG early entropy source... I (355) cpu_start: Multicore app I (355) opi psram: vendor id : 0x0d (AP) I (355) opi psram: dev id : 0x02 (generation 3) I (358) opi psram: density : 0x03 (64 Mbit) I (363) opi psram: good-die : 0x01 (Pass) I (367) opi psram: Latency : 0x01 (Fixed) I (372) opi psram: VCC : 0x01 (3V) I (377) opi psram: SRF : 0x01 (Fast Refresh) I (382) opi psram: BurstType : 0x01 (Hybrid Wrap) I (388) opi psram: BurstLen : 0x01 (32 Byte) I (393) opi psram: Readlatency : 0x02 (10 cycles@Fixed) I (399) opi psram: DriveStrength: 0x00 (1/1) I (404) MSPI Timing: PSRAM timing tuning index: 5 I (409) spiram: Found 64MBit SPI RAM device I (414) spiram: SPI RAM mode: sram 80m I (418) spiram: PSRAM initialized, cache is in normal (1-core) mode. I (425) cpu_start: Pro cpu up. I (429) cpu_start: Starting app cpu, entry point is 0x40375820 I (0) cpu_start: App cpu up. I (862) spiram: SPI SRAM memory test OK I (871) cpu_start: Pro cpu start user code I (871) cpu_start: cpu freq: 240000000 I (871) cpu_start: Application information: I (873) cpu_start: Project name: Squeezelite-ESP32 I (879) cpu_start: App version: local.500.cmake-master I (885) cpu_start: Compile time: May 15 2024 13:58:06 I (892) cpu_start: ELF file SHA256: 48c219f9a6c31c40... I (898) cpu_start: ESP-IDF: v4.4.7 I (902) cpu_start: Min chip rev: v0.0 I (907) cpu_start: Max chip rev: v0.99 I (912) cpu_start: Chip rev: v0.2 I (917) heap_init: Initializing. RAM available for dynamic allocation: I (924) heap_init: At 3FCA6BE8 len 00042B28 (266 KiB): D/IRAM I (930) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DIRAM I (937) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM I (943) heap_init: At 600FE02C len 00001FD4 (7 KiB): RTCRAM I (949) spiram: Adding pool of 8192K of external SPI memory to heap allocator I (1197) spi_flash: detected chip: gd I (1197) spi_flash: flash io: qio I (1198) sleep: Configure to isolate all GPIO pins in sleep state I (1201) sleep: Enable automatic switching of GPIO sleep configuration I (1208) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (1219) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations I (1229) esp_app_main: Reset reason is: 0 I (1239) esp_app_main: Recovery Reboot counter=1
I (1239) esp_app_main: Starting app_main I (1249) nvs_utilities: Initializing flash nvs I (1259) nvs_utilities: Initializing nvs partition settings I (1289) esp_app_main: Setting up telnet. I (1289) telnet: Telnet support disabled I (1289) esp_app_main: Setting up config subsystem. W (1339) nvs_utilities: Configuration memory usage. Heap internal:282795 (min:282387) (used:20032) external:8384131 (min:8376399) (used:0) I (1339) esp_app_main: Registering default values I (1349) system_api: Base MAC address is not set I (1349) system_api: read default base MAC address from EFUSE W (1359) config: Waiting for config commit ... I (2339) config: configuration has some uncommitted entries I (2339) config: Committing configuration to nvs. Locking config object. I (2339) config: Done Committing configuration to nvs. I (2339) config: Config committed! I (2349) esp_app_main: Configuring services I (2349) services: set GPIO 17 to vcc I (2359) services: Configuring I2C sda:8 scl:9 port:1 speed:400000 I (2359) services: Configuring SPI mosi:-1 miso:-1 clk:-1 host:1 dc:-1 W (2369) services: no SPI configured W (2379) led: LED GPIO -1 ignored W (2379) led: LED GPIO -1 ignored I (2379) led: Configuring LEDs green:-1 (on:0 rmt:-1 -1% ), red:-1 (on:0 rmt:-1 -1% ) I (2389) battery: No battery I (2399) monitor: Initializing monitoring I (2399) monitor: Heap internal:281847 (min:281827) external:8367671 (min:8367643) dma:274091 (min:274071) I (2409) esp_app_main: Initializing display I (2419) display: Trying to configure display with N/A W (2419) display: No display driver I (2419) esp_app_main: Initializing led_vu I (2429) led_vu: led_vu configuration invalid I (2429) esp_app_main: Checking for update url W (2439) config: Value not found for key fwurl I (2449) esp_app_main: Starting Network Manager W (2449) config: Value not found for key apdelay I (2449) uart: queue free spaces: 3 I (2449) network_handlers: Network manager configuration: polling max 10176, polling min 15000, ap delay 20000, dhcp timeout 8000, eth timeout 8000 I (2469) http_server: Initializing HTTP Server I (2469) network_ethernet: Detected driver w5500 I (2469) network_handlers: Running recovery. Skipping ethernet, starting WiFi I (2479) pp: pp rom version: e7ae62f I (2489) net80211: net80211 rom version: e7ae62f I (2499) wifi:wifi driver task: 3fcac950, prio:23, stack:6656, core=0 I (2509) wifi:wifi firmware version: 1fd20f4 I (2509) wifi:wifi certification version: v7.0 I (2509) wifi:config NVS flash: enabled I (2509) wifi:config nano formating: disabled I (2519) wifi:Init data frame dynamic rx buffer num: 40 I (2519) wifi:Init static rx mgmt buffer num: 5 I (2519) wifi:Init management short buffer num: 32 I (2529) wifi:Init static tx buffer num: 12 I (2539) wifi:Init tx cache buffer num: 32 I (2539) wifi:Init static tx FG buffer num: 2 I (2549) wifi:Init static rx buffer size: 1600 I (2549) wifi:Init static rx buffer num: 12 I (2549) wifi:Init dynamic rx buffer num: 40 I (2559) wifi_init: tcpip mbox: 32 I (2559) wifi_init: udp mbox: 32 I (2559) wifi_init: tcp mbox: 32 I (2559) wifi_init: tcp tx win: 8192 I (2569) wifi_init: tcp rx win: 32768 I (2569) wifi_init: tcp mss: 1440 I (2579) wifi_init: WiFi/LWIP prefer SPIRAM I (2589) network_wifi: Starting wifi I (2589) phy_init: phy_version 640,cd64a1a,Jan 24 2024,17:28:12 I (2629) wifi:mode : sta (dc:da:0c:18:44:24) I (2629) wifi:enable tsf
I (2629) network_handlers: Existing wifi config found. Attempting to connect. I (2639) network: Starting DHCP client I (2649) network_wifi: Wifi Connecting to wifi-12-private...
RECOVERY APPLICATION This mode is used to flash Squeezelite into the OTA partition
Type 'help' to get the list of commands. Use UP/DOWN arrows to navigate through command history. Press TAB when typing command name to auto-complete.
Your terminal application does not support escape sequences. Line editing and history features are disabled. On Windows, try using Putty instead.
recovery-squeezelite-esp32>W (5049) network_wifi: WIFI_EVENT_STA_DISCONNECTED. From BSSID: 00:00:00:00:00:00, reason code: 201 (WIFI_REASON_NO_AP_FOUND) W (5059) wifi:Haven't to connect to a suitable AP now! I (5069) network_wifi: Configuring Access Point. I (5069) network: Stopping DHCP server I (5079) network: Starting DHCP server I (5079) network_wifi: AP SSID: louder-esp-s3 I (5079) network_wifi: AP Password: squeezelite I (5089) wifi:mode : sta (dc:da:0c:18:44:24) + softAP (dc:da:0c:18:44:25) I (5089) wifi:Total power save buffer number: 6 I (5099) wifi:Init max length of beacon: 752/752 I (5109) wifi:Init max length of beacon: 752/752 I (5469) wifi:Total power save buffer number: 6 I (5469) wifi:Total power save buffer number: 6 I (5469) wifi:Set ps type: 1
I (5479) network_wifi: Initiating wifi network scan I (5479) dns_server: DNS Server listening on 53/udp E (17649) network: network manager Unhandled Event NETWORK_WIFI_CONFIGURING_ACTIVE_STATE(WIFI_CONFIGURING_STATE) [EN_TIMER] I (39409) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (39419) wifi:station: 9a:9c:22:19:90:ca join, AID=1, bgn, 20 I (39849) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 W (41129) httpd_uri: httpd_uri: URI '/chat' not found W (41139) httpd_handlers: redirect_processor(1002): 192.168.4.2 requested invalid URL: [/chat] W (41159) httpd_handlers: process_redirect(957): Redirecting host [192.168.4.2] to http://192.168.4.1/ (from uri /chat) CORRUPT HEAP: Bad tail at 0x3d81e057. Expected 0xbaad5678 got 0xbaad5600
Hey @gulliver103
Binary has my wifi credentials (shame on me), it tries to connect and fails. So AP is started, looks like you were able to connect to it. Next if fails on /chat request. I don't think it is a part of the squeezelite application. Can you try accessing HTTP://192.168.4.1 with the browser cache disabled?
Hey @gulliver103 please have a go at https://sonocotta.github.io/esp32-audio-dock/ web-installer. If you need binaries only, they are under https://github.com/sonocotta/esp32-audio-dock/tree/main/docs/artifacts
Hi @anabolyc! How would i use your installer with generic ESP32-S3 with DAC? :) I guess i need DAC to be connected to specific GPIO?
Hey @gulliver103 please have a go at https://sonocotta.github.io/esp32-audio-dock/ web-installer. If you need binaries only, they are under https://github.com/sonocotta/esp32-audio-dock/tree/main/docs/artifacts
Hi @anabolyc! How would i use your installer with generic ESP32-S3 with DAC? :) I guess i need DAC to be connected to specific GPIO?
It should work with any ESP32-S3. All the board-specific details, like DAC config, pinouts etc are stored on the NVS, which you can change later on via web UI.
It should work with any ESP32-S3. All the board-specific details, like DAC config, pinouts etc are stored on the NVS, which you can change later on via web UI.
I use S3-Devkit-C with 16 MB flash and 8 MB PSRAM. DAC: I2S MCU-1334. Flashed, connected to the WiFi, configured pins. Tried to play through line-in - didn't work. Wanted to check other settings, but at some point it started to freeze completely within 10 sec after reboot. I'm pretty sure, that it happened after i put onboard LED parameters (there's one WS2812 LED on board, connected to GPIO48). Wanted to check, if it reacts somehow on input.
It should work with any ESP32-S3. All the board-specific details, like DAC config, pinouts etc are stored on the NVS, which you can change later on via web UI.
@anabolyc So long story short, i tried to make ESPHome media player on that device, to check if it's working, and found that the board is behaving strange (right channel gives noise instead of output). I switched to other board (with 8 MB of flash and 2 MB of PSRAM), and ESPHome works well. However, after installing your S3 louder build, i see in logs:
E (355) opi psram: PSRAM ID read error: 0x00000000, PSRAM chip not found or not supported, or wrong PSRAM line mode
E (359) cpu_start: Failed to init external RAM!
As far as i know, N8R2 has quad
mode instead of octal
in N16R8. Is it the case? Or 2 MB of PSRAM is not enough?
Or both?
Thanks in advance! :)
I'm pretty sure, that it happened after i put onboard LED parameters (there's one WS2812 LED on board, connected to GPIO48).
there is a known divide-by-zero issue with Ledvu and a string length of 1...
Hey @gulliver103 please have a go at https://sonocotta.github.io/esp32-audio-dock/ web-installer. If you need binaries only, they are under https://github.com/sonocotta/esp32-audio-dock/tree/main/docs/artifacts
Hi @anabolyc! How would i use your installer with generic ESP32-S3 with DAC? :) I guess i need DAC to be connected to specific GPIO?
It should work with any ESP32-S3. All the board-specific details, like DAC config, pinouts etc are stored on the NVS, which you can change later on via web UI.
Hi @anabolyc I'm also trying to achieve what @gulliver103 tried (run on XIAO ESP32-S3) and have the same problem with your build (installed through webinstaller for the louder esp32-s3). Either when I connect to wifi or when I navigate to 192.168.4.1 the device crashes and the AP disappears. I can also add the logs later today. Do you have any idea what could be going on? Thank you for the Esparagus Hifi Media Link btw, i'm a happy customer :-)
@gulliver103 Did you make any progress on this?
I also made my own built from the 4.4-s3 branch with the default sdkconfig from the branch and no changes in menuconfig. I can flash it but the last message I see is that the http server is created. Then it seems to hang. Wifi AP is not created. See here: https://github.com/sle118/squeezelite-esp32/issues/420#issuecomment-2238802089
Here is the log with 3 connection attempts. It seems like it crashes as soon as the client connects to the AP.
ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x420bc98a SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x1820 load:0x403c9700,len:0xe80 load:0x403cc700,len:0x3110 entry 0x403c9980 I (24) boot: ESP-IDF v4.4.7 2nd stage bootloader I (24) boot: compile time 13:57:36 I (25) boot: Multicore bootloader I (26) boot: chip revision: v0.2 I (30) qio_mode: Enabling default flash chip QIO I (36) boot.esp32s3: Boot SPI Speed : 80MHz I (40) boot.esp32s3: SPI Mode : QIO I (45) boot.esp32s3: SPI Flash Size : 8MB I (50) boot: Enabling RNG early entropy source... I (55) boot: Partition Table: I (59) boot: ## Label Usage Type ST Offset Length I (66) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (74) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (81) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (89) boot: 3 recovery factory app 00 00 00010000 00140000 I (96) boot: 4 ota_0 OTA app 00 10 00150000 002a0000 I (103) boot: 5 settings WiFi data 01 02 003f0000 00010000 I (111) boot: End of partition table I (115) boot: Defaulting to factory image I (120) esp_image: segment 0: paddr=00010020 vaddr=3c0d0020 size=59548h (365896) map I (184) esp_image: segment 1: paddr=00069570 vaddr=3fc96ce0 size=04870h ( 18544) load I (188) esp_image: segment 2: paddr=0006dde8 vaddr=40374000 size=02230h ( 8752) load I (191) esp_image: segment 3: paddr=00070020 vaddr=42000020 size=c64d0h (812240) map I (321) esp_image: segment 4: paddr=001364f8 vaddr=40376230 size=10ab0h ( 68272) load I (335) esp_image: segment 5: paddr=00146fb0 vaddr=600fe000 size=0002ch ( 44) load I (343) boot: Loaded app from partition at offset 0x10000 I (343) boot: Disabling RNG early entropy source... I (355) cpu_start: Multicore app I (355) opi psram: vendor id : 0x0d (AP) I (355) opi psram: dev id : 0x02 (generation 3) I (358) opi psram: density : 0x03 (64 Mbit) I (363) opi psram: good-die : 0x01 (Pass) I (367) opi psram: Latency : 0x01 (Fixed) I (372) opi psram: VCC : 0x01 (3V) I (377) opi psram: SRF : 0x01 (Fast Refresh) I (382) opi psram: BurstType : 0x01 (Hybrid Wrap) I (388) opi psram: BurstLen : 0x01 (32 Byte) I (393) opi psram: Readlatency : 0x02 (10 cycles@Fixed) I (399) opi psram: DriveStrength: 0x00 (1/1) I (404) MSPI Timing: PSRAM timing tuning index: 5 I (409) spiram: Found 64MBit SPI RAM device I (414) spiram: SPI RAM mode: sram 80m I (418) spiram: PSRAM initialized, cache is in normal (1-core) mode. I (425) cpu_start: Pro cpu up. I (429) cpu_start: Starting app cpu, entry point is 0x40375820 I (0) cpu_start: App cpu up. I (862) spiram: SPI SRAM memory test OK I (870) cpu_start: Pro cpu start user code I (871) cpu_start: cpu freq: 240000000 I (871) cpu_start: Application information: I (873) cpu_start: Project name: Squeezelite-ESP32 I (879) cpu_start: App version: local.500.cmake-master I (885) cpu_start: Compile time: May 15 2024 13:58:06 I (891) cpu_start: ELF file SHA256: 48c219f9a6c31c40... I (897) cpu_start: ESP-IDF: v4.4.7 I (902) cpu_start: Min chip rev: v0.0 I (907) cpu_start: Max chip rev: v0.99 I (912) cpu_start: Chip rev: v0.2 I (917) heap_init: Initializing. RAM available for dynamic allocation: I (924) heap_init: At 3FCA6BE8 len 00042B28 (266 KiB): D/IRAM I (930) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DIRAM I (937) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM I (943) heap_init: At 600FE02C len 00001FD4 (7 KiB): RTCRAM I (949) spiram: Adding pool of 8192K of external SPI memory to heap allocator I (1196) spi_flash: detected chip: gd I (1197) spi_flash: flash io: qio I (1198) sleep: Configure to isolate all GPIO pins in sleep state I (1201) sleep: Enable automatic switching of GPIO sleep configuration I (1208) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (1219) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations I (1229) esp_app_main: Reset reason is: 0 I (1239) esp_app_main: Recovery Reboot counter=1
I (1239) esp_app_main: Starting app_main I (1249) nvs_utilities: Initializing flash nvs I (1259) nvs_utilities: Initializing nvs partition settings I (1289) esp_app_main: Setting up telnet. I (1289) telnet: Telnet support disabled I (1289) esp_app_main: Setting up config subsystem. W (1339) nvs_utilities: Configuration memory usage. Heap internal:282795 (min:282387) (used:20032) external:8384131 (min:8376399) (used:0) I (1339) esp_app_main: Registering default values I (1349) system_api: Base MAC address is not set I (1349) system_api: read default base MAC address from EFUSE W (1359) config: Waiting for config commit ... I (2339) config: configuration has some uncommitted entries I (2339) config: Committing configuration to nvs. Locking config object. I (2339) config: Done Committing configuration to nvs. I (2339) config: Config committed! I (2349) esp_app_main: Configuring services I (2349) services: set GPIO 17 to vcc I (2359) services: Configuring I2C sda:8 scl:9 port:1 speed:400000 I (2359) services: Configuring SPI mosi:-1 miso:-1 clk:-1 host:1 dc:-1 W (2369) services: no SPI configured W (2379) led: LED GPIO -1 ignored W (2379) led: LED GPIO -1 ignored I (2379) led: Configuring LEDs green:-1 (on:0 rmt:-1 -1% ), red:-1 (on:0 rmt:-1 -1% ) I (2389) battery: No battery I (2399) monitor: Initializing monitoring I (2399) monitor: Heap internal:281847 (min:281827) external:8367671 (min:8367643) dma:274091 (min:274071) I (2409) esp_app_main: Initializing display I (2419) display: Trying to configure display with N/A W (2419) display: No display driver I (2419) esp_app_main: Initializing led_vu I (2429) led_vu: led_vu configuration invalid I (2429) esp_app_main: Checking for update url W (2439) config: Value not found for key fwurl I (2449) esp_app_main: Starting Network Manager W (2449) config: Value not found for key apdelay I (2449) uart: queue free spaces: 3 I (2449) network_handlers: Network manager configuration: polling max 10176, polling min 15000, ap delay 20000, dhcp timeout 8000, eth timeout 8000 I (2469) http_server: Initializing HTTP Server I (2469) network_ethernet: Detected driver w5500 I (2469) network_handlers: Running recovery. Skipping ethernet, starting WiFi I (2479) pp: pp rom version: e7ae62f I (2489) net80211: net80211 rom version: e7ae62f I (2499) wifi:wifi driver task: 3fcac950, prio:23, stack:6656, core=0 I (2509) wifi:wifi firmware version: 1fd20f4 I (2509) wifi:wifi certification version: v7.0 I (2509) wifi:config NVS flash: enabled I (2509) wifi:config nano formating: disabled I (2519) wifi:Init data frame dynamic rx buffer num: 40 I (2519) wifi:Init static rx mgmt buffer num: 5 I (2519) wifi:Init management short buffer num: 32 I (2529) wifi:Init static tx buffer num: 12 I (2539) wifi:Init tx cache buffer num: 32 I (2539) wifi:Init static tx FG buffer num: 2 I (2549) wifi:Init static rx buffer size: 1600 I (2549) wifi:Init static rx buffer num: 12 I (2549) wifi:Init dynamic rx buffer num: 40 I (2559) wifi_init: tcpip mbox: 32 I (2559) wifi_init: udp mbox: 32 I (2559) wifi_init: tcp mbox: 32 I (2559) wifi_init: tcp tx win: 8192 I (2569) wifi_init: tcp rx win: 32768 I (2569) wifi_init: tcp mss: 1440 I (2579) wifi_init: WiFi/LWIP prefer SPIRAM I (2589) network_wifi: Starting wifi I (2589) phy_init: phy_version 640,cd64a1a,Jan 24 2024,17:28:12 I (2629) wifi:mode : sta (64:e8:33:50:52:18) I (2629) wifi:enable tsf
I (2629) network_handlers: Existing wifi config found. Attempting to connect. I (2639) network: Starting DHCP client I (2649) network_wifi: Wifi Connecting to wifi-12-private...
RECOVERY APPLICATION This mode is used to flash Squeezelite into the OTA partition
Type 'help' to get the list of commands. Use UP/DOWN arrows to navigate through command history. Press TAB when typing command name to auto-complete.
Your terminal application does not support escape sequences. Line editing and history features are disabled. On Windows, try using Putty instead.
recovery-squeezelite-esp32>W (5059) network_wifi: WIFI_EVENT_STA_DISCONNECTED. From BSSID: 00:00:00:00:00:00, reason code: 201 (WIFI_REASON_NO_AP_FOUND) W (5059) wifi:Haven't to connect to a suitable AP now! I (5069) network_wifi: Configuring Access Point. I (5069) network: Stopping DHCP server I (5079) network: Starting DHCP server I (5079) network_wifi: AP SSID: louder-esp-s3 I (5079) network_wifi: AP Password: squeezelite I (5089) wifi:mode : sta (64:e8:33:50:52:18) + softAP (64:e8:33:50:52:19) I (5089) wifi:Total power save buffer number: 6 I (5109) wifi:Init max length of beacon: 752/752 I (5109) wifi:Init max length of beacon: 752/752 I (5469) wifi:Total power save buffer number: 6 I (5469) wifi:Total power save buffer number: 6 I (5469) wifi:Set ps type: 1
I (5479) network_wifi: Initiating wifi network scan I (5479) dns_server: DNS Server listening on 53/udp E (17649) network: network manager Unhandled Event NETWORK_WIFI_CONFIGURING_ACTIVE_STATE(WIFI_CONFIGURING_STATE) [EN_TIMER] I (24759) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (24759) wifi:station: 80:30:49:41:2c:af join, AID=1, bgn, 20 I (24849) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (26859) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (29509) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (29609) httpd_handlers: serving / to peer 192.168.4.2 port 52922 W (30559) httpd_uri: httpd_uri: URI '/canonical.html' not found W (30569) httpd_handlers: redirect_processor(1002): 192.168.4.2 requested invalid URL: [/canonical.html] W (30599) httpd_handlers: process_redirect(957): Redirecting host [192.168.4.2] to http://192.168.4.1/ (from uri /canonical.html) CORRUPT HEAP: Bad tail at 0x3d81d61b. Expected 0xbaad5678 got 0xbaad5600
assert failed: multi_heap_free multi_heap_poisoning.c:259 (head != NULL)
Backtrace: 0x40376296:0x3d80bc70 0x4037fac1:0x3d80bc90 0x40384d01:0x3d80bcb0 0x40384806:0x3d80bdd0 0x4037686d:0x3d80bdf0 0x40384d31:0x3d80be10 0x4201f24d:0x3d80be30 0x4201f49f:0x3d80be80 0x4201f604:0x3d80bef0 0x4205a89d:0x3d80bf10 0x4205ac15:0x3d80bf30 0x42059db8:0x3d80bf70 0x4205a31a:0x3d80c020 0x420590a4:0x3d80c040 0x420bdc82:0x3d80c060 0x420591af:0x3d80c080
ELF file SHA256: 48c219f9a6c31c40
CPU halted. ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x42006524 SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x1820 load:0x403c9700,len:0xe80 load:0x403cc700,len:0x3110 entry 0x403c9980 I (24) boot: ESP-IDF v4.4.7 2nd stage bootloader I (24) boot: compile time 13:57:36 I (25) boot: Multicore bootloader I (26) boot: chip revision: v0.2 I (30) qio_mode: Enabling default flash chip QIO I (36) boot.esp32s3: Boot SPI Speed : 80MHz I (40) boot.esp32s3: SPI Mode : QIO I (45) boot.esp32s3: SPI Flash Size : 8MB I (50) boot: Enabling RNG early entropy source... I (55) boot: Partition Table: I (59) boot: ## Label Usage Type ST Offset Length I (66) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (74) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (81) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (89) boot: 3 recovery factory app 00 00 00010000 00140000 I (96) boot: 4 ota_0 OTA app 00 10 00150000 002a0000 I (103) boot: 5 settings WiFi data 01 02 003f0000 00010000 I (111) boot: End of partition table I (115) boot: Defaulting to factory image I (120) esp_image: segment 0: paddr=00010020 vaddr=3c0d0020 size=59548h (365896) map I (184) esp_image: segment 1: paddr=00069570 vaddr=3fc96ce0 size=04870h ( 18544) load I (188) esp_image: segment 2: paddr=0006dde8 vaddr=40374000 size=02230h ( 8752) load I (191) esp_image: segment 3: paddr=00070020 vaddr=42000020 size=c64d0h (812240) map I (321) esp_image: segment 4: paddr=001364f8 vaddr=40376230 size=10ab0h ( 68272) load I (335) esp_image: segment 5: paddr=00146fb0 vaddr=600fe000 size=0002ch ( 44) load I (343) boot: Loaded app from partition at offset 0x10000 I (343) boot: Disabling RNG early entropy source... I (355) cpu_start: Multicore app I (355) opi psram: vendor id : 0x0d (AP) I (355) opi psram: dev id : 0x02 (generation 3) I (358) opi psram: density : 0x03 (64 Mbit) I (363) opi psram: good-die : 0x01 (Pass) I (367) opi psram: Latency : 0x01 (Fixed) I (372) opi psram: VCC : 0x01 (3V) I (377) opi psram: SRF : 0x01 (Fast Refresh) I (382) opi psram: BurstType : 0x01 (Hybrid Wrap) I (388) opi psram: BurstLen : 0x01 (32 Byte) I (393) opi psram: Readlatency : 0x02 (10 cycles@Fixed) I (399) opi psram: DriveStrength: 0x00 (1/1) I (404) MSPI Timing: PSRAM timing tuning index: 5 I (409) spiram: Found 64MBit SPI RAM device I (414) spiram: SPI RAM mode: sram 80m I (418) spiram: PSRAM initialized, cache is in normal (1-core) mode. I (425) cpu_start: Pro cpu up. I (429) cpu_start: Starting app cpu, entry point is 0x40375820 I (0) cpu_start: App cpu up. I (862) spiram: SPI SRAM memory test OK I (870) cpu_start: Pro cpu start user code I (871) cpu_start: cpu freq: 240000000 I (871) cpu_start: Application information: I (873) cpu_start: Project name: Squeezelite-ESP32 I (879) cpu_start: App version: local.500.cmake-master I (885) cpu_start: Compile time: May 15 2024 13:58:06 I (891) cpu_start: ELF file SHA256: 48c219f9a6c31c40... I (897) cpu_start: ESP-IDF: v4.4.7 I (902) cpu_start: Min chip rev: v0.0 I (907) cpu_start: Max chip rev: v0.99 I (912) cpu_start: Chip rev: v0.2 I (917) heap_init: Initializing. RAM available for dynamic allocation: I (924) heap_init: At 3FCA6BE8 len 00042B28 (266 KiB): D/IRAM I (930) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DIRAM I (937) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM I (943) heap_init: At 600FE02C len 00001FD4 (7 KiB): RTCRAM I (949) spiram: Adding pool of 8192K of external SPI memory to heap allocator I (1196) spi_flash: detected chip: gd I (1197) spi_flash: flash io: qio I (1198) sleep: Configure to isolate all GPIO pins in sleep state I (1201) sleep: Enable automatic switching of GPIO sleep configuration I (1208) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (1219) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations I (1229) esp_app_main: Reset reason is: 0 I (1239) esp_app_main: Recovery Reboot counter=1
I (1239) esp_app_main: Starting app_main I (1249) nvs_utilities: Initializing flash nvs I (1259) nvs_utilities: Initializing nvs partition settings I (1289) esp_app_main: Setting up telnet. I (1289) telnet: Telnet support disabled I (1289) esp_app_main: Setting up config subsystem. W (1339) nvs_utilities: Configuration memory usage. Heap internal:282795 (min:282387) (used:20032) external:8384131 (min:8376399) (used:0) I (1339) esp_app_main: Registering default values I (1349) system_api: Base MAC address is not set I (1349) system_api: read default base MAC address from EFUSE W (1359) config: Waiting for config commit ... I (2339) config: configuration has some uncommitted entries I (2339) config: Committing configuration to nvs. Locking config object. I (2339) config: Done Committing configuration to nvs. I (2339) config: Config committed! I (2349) esp_app_main: Configuring services I (2349) services: set GPIO 17 to vcc I (2359) services: Configuring I2C sda:8 scl:9 port:1 speed:400000 I (2359) services: Configuring SPI mosi:-1 miso:-1 clk:-1 host:1 dc:-1 W (2369) services: no SPI configured W (2379) led: LED GPIO -1 ignored W (2379) led: LED GPIO -1 ignored I (2379) led: Configuring LEDs green:-1 (on:0 rmt:-1 -1% ), red:-1 (on:0 rmt:-1 -1% ) I (2389) battery: No battery I (2399) monitor: Initializing monitoring I (2399) monitor: Heap internal:281847 (min:281827) external:8367671 (min:8367643) dma:274091 (min:274071) I (2409) esp_app_main: Initializing display I (2419) display: Trying to configure display with N/A W (2419) display: No display driver I (2419) esp_app_main: Initializing led_vu I (2429) led_vu: led_vu configuration invalid I (2429) esp_app_main: Checking for update url W (2439) config: Value not found for key fwurl I (2449) esp_app_main: Starting Network Manager W (2449) config: Value not found for key apdelay I (2449) uart: queue free spaces: 3 I (2449) network_handlers: Network manager configuration: polling max 10176, polling min 15000, ap delay 20000, dhcp timeout 8000, eth timeout 8000 I (2469) http_server: Initializing HTTP Server I (2469) network_ethernet: Detected driver w5500 I (2469) network_handlers: Running recovery. Skipping ethernet, starting WiFi I (2479) pp: pp rom version: e7ae62f I (2489) net80211: net80211 rom version: e7ae62f I (2499) wifi:wifi driver task: 3fcac950, prio:23, stack:6656, core=0 I (2509) wifi:wifi firmware version: 1fd20f4 I (2509) wifi:wifi certification version: v7.0 I (2509) wifi:config NVS flash: enabled I (2509) wifi:config nano formating: disabled I (2519) wifi:Init data frame dynamic rx buffer num: 40 I (2519) wifi:Init static rx mgmt buffer num: 5 I (2519) wifi:Init management short buffer num: 32 I (2529) wifi:Init static tx buffer num: 12 I (2539) wifi:Init tx cache buffer num: 32 I (2539) wifi:Init static tx FG buffer num: 2 I (2549) wifi:Init static rx buffer size: 1600 I (2549) wifi:Init static rx buffer num: 12 I (2549) wifi:Init dynamic rx buffer num: 40 I (2559) wifi_init: tcpip mbox: 32 I (2559) wifi_init: udp mbox: 32 I (2559) wifi_init: tcp mbox: 32 I (2559) wifi_init: tcp tx win: 8192 I (2569) wifi_init: tcp rx win: 32768 I (2569) wifi_init: tcp mss: 1440 I (2579) wifi_init: WiFi/LWIP prefer SPIRAM I (2589) network_wifi: Starting wifi I (2589) phy_init: phy_version 640,cd64a1a,Jan 24 2024,17:28:12 I (2629) wifi:mode : sta (64:e8:33:50:52:18) I (2629) wifi:enable tsf
I (2629) network_handlers: Existing wifi config found. Attempting to connect. I (2639) network: Starting DHCP client I (2649) network_wifi: Wifi Connecting to wifi-12-private...
RECOVERY APPLICATION This mode is used to flash Squeezelite into the OTA partition
Type 'help' to get the list of commands. Use UP/DOWN arrows to navigate through command history. Press TAB when typing command name to auto-complete.
Your terminal application does not support escape sequences. Line editing and history features are disabled. On Windows, try using Putty instead.
recovery-squeezelite-esp32>W (5049) network_wifi: WIFI_EVENT_STA_DISCONNECTED. From BSSID: 00:00:00:00:00:00, reason code: 201 (WIFI_REASON_NO_AP_FOUND) W (5059) wifi:Haven't to connect to a suitable AP now! I (5069) network_wifi: Configuring Access Point. I (5069) network: Stopping DHCP server I (5079) network: Starting DHCP server I (5079) network_wifi: AP SSID: louder-esp-s3 I (5079) network_wifi: AP Password: squeezelite I (5089) wifi:mode : sta (64:e8:33:50:52:18) + softAP (64:e8:33:50:52:19) I (5089) wifi:Total power save buffer number: 6 I (5099) wifi:Init max length of beacon: 752/752 I (5109) wifi:Init max length of beacon: 752/752 I (5469) wifi:Total power save buffer number: 6 I (5469) wifi:Total power save buffer number: 6 I (5469) wifi:Set ps type: 1
I (5479) network_wifi: Initiating wifi network scan I (5479) dns_server: DNS Server listening on 53/udp E (17649) network: network manager Unhandled Event NETWORK_WIFI_CONFIGURING_ACTIVE_STATE(WIFI_CONFIGURING_STATE) [EN_TIMER] I (51149) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (51149) wifi:station: 80:30:49:41:2c:af join, AID=1, bgn, 20 I (51229) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (51589) httpd_handlers: serving / to peer 192.168.4.2 port 15086 W (51629) httpd_txrx: httpd_sock_err: error in send : 104 W (51629) httpd_txrx: httpd_sock_err: error in recv : 104 I (53329) httpd_handlers: serving / to peer 192.168.4.2 port 640 W (53859) httpd_handlers: redirect_processor(1002): 192.168.4.2 requested invalid URL: [/success.txt?ipv4] W (53879) httpd_handlers: process_redirect(957): Redirecting host [192.168.4.2] to http://192.168.4.1/ (from uri /success.txt?ipv4) CORRUPT HEAP: Bad tail at 0x3d81d61b. Expected 0xbaad5678 got 0xbaad5600
assert failed: multi_heap_free multi_heap_poisoning.c:259 (head != NULL)
Backtrace: 0x40376296:0x3d80bc90 0x4037fac1:0x3d80bcb0 0x40384d01:0x3d80bcd0 0x40384806:0x3d80bdf0 0x4037686d:0x3d80be10 0x40384d31:0x3d80be30 0x4201f24d:0x3d80be50 0x4201f49f:0x3d80bea0 0x4201f52d:0x3d80bf10 0x4205ac4e:0x3d80bf30 0x42059db8:0x3d80bf70 0x4205a31a:0x3d80c020 0x420590a4:0x3d80c040 0x420bdc82:0x3d80c060 0x420591af:0x3d80c080
ELF file SHA256: 48c219f9a6c31c40
CPU halted. ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x42006524 SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x1820 load:0x403c9700,len:0xe80 load:0x403cc700,len:0x3110 entry 0x403c9980 I (24) boot: ESP-IDF v4.4.7 2nd stage bootloader I (24) boot: compile time 13:57:36 I (25) boot: Multicore bootloader I (26) boot: chip revision: v0.2 I (30) qio_mode: Enabling default flash chip QIO I (36) boot.esp32s3: Boot SPI Speed : 80MHz I (40) boot.esp32s3: SPI Mode : QIO I (45) boot.esp32s3: SPI Flash Size : 8MB I (50) boot: Enabling RNG early entropy source... I (55) boot: Partition Table: I (59) boot: ## Label Usage Type ST Offset Length I (66) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (74) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (81) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (89) boot: 3 recovery factory app 00 00 00010000 00140000 I (96) boot: 4 ota_0 OTA app 00 10 00150000 002a0000 I (103) boot: 5 settings WiFi data 01 02 003f0000 00010000 I (111) boot: End of partition table I (115) boot: Defaulting to factory image I (120) esp_image: segment 0: paddr=00010020 vaddr=3c0d0020 size=59548h (365896) map I (184) esp_image: segment 1: paddr=00069570 vaddr=3fc96ce0 size=04870h ( 18544) load I (188) esp_image: segment 2: paddr=0006dde8 vaddr=40374000 size=02230h ( 8752) load I (191) esp_image: segment 3: paddr=00070020 vaddr=42000020 size=c64d0h (812240) map I (321) esp_image: segment 4: paddr=001364f8 vaddr=40376230 size=10ab0h ( 68272) load I (335) esp_image: segment 5: paddr=00146fb0 vaddr=600fe000 size=0002ch ( 44) load I (343) boot: Loaded app from partition at offset 0x10000 I (343) boot: Disabling RNG early entropy source... I (355) cpu_start: Multicore app I (355) opi psram: vendor id : 0x0d (AP) I (355) opi psram: dev id : 0x02 (generation 3) I (358) opi psram: density : 0x03 (64 Mbit) I (363) opi psram: good-die : 0x01 (Pass) I (367) opi psram: Latency : 0x01 (Fixed) I (372) opi psram: VCC : 0x01 (3V) I (377) opi psram: SRF : 0x01 (Fast Refresh) I (382) opi psram: BurstType : 0x01 (Hybrid Wrap) I (388) opi psram: BurstLen : 0x01 (32 Byte) I (393) opi psram: Readlatency : 0x02 (10 cycles@Fixed) I (399) opi psram: DriveStrength: 0x00 (1/1) I (404) MSPI Timing: PSRAM timing tuning index: 5 I (409) spiram: Found 64MBit SPI RAM device I (414) spiram: SPI RAM mode: sram 80m I (418) spiram: PSRAM initialized, cache is in normal (1-core) mode. I (425) cpu_start: Pro cpu up. I (429) cpu_start: Starting app cpu, entry point is 0x40375820 I (0) cpu_start: App cpu up. I (862) spiram: SPI SRAM memory test OK I (871) cpu_start: Pro cpu start user code I (871) cpu_start: cpu freq: 240000000 I (871) cpu_start: Application information: I (873) cpu_start: Project name: Squeezelite-ESP32 I (879) cpu_start: App version: local.500.cmake-master I (885) cpu_start: Compile time: May 15 2024 13:58:06 I (891) cpu_start: ELF file SHA256: 48c219f9a6c31c40... I (897) cpu_start: ESP-IDF: v4.4.7 I (902) cpu_start: Min chip rev: v0.0 I (907) cpu_start: Max chip rev: v0.99 I (912) cpu_start: Chip rev: v0.2 I (917) heap_init: Initializing. RAM available for dynamic allocation: I (924) heap_init: At 3FCA6BE8 len 00042B28 (266 KiB): D/IRAM I (930) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DIRAM I (937) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM I (943) heap_init: At 600FE02C len 00001FD4 (7 KiB): RTCRAM I (949) spiram: Adding pool of 8192K of external SPI memory to heap allocator I (1197) spi_flash: detected chip: gd I (1197) spi_flash: flash io: qio I (1198) sleep: Configure to isolate all GPIO pins in sleep state I (1201) sleep: Enable automatic switching of GPIO sleep configuration I (1208) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (1219) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations I (1229) esp_app_main: Reset reason is: 0 I (1239) esp_app_main: Recovery Reboot counter=1
I (1239) esp_app_main: Starting app_main I (1249) nvs_utilities: Initializing flash nvs I (1259) nvs_utilities: Initializing nvs partition settings I (1289) esp_app_main: Setting up telnet. I (1289) telnet: Telnet support disabled I (1289) esp_app_main: Setting up config subsystem. W (1339) nvs_utilities: Configuration memory usage. Heap internal:282795 (min:282387) (used:20032) external:8384131 (min:8376399) (used:0) I (1339) esp_app_main: Registering default values I (1349) system_api: Base MAC address is not set I (1349) system_api: read default base MAC address from EFUSE W (1359) config: Waiting for config commit ... I (2339) config: configuration has some uncommitted entries I (2339) config: Committing configuration to nvs. Locking config object. I (2339) config: Done Committing configuration to nvs. I (2339) config: Config committed! I (2349) esp_app_main: Configuring services I (2349) services: set GPIO 17 to vcc I (2359) services: Configuring I2C sda:8 scl:9 port:1 speed:400000 I (2359) services: Configuring SPI mosi:-1 miso:-1 clk:-1 host:1 dc:-1 W (2369) services: no SPI configured W (2379) led: LED GPIO -1 ignored W (2379) led: LED GPIO -1 ignored I (2379) led: Configuring LEDs green:-1 (on:0 rmt:-1 -1% ), red:-1 (on:0 rmt:-1 -1% ) I (2389) battery: No battery I (2399) monitor: Initializing monitoring I (2399) monitor: Heap internal:281847 (min:281827) external:8367671 (min:8367643) dma:274091 (min:274071) I (2409) esp_app_main: Initializing display I (2419) display: Trying to configure display with N/A W (2419) display: No display driver I (2419) esp_app_main: Initializing led_vu I (2429) led_vu: led_vu configuration invalid I (2429) esp_app_main: Checking for update url W (2439) config: Value not found for key fwurl I (2449) esp_app_main: Starting Network Manager W (2449) config: Value not found for key apdelay I (2449) uart: queue free spaces: 3 I (2449) network_handlers: Network manager configuration: polling max 10176, polling min 15000, ap delay 20000, dhcp timeout 8000, eth timeout 8000 I (2469) http_server: Initializing HTTP Server I (2469) network_ethernet: Detected driver w5500 I (2469) network_handlers: Running recovery. Skipping ethernet, starting WiFi I (2479) pp: pp rom version: e7ae62f I (2489) net80211: net80211 rom version: e7ae62f I (2499) wifi:wifi driver task: 3fcac950, prio:23, stack:6656, core=0 I (2509) wifi:wifi firmware version: 1fd20f4 I (2509) wifi:wifi certification version: v7.0 I (2509) wifi:config NVS flash: enabled I (2509) wifi:config nano formating: disabled I (2519) wifi:Init data frame dynamic rx buffer num: 40 I (2519) wifi:Init static rx mgmt buffer num: 5 I (2519) wifi:Init management short buffer num: 32 I (2529) wifi:Init static tx buffer num: 12 I (2539) wifi:Init tx cache buffer num: 32 I (2539) wifi:Init static tx FG buffer num: 2 I (2549) wifi:Init static rx buffer size: 1600 I (2549) wifi:Init static rx buffer num: 12 I (2549) wifi:Init dynamic rx buffer num: 40 I (2559) wifi_init: tcpip mbox: 32 I (2559) wifi_init: udp mbox: 32 I (2559) wifi_init: tcp mbox: 32 I (2559) wifi_init: tcp tx win: 8192 I (2569) wifi_init: tcp rx win: 32768 I (2569) wifi_init: tcp mss: 1440 I (2579) wifi_init: WiFi/LWIP prefer SPIRAM I (2589) network_wifi: Starting wifi I (2589) phy_init: phy_version 640,cd64a1a,Jan 24 2024,17:28:12 I (2629) wifi:mode : sta (64:e8:33:50:52:18) I (2629) wifi:enable tsf
I (2629) network_handlers: Existing wifi config found. Attempting to connect. I (2639) network: Starting DHCP client I (2649) network_wifi: Wifi Connecting to wifi-12-private...
RECOVERY APPLICATION This mode is used to flash Squeezelite into the OTA partition
Type 'help' to get the list of commands. Use UP/DOWN arrows to navigate through command history. Press TAB when typing command name to auto-complete.
Your terminal application does not support escape sequences. Line editing and history features are disabled. On Windows, try using Putty instead.
recovery-squeezelite-esp32>W (5049) network_wifi: WIFI_EVENT_STA_DISCONNECTED. From BSSID: 00:00:00:00:00:00, reason code: 201 (WIFI_REASON_NO_AP_FOUND) W (5059) wifi:Haven't to connect to a suitable AP now! I (5069) network_wifi: Configuring Access Point. I (5069) network: Stopping DHCP server I (5079) network: Starting DHCP server I (5079) network_wifi: AP SSID: louder-esp-s3 I (5079) network_wifi: AP Password: squeezelite I (5089) wifi:mode : sta (64:e8:33:50:52:18) + softAP (64:e8:33:50:52:19) I (5089) wifi:Total power save buffer number: 6 I (5099) wifi:Init max length of beacon: 752/752 I (5109) wifi:Init max length of beacon: 752/752 I (5469) wifi:Total power save buffer number: 6 I (5469) wifi:Total power save buffer number: 6 I (5469) wifi:Set ps type: 1
I (5479) network_wifi: Initiating wifi network scan I (5479) dns_server: DNS Server listening on 53/udp E (17649) network: network manager Unhandled Event NETWORK_WIFI_CONFIGURING_ACTIVE_STATE(WIFI_CONFIGURING_STATE) [EN_TIMER] I (22459) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (22459) wifi:station: 80:30:49:41:2c:af join, AID=1, bgn, 20 I (26479) wifi:station: 80:30:49:41:2c:af leave, AID = 1, bss_flags is 655474, bss:0x3d81d760 I (26479) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (27139) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (27149) wifi:station: 80:30:49:41:2c:af join, AID=1, bgn, 20 I (31109) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (39389) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (44379) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (53369) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (86799) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (86799) wifi:station: 80:30:49:41:2c:af join, AID=1, bgn, 20 I (90799) wifi:station: 80:30:49:41:2c:af leave, AID = 1, bss_flags is 655458, bss:0x3d81d6a8 I (90799) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (95429) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (95439) wifi:station: 80:30:49:41:2c:af join, AID=1, bgn, 20 I (95529) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (161079) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (161079) wifi:station: 80:30:49:41:2c:af join, AID=1, bgn, 20 I (165079) wifi:station: 80:30:49:41:2c:af leave, AID = 1, bss_flags is 655458, bss:0x3d81d6a8 I (165089) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (169759) wifi:new:<1,0>, old:<1,0>, ap:<1,0>, sta:<0,0>, prof:1 I (169759) wifi:station: 80:30:49:41:2c:af join, AID=1, bgn, 20 I (169849) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (171889) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (174689) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (179319) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (187689) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (204429) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2 I (204649) httpd_handlers: serving / to peer 192.168.4.2 port 35529 W (204679) httpd_txrx: httpd_sock_err: error in send : 104 W (204679) httpd_txrx: httpd_sock_err: error in recv : 104 W (205529) httpd_uri: httpd_uri: URI '/canonical.html' not found W (205549) httpd_handlers: redirect_processor(1002): 192.168.4.2 requested invalid URL: [/canonical.html] W (205559) httpd_handlers: process_redirect(957): Redirecting host [192.168.4.2] to http://192.168.4.1/ (from uri /canonical.html) CORRUPT HEAP: Bad tail at 0x3d81d59f. Expected 0xbaad5678 got 0xbaad5600
assert failed: multi_heap_free multi_heap_poisoning.c:259 (head != NULL)
Compile without heap poisoning to try
This is a log from @anabolyc 's binary. So he would have to try.
My own build hangs before creating the wifi AP and I don't know why. See https://github.com/sle118/squeezelite-esp32/issues/420#issuecomment-2238802089
I gave up!! Using esp32-wrover instead :)
I gave up!! Using esp32-wrover instead :)
Feel your pain. Have bunch of S3 with 8MB of PSRAM, and still had to order WROVER for this. :) Well, it is how it is, hopefully it'll come someday. S3 is the future (or, actually, the present).
Just do as I said. I don't have time to investigate why for now, but there is a heap issue that does not affect runtime although if heap corruption detection is activated, triggers a reboot.
Sorry folks, I didn't have a chance to test it thoroughly. I can try recompiling sometime next week (I'm out of the lab till Tuesday).
@philippe44 should I set CONFIG_HEAP_POISONING_DISABLED=y
?
BTW, current sdkconfig suggests external PSRAM as far as I remember. All the boards I tested had ESP32-S3-WROVER module. I don't think it will work with internal PSRAM, but I can be wrong.
@martymcbro @gulliver103 I can confirm the issue. I missed it before because I have my wifi credentials flashed in the nvs storage (ups!). I will try to rebuild with philippe44 suggestion and see if it helps
I've updated online installer can someone please flash and test wifi provisioning? Works for me now.
BTW, this would simplify wifi provisioning a tonn. We integrated improv in the snaplient and it works like a treat.
I've updated online installer can someone please flash and test wifi provisioning? Works for me now.
BTW, this would simplify wifi provisioning a tonn. We integrated improv in the snaplient and it works like a treat.
@anabolyc Works so much better :) Thank you (Y)
@anabolyc Strange thing, it booted successfully, i added WiFi, changed GPIO config, rebooted, and it gives this on boot now:
***ERROR*** A stack overflow in task Tmr Svc has been detected.
@anabolyc For me the new version is working without problems on my XIAO ESP32-S3. I also connected a PCM5102 DAC and configured it. This is also working flawlessly. Thank you!
Do you think your build would also run on this board? It's contains a S3-WROOM module.
@formatBCE can you please share which settings exactly you set to make it fail?
@martymcbro seems that they use S3-WROOM module with 8Mb of PSRAM, so it should work.
@anabolyc For me the new version is working without problems on my XIAO ESP32-S3. I also connected a PCM5102 DAC and configured it. This is also working flawlessly. Thank you!
Interesting! I have XIAO S3 module too, using it with UDA1334. Somehow i managed to get it stable - but it doesn't appear in either my Music Assistant, where i have another Squeezelite player already, or in Spotify (i have cspot enabled).
@formatBCE can you please share which settings exactly you set to make it fail?
All the default ones:
P.S. you're right, Seeed XIAO S3 are using WROOM with 8MB flash and 8MB PSRAM
OK, I did similar things. I also connected to Wifi, renamed the player, disabled Bluetooth and Airplay. Zeroconf for cspot was already set to 1. I also configured the DAC, additionaly I removed conflicts for the PINs I used for the DAC from the other hardware sections.
Maybe I did another important thing. When I left telnet enabled I could not connect to the player after leaving recovery. The serial debug console did only tell me that output was redirected to telnet so I could not see what was going wrong. After disabling telnet the player worked as expected. So maybe there is still a bug left.
Now I also removed the Ethernet config using the NVS editor, in case this is causing some problems. But I'm not brave enough to turn telnet back on.
Was anyone able to debug those issues with S3 built-in debugger-over-USB? I'm not sure if it is supported in the IDF4.3, but I was using it in the latest IDF and it was brilliant for fixing issues like those
@anabolyc i connected to web.esphome.io, and see logs. But IDK what to debug. :)
If you are talking about the "idf.py monitor" command I can try this when I find the time. I did that recently with my own build, but with idf 4.4. So I will clone your repository and give it a try. Maybe I can find out more about the telnet issue.
@anabolyc maybe this will help? This is work log, device doesn't hang/reboot, but doesn't show in Spotify or Music Assistant. https://pastebin.com/9q8E1yYD
@anabolyc Can I debug this just with the binary? In your Github it seems that the source is not available or I was not able to find it. I thought that I need to compile the source to use the debugger? Which IDF version did you use?
Alright, i gave it another shot.
Made just minimal changes, disabled Telnet right away (it's Telnet that gives stack overflow
) - and it works! :)
Nice thing! Thank you @anabolyc
Slava Ukraini!
Seeed XIAO ESP32-S3 board running nicely so far using the info here.
I hope the next release will add S3 support to the Webinstaller, with telnet disabled. ;)
I can try to debug the telnet problem, however I cannot find the source code @anabolyc uses to build the firmware.
Hey @martymcbro I'm using the code from top of the master-v4.3 branch and this sdkconfig from 4.4-s3 branch.
Hi @anabolyc,
Sorry for the long delay, my notebook died and I had to get a new one :sunglasses:
I tried to build the git commit with the sdkconfig you mentioned above, but I ran into problems when using esp-idf 4.3.7 and also when using esp-idf 4.4.8.
Unfortunately I am not advanced enough to resolve these. I attached the build output. When using esp-idf 4.4.8 the error has something to do with cspot, so maybe this is one of the problems you had with cspot before? Do I need another change in the sdkconfig?
Best Regards
@martymcbro
Seems to be missing dependencies or whatnot, don't have a clue how to fix it. I'd advice to use esp docker image for build, I was using 4.4.7 which is the only one I know is successful. Try that
docker run --rm -it -v .:/project -w /project -v /dev:/dev --privileged espressif/idf:v4.4.7
make sure you have the right sdkconfig
in the root and run idf.py build flash monitor
as usual.
Just for reference, my sdkconfig for S3
@anabolyc
Thank you for the hint. Everything worked now using your docker command.
After enabling telnet the system crashed again. The reason is a stack overflow in task Tmr Svc. Attached you find the output of "idf.py monitor" containing the backtrace.
@philippe44
I think you are one of the few persons with enough insight to fix this. Looking at the backtrace, do you have a clue what can be done?
@martymcbro Telnet never worked for me on esp32s3. I disable that before going out the recovery mode
I can confirm that telent never worked, I can accept that for now.
Describe the bug
hey folks, I'm testing squeezelite-esp32 with the ESP32-S3 board built with espidf v.4.4.7 Took me some time to prepare working sdkconfig, but code builds and runs, I was able to configure wifi and find device in the network. However only slim-proto seems to work as expected. Neither scpot nor airplay works as it should.
Preliminary Information
Hardware Details
Please describe your hardware setup:
Airplay Logs
Airplay connects fine, but as soon as audio starts, errors are fired into the log. Speakers seem to issue occasional sounds, but you'd not recognize any audio of it.
Cspot Logs
Cspot crashes as soon as I connect the client to the device
Issue Description