I have a problem with using core 0 for AUDIOTASK_CORE.
If I use the AUDIOTASK_COR=1 setting, everything is fine.
Please help me find out where the problem is.
define SDMMC_FREQUENCY 40000000 // 80000000, 40000000, 27000000, 20000000, 10000000 not every SD Card will run at 80MHz
define FTP_USERNAME "esp32" // user and pw in FTP Client
define FTP_PASSWORD "esp32"
define CONN_TIMEOUT 500 // unencrypted connection timeout in ms (http://...)
define CONN_TIMEOUT_SSL 2000 // encrypted connection timeout in ms (https://...)
I am attaching the failure statement:
ESP32 Chip: ESP32-S3
Arduino Version: 2.0.14
ESP-IDF Version: 4.4.6
MiniWebRadio Version 2.15a Jan 10/2024
ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)
FLASH size 8388608 bytes, speed 80 MHz
CPU speed 240 MHz
SDMMC speed 40 MHz
TFT speed 75 MHz
PSRAM total size: 8386167 bytes
FFat total space: 3735552 bytes, free space: 3735552 bytes
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
00:00:00 tft_info: . init ILI9341
00:00:00 setup: .... Init SD card
00:00:00 setup: .... SD card found, 1886.0 MB by 1886.0 MB free
00:00:00 setup: .... seek for stations.csv
00:00:00 setup: .... stations.csv found
00:00:00 setup: .... seek for WiFi networks
00:00:07 WiFI_info: Connecting WiFi...
00:00:07 WiFI_info: mDNS name: MiniWebRadio
00:00:07 setup: .... connected to WifiHH1, IP address is 192.168.1.51
00:00:07 ftpServer: Buffers allocated: 4622 bytes
00:00:07 rtime_info: Initializing SNTP
00:00:07 rtime_info: Waiting for system time to be set... (1/10)
00:00:09 rtime_info: Waiting for system time to be set... (2/10)
00:00:11 rtime_info: Waiting for system time to be set... (3/10)
09:37:00 rtime_info: 09:37:00
Hi,
I have a problem with using core 0 for AUDIOTASK_CORE. If I use the AUDIOTASK_COR=1 setting, everything is fine. Please help me find out where the problem is.
Here is the setup i use:
define DECODER 1 // (0)VS1053 , (1)MAX98357A PCM5102A CS4344... (2)AC101, (3)ES8388, (4)WM8978
define TFT_CONTROLLER 0 // (0)ILI9341, (1)HX8347D, (2)ILI9486a, (3)ILI9486b, (4)ILI9488, (5)ST7796, (6)ST7796RPI
define DISPLAY_INVERSION 0 // (0) off (1) on
define TFT_ROTATION 1 // 1 or 3 (landscape)
define TFT_FREQUENCY 75000000 // 80000000, 40000000, 27000000, 20000000, 10000000
define TP_VERSION 0 // (0)ILI9341, (1)ILI9341RPI, (2)HX8347D, (3)ILI9486, (4)ILI9488, (5)ST7796, (3)ST7796RPI
define TP_ROTATION 3 // 1 or 3 (landscape)
define AUDIOTASK_CORE 0 // 0 or 1
define AUDIOTASK_PRIO 2 // 0 ... 24 Priority of the Task (0...configMAX_PRIORITIES -1)
define I2S_COMM_FMT 0 // (0) commFmt MSB MAX98357A PCM5102A CS4344, (1) commFmt LSB PT8211
define SDMMC_FREQUENCY 40000000 // 80000000, 40000000, 27000000, 20000000, 10000000 not every SD Card will run at 80MHz
define FTP_USERNAME "esp32" // user and pw in FTP Client
define FTP_PASSWORD "esp32"
define CONN_TIMEOUT 500 // unencrypted connection timeout in ms (http://...)
define CONN_TIMEOUT_SSL 2000 // encrypted connection timeout in ms (https://...)
I am attaching the failure statement: ESP32 Chip: ESP32-S3 Arduino Version: 2.0.14 ESP-IDF Version: 4.4.6 MiniWebRadio Version 2.15a Jan 10/2024 ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit) FLASH size 8388608 bytes, speed 80 MHz CPU speed 240 MHz SDMMC speed 40 MHz TFT speed 75 MHz PSRAM total size: 8386167 bytes FFat total space: 3735552 bytes, free space: 3735552 bytes
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 00:00:00 tft_info: . init ILI9341 00:00:00 setup: .... Init SD card 00:00:00 setup: .... SD card found, 1886.0 MB by 1886.0 MB free 00:00:00 setup: .... seek for stations.csv 00:00:00 setup: .... stations.csv found 00:00:00 setup: .... seek for WiFi networks 00:00:07 WiFI_info: Connecting WiFi... 00:00:07 WiFI_info: mDNS name: MiniWebRadio 00:00:07 setup: .... connected to WifiHH1, IP address is 192.168.1.51 00:00:07 ftpServer: Buffers allocated: 4622 bytes 00:00:07 rtime_info: Initializing SNTP 00:00:07 rtime_info: Waiting for system time to be set... (1/10) 00:00:09 rtime_info: Waiting for system time to be set... (2/10) 00:00:11 rtime_info: Waiting for system time to be set... (3/10) 09:37:00 rtime_info: 09:37:00
assert failed: xQueueGenericSend IDF\components\freertos\queue.c:820 (pxQueue)
Backtrace: 0x40377f56:0x3fced130 0x4037e9b1:0x3fced150 0x403885e9:0x3fced170 0x4037f58f:0x3fced2a0 0x42003c19:0x3fced2e0 0x420105a5:0x3fced320 0x4205cb5e:0x3fced3c0
0 0x40377f56:0x3fced130 in panic_abort at C:\Users\user.platformio\packages\framework-espidf\components\esp_system/panic.c:408
1 0x4037e9b1:0x3fced150 in esp_system_abort at C:\Users\user.platformio\packages\framework-espidf\components\esp_system/esp_system.c:137
2 0x403885e9:0x3fced170 in __assert_func at C:\Users\user.platformio\packages\framework-espidf\components\newlib/assert.c:85
3 0x4037f58f:0x3fced2a0 in xQueueGenericSend at C:\Users\user.platformio\packages\framework-espidf\components\freertos/queue.c:821 (discriminator 2)
4 0x42003c19:0x3fced2e0 in transmitReceive(audioMessage) at src/audiotask.cpp:487
5 0x420105a5:0x3fced320 in setup() at src/main.cpp:1889
6 0x4205cb5e:0x3fced3c0 in loopTask(void*) at C:/Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42
ELF file SHA256: ce5e9b64e8dfc052
Rebooting... ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x28 (SPI_FAST_FLASH_BOOT) Saved PC:0x400023d0 SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x44c load:0x403c9700,len:0xbd8 load:0x403cc700,len:0x2a80 entry 0x403c98d0