assertion "res == coreID || res == portMUX_FREE_VAL" failed

Zeni241
Posts: 86
Joined: Tue Nov 20, 2018 4:28 am

assertion "res == coreID || res == portMUX_FREE_VAL" failed

Postby Zeni241 » Fri Feb 08, 2019 1:41 pm

In my code, I start softAP, collect user SSID and password, and use it to connect the wifi in station mode.
As I am near to connect to wifi I get this error just before getting IP.

Code: Select all

.
.
.
.

I (23855) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (24695) wifi: state: init -> auth (b0)
I (24695) wifi: state: auth -> assoc (0)
I (24705) wifi: state: assoc -> run (10)
I (24735) wifi: connected with MySSID, channel 1
I (24735) wifi: pm start, type: 1

assertion "res == coreID || res == portMUX_FREE_VAL" failed: file "C:\users\xxxxx\.platformio\packages\framework-espidf\components\freertos\portmux_impl.inc.h", line 105, function: vPortCPUAcquireMutexIntsDisabledInternal
abort() was called at PC 0x40123c87 on core 0
I saw line 105 in which state:

Code: Select all

assert(res == coreID || res == portMUX_FREE_VAL); /* any other value implies memory corruption or uninitialized mux */
	assert((res == portMUX_FREE_VAL) == (mux->count == 0)); /* we're first to lock iff count is zero */
    assert(mux->count < 0xFF); /* Bad count value implies memory corruption */
Problem is I don't know what this mean, less alone solve it. :shock: :o
Last edited by Zeni241 on Fri Feb 08, 2019 1:52 pm, edited 1 time in total.

ESP_Mahavir
Posts: 190
Joined: Wed Jan 24, 2018 6:51 am

Re: assertion "res == coreID || res == portMUX_FREE_VAL" failed

Postby ESP_Mahavir » Fri Feb 08, 2019 1:51 pm

Memory corruption could be one of the reason which can result in this scenario. Is it possible to share application code?

Who is online

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