Page 1 of 1

Initial Crash on first UART data being sent with screen, but only on first flash.

Posted: Thu May 07, 2020 7:45 am
by AgentSmithers
Hi Everyone!
Anyone else have this issue after flashing and sending one char of UART data causing the issue below, After I flash my chip and it crashes, after I reset it manually it works fine, no issues at all, but the moment I flash it for the first time it crashes on data input. Anyone know the cause?

Fatal exception 0(IllegalInstructionCause):
epc1=0x40100014, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x0�000000
ets Jan 8 2013,rst cause:2, boot mode:(1,7)


ets Jan 8 2013,rst cause:4, boot mode:(1,7)

wdt reset

Re: Initial Crash on first UART data being sent with screen, but only on first flash.

Posted: Sun May 24, 2020 3:05 am
by st0ff3r
I also get this Fatal exception 0(IllegalInstructionCause):
epc1=0x40100014, epc2=0x00000000, epc3=0x00000000, excvaddr=0x4010b128, depc=0x00000000<FE>

I think its related to my use of GPIO interrupt. Do you use any interrupts? Not sure if it only happens first time after flash. That could indicate that the flash process is done for wrong flash size?

What about comparing the output of reading the hole flash before and after?

Re: Initial Crash on first UART data being sent with screen, but only on first flash.

Posted: Mon Jul 20, 2020 3:25 pm
by AgentSmithers
Sorry, Been busy with other projects and the whole end of the world thing going on ;)
Anyhow, back to work...
Yeah, I'm unsure but I don't recall using any interrupts in my project even though its quite extensive now. I do use Deep sleep if you consider that. It almost seems like I'm sending a keystroke via terminal (I use screen in Cent OS), and it triggers a bad address.
I'm going to get some time in the next few weeks (School in the way) and I'll give a few of these things a try.
Thanks for chiming in!