xQueueReceive Assert Failed

Lancsrick
Posts: 30
Joined: Mon Apr 10, 2023 5:48 pm

Re: xQueueReceive Assert Failed

Postby Lancsrick » Mon Jul 17, 2023 11:33 am

Nevermind, turned out I only needed to edit two lines in my platform.io to get that. Hurray for being able to google whilst waiting for the kettle to boil!

Code: Select all

Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x400d9daa  PS      : 0x00060c30  A0      : 0x800d61b4  A1      : 0x3ffb4700  
=> 0x400d9daa: _vfprintf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:918
A2      : 0x00000000  A3      : 0x00000000  A4      : 0x00000000  A5      : 0x00000000
A6      : 0x3ffb4a20  A7      : 0x00000004  A8      : 0x3ffaeb58  A9      : 0x3ffaeb58
A10     : 0x3ffaecec  A11     : 0x3ffb4710  A12     : 0x000000ff  A13     : 0x0000ff00
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x0000001b  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xffffffff  
=> 0x400014fd: ?? ??:0
=> 0x4000150d: ?? ??:0


Backtrace: 0x400d9da7:0x3ffb4700 0x400d61b1:0x3ffb4a10 0x400d0c8f:0x3ffb4a60 0x400e52ff:0x3ffb4a80 0x400880bd:0x3ffb4aa0
=> 0x400d9da7: _vfprintf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:918
=> 0x400d61b1: printf at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/printf.c:56 (discriminator 5)
=> 0x400d0c8f: app_main at src/main.c:174
=> 0x400e52ff: main_task at C:\Users\rickj\.platformio\packages\framework-espidf\components\freertos\port/port_common.c:141 (discriminator 2)
=> 0x400880bd: vPortTaskWrapper at C:\Users\rickj\.platformio\packages\framework-espidf\components\freertos\port\xtensa/port.c:142

Thanks again

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: xQueueReceive Assert Failed

Postby ESP_Dazz » Mon Jul 17, 2023 11:38 am

Code: Select all

printf(queue_time_1);
This should be the issue. You can't do that in C is an "int" type and not a character or string. Use string formatting plcaeholders such as "%d" instead.

Lancsrick
Posts: 30
Joined: Mon Apr 10, 2023 5:48 pm

Re: xQueueReceive Assert Failed

Postby Lancsrick » Mon Jul 17, 2023 1:21 pm

Fab, up and running, something so simple! Thanks for the help tracking it down.

Who is online

Users browsing this forum: Bing [Bot] and 213 guests