I am getting _yield panics, and cannot for the life of me figure out why
I do not have an MCVE yet, still trying to make one smaller...
Hope someone can help, not sure what this is doing
bool ICACHE_RAM_ATTR cont_can_yield(cont_t* cont) {
return !ETS_INTR_WITHINISR() &&
cont->pc_ret != 0 && cont->pc_yield == 0;
}
Afaik , this is not in an ISR

@tablatronix Are you calling Adafruit_SPITFT::writeColor() from an ISR or a callback ?
Nope, afaik there is no isr or callbacks in this code at all
Exception Cause: Not found
0x40206d19: yield at ??:?
0x40208d00: Adafruit_SPITFT::writeColor(unsigned short, unsigned int) at ??:?
0x40209bcb: SPIClass::beginTransaction(SPISettings) at ??:?
0x40208e09: Adafruit_SPITFT::writeFillRectPreclipped(short, short, short, short, unsigned short) at ??:?
0x402090bd: Adafruit_SPITFT::fillRect(short, short, short, short, unsigned short) at ??:?
0x402060c5: Print::write(char const*) at ??:?
0x40209f11: Adafruit_GFX::fillScreen(unsigned short) at ??:?
0x4020326f: ShowMenu() at ??:?
0x40104ee8: ets_timer_arm_new at ??:?
0x402074bc: delay at ??:?
0x402074d2: delay at ??:?
0x40203773: setup at ??:?
0x40206cd0: loop_wrapper() at core_esp8266_main.cpp:?
0x401007d5: cont_wrapper at ??:?
0x401000c0: app_entry at ??:?
0x4010f000: ?? ??:0
0x4010f15c: ?? ??:0
0x4000044c: ?? ??:0
0x40000000: ?? ??:0
0x40000010: ?? ??:0
0x40000020: ?? ??:0
0x40000030: ?? ??:0
0x40000040: ?? ??:0
It does act strange though, as if there is, sometimes delays() do not work, and loop stops after one loop and I get hardware wdt, I am at a complete loss atm
What is ets_timer_arm_new ? I only see it in si2c.h but I am not using twi..
ets_timer_arm_new() is used by delay()
Any chance to see the code or having more details on when the gfx function is called ?
trying to make a reproducible sample
last thing is a display.println("something");
going to condense to static code and see what happens
is there a way to test ETS_INTR_WITHINISR in user code?
or what cont->pc_ret and pc_yield are ?
cont_can_yield() will tell
@tablatronix at least one stability issue that could be relevant has been fixed in the meantime. Is this issue still reproducible?
I can test again and close
ping
Will give it a spin soon
reping
Heh I have been trying to find the sketch I was using lol.
Ok, closing due to lack of feedback in several months.