You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Reading Exception Information

ESP.getResetReason()


ESP.getResetInfo()


ESP.getFreeSketchSpace()


ESP.getFreeHeap()

Simulating Fatal Exceptions



Exceptions

EXC-CAUSE CODECAUSE NAMECAUSE DESCRIPTIONREQUIRED OPTIONEXC-VADDR LOADED
0IllegalInstructionCauseIllegal instructionExceptionNo
1SyscallCauseSYSCALL instructionExceptionNo
2InstructionFetchErrorCauseProcessor internal physical address or data error during instruction fetchExceptionYes
3LoadStoreErrorCauseProcessor internal physical address or data error during load or storeExceptionYes
4Level1InterruptCauseLevel-1 interrupt as indicated by set level-1 bits in the INTERRUPT registerInterruptNo
5AllocaCauseMOVSP instruction, if caller�s registers are not in the register fileWindowed RegisterNo
6IntegerDivideByZeroCauseQUOS, QUOU, REMS, or REMU divisor operand is zero32-bit Integer DivideNo
7Reserved for Tensilica


8PrivilegedCauseAttempt to execute a privileged operation when CRING ? 0MMUNo
9LoadStoreAlignmentCauseLoad or store to an unaligned addressUnaligned ExceptionYes
10..11Reserved for Tensilica


12InstrPIFDataErrorCausePIF data error during instruction fetchProcessor InterfaceYes
13LoadStorePIFDataErrorCauseSynchronous PIF data error during LoadStore accessProcessor InterfaceYes
14InstrPIFAddrErrorCausePIF address error during instruction fetchProcessor InterfaceYes
15LoadStorePIFAddrErrorCauseSynchronous PIF address error during LoadStore accessProcessor InterfaceYes
16InstTLBMissCauseError during Instruction TLB refillMMUYes
17InstTLBMultiHitCauseMultiple instruction TLB entries matchedMMUYes
18InstFetchPrivilegeCauseAn instruction fetch referenced a virtual address at a ring level less than CRINGMMUYes
19Reserved for Tensilica


20InstFetchProhibitedCauseAn instruction fetch referenced a page mapped with an attribute that does not permit instruction fetchRegion Protection or MMUYes
21..23Reserved for Tensilica


24LoadStoreTLBMissCauseError during TLB refill for a load or storeMMUYes
25LoadStoreTLBMultiHitCauseMultiple TLB entries matched for a load or storeMMUYes
26LoadStorePrivilegeCauseA load or store referenced a virtual address at a ring level less than CRINGMMUYes
27Reserved for Tensilica


28LoadProhibitedCauseA load referenced a page mapped with an attribute that does not permit loadsRegion Protection or MMUYes
29StoreProhibitedCauseA store referenced a page mapped with an attribute that does not permit storesRegion Protection or MMUYes
30..31Reserved for Tensilica


32..39CoprocessornDisabledCoprocessor n instruction when cpn disabled. n varies 0..7 as the cause varies 32..39CoprocessorNo
40..63Reserved

Beerfridge Exception

resetInfoFatal exception:4 flag:3 (SOFT_WDT) epc1:0x4000dd11 epc2:0x00000000 epc3:0x00000000 excvaddr:0x00000000 depc:0x00000000
resetReasonSoftware Watchdog



Reference

ReferenceURL
ESP8266 Fatal exception and Wdt Resethttps://circuits4you.com/2017/12/19/esp8266-fatal-exception-wdt-reset/


  • No labels