schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad
https://www.youtube.com/watch?v=6QbPee2583o
324 stars 80 forks source link

v 2.8 doesn't work #194

Closed valera39 closed 1 year ago

valera39 commented 1 year ago

Hello Wolle! Configuration ESP32S3 N16R8, VS1053. In platformio.ini I have recommended the line board = ESP32-S3-DevKitC-1-N16R8 ;chipmodel ESP32S3, USBtoTTL (S3-DevKitC-1) But PSRAM is not initialized. Do I need to edit sdkconfig.esp32s3 again ? When switching stations or starting playback, turning on or rebooting, there is a loud clicking sound in the speakers P.S. After flashing with modified sdkconfig.esp32s3 I get this: ESP-ROM:esp32s3-20210327 Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x3b (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x44c load:0x403c9700,len:0xbe4 load:0x403cc700,len:0x2a38 entry 0x403c98d4 [ 877][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled E (877) esp_core_dump_flash: No core dump partition found! E (877) esp_core_dump_flash: No ��ESP32 Chip: ESP32-S3 Arduino Version: 2.0.8 ESP-IDF Version: 4.4.4 ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)

00:00:00 00:00:00
00:00:00
MiniWebRadio V2
00:00:00

00:00:00 00:00:00 setup: .... Arduino is pinned to core 1 [ 923][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_INITIALIZED [ 923][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_INITIALIZED 00:00:00 tft_info: . init ILI9488 00:00:00 setup: .... Init SD card 00:00:00 setup: .... SD card found E (259) ledc: ledc_get_duty(739): LEDC is not initialized 00:00:01 setup: .... seek for stations.csv 00:00:01 setup: .... stations.csv found 00:00:01 setup: .... seek for WiFi networks [ 2008][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U [ 2019][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_01 [ 2021][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_02 [ 2029][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_03 [ 2037][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_04 [ 2044][I][WiFiMulti.cpp:84] addAP(): [WIFI][APlistAdd] add SSID: network_04 [ 2058][E][WiFiGeneric.cpp:680] wifiLowLevelInit(): esp_wifi_init 4353 [ 2059][E][WiFiGeneric.cpp:680] wifiLowLevelInit(): esp_wifi_init 4353 00:00:01 WiFI_info: WiFi credentials are not correct [ 2663][E][WiFiGeneric.cpp:680] wifiLowLevelInit(): esp_wifi_init 4353 [ 2664][E][WiFiGeneric.cpp:680] wifiLowLevelInit(): esp_wifi_init 4353 [ 2667][E][WiFiAP.cpp:154] softAP(): enable AP first! 00:00:02 Accesspoint: IP: 0.0.0.0 [ 2768][E][WiFiGeneric.cpp:680] wifiLowLevelInit(): esp_wifi_init 4353 00:00:02 setup: .... -2 WiFi networks found 00:00:02 ftpServer: Ftp server waiting for connection on port 21

schreibfaul1 commented 1 year ago

hello valera39, i added the additional boards in the platform.ini without knowing if they work at all. On June 22nd I will probably get an N16R8 board and can then test the settings and adjust them if necessary.

schreibfaul1 commented 1 year ago

I will also have to adjust the miniwebradio.csv, with the one I'm using now the nvs area is in the wrong place.

valera39 commented 1 year ago

Okay, I'll look forward to receiving your boards.

schreibfaul1 commented 1 year ago

I think I can now answer the question about configuring the ESP32-S3 Octal PSRAM. While the external PSRAM connected via Quad does not cause any problems, the Octal PSRAM is not automatically recognized. There are basically 3 different types of configuration. 1) quad Flash - quad PSRAM, 2) quad FLASH - octal PSRAM, 3) octal Flash - octal PSRAM.
I have created partition tables for the common flash sizes, 4MB remains the one used up to now 8MB and 16MB are new. image MiniWebRadio only uses the first 4MB, so if the flash is larger, it is available but remains unused. The PSRAM setting is more difficult. In the Arduino IDE and in the Sloeber IDE there is the possibility to select octal PSRAM in the BoardManager. In the background there is a suitable sdkconfig.h for all possible combinations. As long as there is no automatic detection of the PSRAM connection, I only see the possibility of manual setting. Choose the most suitable one from the available boards. image And then open the menuconfig for ESP32-S3. component config ---> ESP32S3-Specific ---> SPI RAM config ---> MODE (QUAD/OCT)... ---> (x) Octal Mode PSRAM image and set the 'X' to Octal Mode PSRAM. It works for me, hope it works for you too. Got the Espressif N8R8 board image