Hi genius,
Im using esp32-c3-fn4 with VSCO Ide, espidf extension, idf version 4.4.2.
I have issue when creating large queue. Creating queue with xQueueCreate(1000, 50); has no issue but when i changed to xQueueCreate(1000, 256);, the device keep restart when program execute until xQueueReceive.
My main just look like this:
[Codebox]
QueueHandle_t Qmem_Task_Queue;
Qmem_Task_Queue = xQueueCreate(1000, 256);
char Buffer[1024] = {0};
if(xQueueReceive(Qmem_Task_Queue, &Buffer[0], pdMS_TO_TICKS(1000)) == pdPASS) //keep restart here. If commented, no restart
{
}
[/Codebox]
This is the log
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x16b4
load:0x403ce000,len:0x930
load:0x403d0000,len:0x2d28
entry 0x403ce000
I (35) boot: ESP-IDF v4.4.2 2nd stage bootloader
I (35) boot: compile time 16:19:29
I (35) boot: chip revision: 3
I (37) boot.esp32c3: SPI Speed : 80MHz
I (42) boot.esp32c3: SPI Mode : DIO
I (46) boot.esp32c3: SPI Flash Size : 4MB
I (51) boot: Enabling RNG early entropy source...
I (56) boot: Partition Table:
I (60) boot: ## Label Usage Type ST Offset Length
I (67) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (75) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (82) boot: 2 factory factory app 00 00 00010000 00100000
I (90) boot: End of partition table
I (94) esp_image: segment 0: paddr=00010020 vaddr=3c050020 size=1f5d8h (128472) map
I (122) esp_image: segment 1: paddr=0002f600 vaddr=3fc8bc00 size=00a18h ( 2584) load
I (123) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=49a10h (301584) map
I (175) esp_image: segment 3: paddr=00079a38 vaddr=3fc8c618 size=00b24h ( 2852) load
I (176) esp_image: segment 4: paddr=0007a564 vaddr=40380000 size=0bb14h ( 47892) load
I (190) esp_image: segment 5: paddr=00086080 vaddr=50000010 size=00010h ( 16) load
I (194) boot: Loaded app from partition at offset 0x10000
I (196) boot: Disabling RNG early entropy source...
I (212) cpu_start: Pro cpu up.
I (221) cpu_start: Pro cpu start user code
I (221) cpu_start: cpu freq: 160000000
I (221) cpu_start: Application information:
I (224) cpu_start: Project name: esp32_firmware
I (229) cpu_start: App version: 1
I (234) cpu_start: Compile time: Oct 25 2022 16:19:14
I (240) cpu_start: ELF file SHA256: 6955d66deeac1e50...
I (246) cpu_start: ESP-IDF: v4.4.2
I (251) heap_init: Initializing. RAM available for dynamic allocation:
I (258) heap_init: At 3FC8F700 len 00030900 (194 KiB): DRAM
I (264) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM
I (271) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM
I (278) spi_flash: detected chip: generic
I (282) spi_flash: flash io: dio
I (289) sleep: Configure to isolate all GPIO pins in sleep state
I (293) sleep: Enable automatic switching of GPIO sleep configuration
I (300) cpu_start: Starting scheduler.
I (325) Serial0: Serial_Init UartNum:0, Baudrate:115200, BufferSize:512, QueueSize:1, TaskBufferSize:512, TaskQueueSize:1, TaskQueueWait:4294967295
I (425) Trans_Log: Qmem_Init TaskBufferSize:50, TaskQueueSize:1000, TaskQueueWait:100
assert failed: xQueueReceive queue.c:1382 (( pxQueue ))
Stack dump detected
Core 0 register dump:
MEPC : 0x4038088e RA : 0x40384b6a SP : 0x3fcd9c30 GP : 0x3fc8c400
0x4038088e: panic_abort at C:/Users/Intel/esp/esp-idf/components/esp_system/panic.c:402
0x40384b6a: __ubsan_include at C:/Users/Intel/esp/esp-idf/components/esp_system/ubsan.c:294
TP : 0x3fcc8824 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x00000090 S1 : 0x00000001 A0 : 0x3fcd9c6c A1 : 0x3fc8c229
A2 : 0x00000001 A3 : 0x00000029 A4 : 0x00000001 A5 : 0x3fc8f000
A6 : 0x7a797877 A7 : 0x76757473 S2 : 0x00000009 S3 : 0x3fcd9d77
S4 : 0x3fc8c228 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x00000000
0x40380001: _vector_table at ??:?
MHARTID : 0x00000000
Failed to run gdb_panic_server.py script: Command '['riscv32-esp-elf-gdb', '--batch', '-n', 'c:\\users\\intel\\documents\\aus\\workspace\\vsco_esp32\\esp32_blink_v1.0\\build\\esp32_firmware.elf', '-ex', 'target remote | "C:\\Users\\Intel\\.espressif\\python_env\\idf4.4_py3.8_env\\Scripts\\python.exe" "C:\\Users\\Intel\\esp\\esp-idf\\tools\\idf_monitor_base\\..\\gdb_panic_server.py" --target esp32c3 "C:\\Users\\Intel\\AppData\\Local\\Temp\\tmp_18vag5s"', '-ex', 'bt']' returned non-zero exit status 1.
b'C:\\Users\\Intel\\.espressif\\tools\\riscv32-esp-elf\\esp-2021r2-patch3-8.4.0\\riscv32-esp-elf\\bin\\riscv32-esp-elf-gdb.exe: warning: Couldn\'t determine a path for the index cache directory.\r\nerror starting child process \'"C:\\Users\\Intel\\.espressif\\python_env\\idf4.4_py3.8_env\\Scripts\\python.exe" "C:\\Users\\Intel\\esp\\esp-idf\\tools\\idf_monitor_base\\..\\gdb_panic_server.py" --target esp32c3 "C:\\Users\\Intel\\AppData\\Local\\Temp\\tmp_18vag5s"\': CreateProcess: No such file or directory\r\nNo stack.\r\n'
Core 0 register dump:
MEPC : 0x4038088e RA : 0x40384b6a SP : 0x3fcd9c30 GP : 0x3fc8c400
TP : 0x3fcc8824 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x00000090 S1 : 0x00000001 A0 : 0x3fcd9c6c A1 : 0x3fc8c229
A2 : 0x00000001 A3 : 0x00000029 A4 : 0x00000001 A5 : 0x3fc8f000
A6 : 0x7a797877 A7 : 0x76757473 S2 : 0x00000009 S3 : 0x3fcd9d77
S4 : 0x3fc8c228 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x00000000
MHARTID : 0x00000000
Stack memory:
3fcd9c30: 0xa5a5a5a5 0xa5a5a5a5 0x3c053ea4 0x4038a7c2 0x3fc8cac8 0x3c053ea4 0x3fc8caac 0x3c053f51
3fcd9c50: 0x3fc8cad8 0x3fcd9c64 0x3fc8cadc 0x3c05436c 0x3fc8c228 0x32383331 0xa5a5a500 0x65737361
3fcd9c70: 0x66207472 0x656c6961 0x78203a64 0x75657551 0x63655265 0x65766965 0x65757120 0x632e6575
3fcd9c90: 0x3833313a 0x28282032 0x51787020 0x65756575 0x00292920 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fcd9cb0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fcd9cd0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fcd9cf0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fcd9d10: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fcd9d30: 0xa5a5a5a5 0x00000000 0x00000000 0xa5000000 0xa5a5a5a5 0xa5a5a5a5 0x00000000 0x00000000
3fcd9d50: 0x3fcd9da0 0x3fc9276c 0x3fcd9e00 0x403857a4 0xa5a5a5a5 0x00001800 0x3fc8fe28 0xffffffff
3fcd9d70: 0xa5a5a5a5 0xa5a5a5a5 0x00000000 0x00000000 0x00001800 0x0000c3a4 0x00000000 0x3fcd9de0
3fcd9d90: 0x3fcd9da0 0x3fc9276c 0x3fcd9e00 0x42006e16 0x00000000 0x00000000 0x00000000 0x00000000
3fcd9db0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcd9dd0: 0x00000000 0x3fc9276c 0x3fcd9e00 0x42006e04 0x00000000 0x00000000 0x00000000 0x00000000
3fcd9df0: 0x00000000 0x00000000 0x00000000 0x40387972 0x00000000 0x00000000 0x00000000 0x00000000
3fcd9e10: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fcd9e30: 0x00005229 0x3fcc0014 0x3fcc0014 0x4d301d30 0x4c9b6ff8 0xc3749d14 0xc34f8041 0xb84c5001
3fcd9e50: 0x390a6122 0x4998192f 0x15197d7a 0xe2effb75 0xf96b9ed2 0xec4f2b84 0x28cce073 0x6d127f29
3fcd9e70: 0x9850344b 0x66bf8451 0x937db196 0xdf7c4a0a 0xffd7b193 0x4ebc76c9 0x0b14e8a5 0x9220696b
3fcd9e90: 0xb50831c1 0x68d7500f 0x0e5a1fb8 0xbb8cc573 0x63f1fd86 0x749cd2da 0x14ac6d27 0x0e911819
3fcd9eb0: 0x7f3a72b7 0xe31102e3 0xd46488c3 0x2611d5c6 0xf4be1f75 0x0c9f33bf 0x2618de03 0x513f1610
3fcd9ed0: 0x01004e29 0xf8a7db09 0x1768a830 0x156b54ec 0xa36b2235 0xb1f5aee9 0xe412525a 0xe4cffc8b
3fcd9ef0: 0xf740cd63 0x892af00c 0xaf16b013 0xc981d961 0x740dec5f 0x819713c4 0xb9e4e346 0x2b174812
3fcd9f10: 0x48d8a747 0x4067e9a4 0x89aec892 0xfe2c8d92 0x1d8087ff 0xa1993662 0xf637799d 0x9069d01b
3fcd9f30: 0x164df386 0x5821cd40 0x810aafa5 0x9d67bdd2 0xba3b5fab 0x09a1a1be 0x14aac184 0x7061ad24
3fcd9f50: 0x8b4146ce 0xe9d5e975 0x02b2c721 0x975442f1 0xdbf66fda 0x17e8d155 0x9265c9f9 0x56a96a07
3fcd9f70: 0x37a98142 0x442a1d25 0x5f1fb2a6 0x5edae9af 0x9145870a 0x28764d5c 0xac34e653 0x96012c24
3fcd9f90: 0x111f7b5b 0x28a9c41c 0x0514d16d 0x733131ff 0xfb2392f3 0x9943b213 0xf9d70aef 0xfb73c685
3fcd9fb0: 0x3336723a 0x89011d61 0x3c4676fb 0x99699112 0x0354ae17 0x98c00e0f 0xa701273e 0x2c723910
3fcd9fd0: 0xd61e069a 0x9046ba39 0x4f0bcea0 0x9daf1fc7 0x44f73f0d 0xc6df6a7b 0x10514aca 0x83b14240
3fcd9ff0: 0x7a187033 0x90da6c24 0xb33902a0 0xa26e70fe 0xb7f41ef9 0x469f3531 0xbb8eec7d 0x32460344
3fcda010: 0xd08b59d3 0x3feac426 0xd05ecc76 0xe6db8cdb 0x8aefaca0 0x7a75102c 0xb2f4444c 0x68128e65
ELF file SHA256: 6955d66deeac1e50
ELF file SHA256: 6955d66deeac1e50
Rebooting...
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x4038069e
0x4038069e: esp_restart_noos_dig at C:/Users/Intel/esp/esp-idf/components/esp_system/esp_system.c:44 (discriminator 1)
ESP32-C3 keep restarting with assert failed: xQueueReceive queue.c:1382 (( pxQueue ))
-
- Posts: 1
- Joined: Wed Oct 26, 2022 4:04 am
-
- Posts: 2
- Joined: Fri Jul 26, 2024 12:29 pm
Re: ESP32-C3 keep restarting with assert failed: xQueueReceive queue.c:1382 (( pxQueue ))
Did you get any solution? I am facing the same issue. I have posted the same question.
viewtopic.php?f=2&t=41080&hilit=assert+ ... eive+queue
If you have the answer please suggest it to me
thanks
viewtopic.php?f=2&t=41080&hilit=assert+ ... eive+queue
If you have the answer please suggest it to me
thanks
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-C3 keep restarting with assert failed: xQueueReceive queue.c:1382 (( pxQueue ))
That probably fails as it tries to allocate a contiguous RAM buffer of at least 256K. See if the return value of xQueuCreate is NULL to be sure.
Who is online
Users browsing this forum: ESP_Sprite and 191 guests