So if we use bigger value is it affects stack issue.
bacause I am using 7 to 8 tasks may it affects on other tasks.
So if we use bigger value is it affects stack issue.
If stack size is less then esp gives "stack overflow" error. but it is not giving that onefivdiAtESP32 wrote: ↑Thu Dec 27, 2018 2:12 pmIt will only change the main task stack size.
When the other 7 or 8 tasks are created the stack size is specified directly in the call to create those tasks.
Maybe the issue is being caused because the stacks for the other tasks are not big enough.
burkulesomesh43 wrote: ↑Thu Dec 27, 2018 3:00 pmIf stack size is less then esp gives "stack overflow" error. but it is not giving that onefivdiAtESP32 wrote: ↑Thu Dec 27, 2018 2:12 pmIt will only change the main task stack size.
When the other 7 or 8 tasks are created the stack size is specified directly in the call to create those tasks.
Maybe the issue is being caused because the stacks for the other tasks are not big enough.
Hey,fivdiAtESP32 wrote: ↑Thu Dec 27, 2018 3:17 pmburkulesomesh43 wrote: ↑Thu Dec 27, 2018 3:00 pmIf stack size is less then esp gives "stack overflow" error. but it is not giving that onefivdiAtESP32 wrote: ↑Thu Dec 27, 2018 2:12 pmIt will only change the main task stack size.
When the other 7 or 8 tasks are created the stack size is specified directly in the call to create those tasks.
Maybe the issue is being caused because the stacks for the other tasks are not big enough.
Sometime it will display a stack overflow error but sometimes it won't. For example, the code posted above results in the stack overflowing. However, the error message doesn't indicate that there is a stack overflow. It says:
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
...
Code: Select all
void extract_between(const char *str, char saveStr[] , const char *p1, const char *p2)
{
const char *i1 = strstr(str, p1);
if(i1 != NULL)
{
const size_t pl1 = strlen(p1);
const char *i2 = strstr(i1 + pl1, p2);
if(p2 != NULL)
{
const size_t mlen = i2 - (i1 + pl1);
memcpy(saveStr, i1 + pl1, mlen);
saveStr[mlen] = '\0';
}
}
else {
saveStr[0] = '0';
saveStr[1] = '\0';
}
}
Code: Select all
if(p2 != NULL)
Code: Select all
if(i2 != NULL)
it returns NULL not "0".fivdiAtESP32 wrote: ↑Thu Dec 27, 2018 6:54 pmIt looks like there's a typo.
Replace:with:Code: Select all
if(p2 != NULL)
to see if it works.Code: Select all
if(i2 != NULL)
It works,fivdiAtESP32 wrote: ↑Fri Dec 28, 2018 8:17 amDid you make the change that was suggested here to your code? I'm fairly sure that if this change is made there will be no "guru meditation errors".
Users browsing this forum: Baidu [Spider] and 153 guests