ESP8266 Developer Zone The Official ESP8266 Forum 2016-05-16T14:55:08+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2035 2016-05-16T14:55:08+08:00 2016-05-16T14:55:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2035&p=6916#p6916 <![CDATA[Re: ]Fatal exception 0(IllegalInstructionCause)]]>
1. Which hardware module are you using ? Are you using the ESP-Launcher?
2. Please have a try with the attachment libs based on ESP8266_NONOS_SDK_V1.5.3.

If your problem is still unsolved, please provide your logs and test code, we will help debug it.

Thanks for your interest in ESP8266 !
lib_dbg_flash_erase1.zip

Statistics: Posted by ESP_Faye — Mon May 16, 2016 2:55 pm


]]>
2016-05-15T05:26:08+08:00 2016-05-15T05:26:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2035&p=6902#p6902 <![CDATA[Re: ]Fatal exception 0(IllegalInstructionCause)]]> Statistics: Posted by gailu — Sun May 15, 2016 5:26 am


]]>
2016-05-12T15:01:10+08:00 2016-05-12T15:01:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2035&p=6850#p6850 <![CDATA[Re: ]Fatal exception 0(IllegalInstructionCause)]]>

Value of SWITCH_STATUS_SECTOR 120.

When the exception happened, the SWITCH_STATUS_SECTOR is 120 ?
Sector 120 is located to 480KByte address, will it break your firmware ?

Statistics: Posted by ESP_Faye — Thu May 12, 2016 3:01 pm


]]>
2016-05-10T18:38:54+08:00 2016-05-10T18:38:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2035&p=6801#p6801 <![CDATA[Re: ]Fatal exception 0(IllegalInstructionCause)]]>
Value of SWITCH_STATUS_SECTOR 120. Can you please let me know what this value is related to IllegalInstructionCause.

I would like to provide you more input that this does happen only when we try to do very frequent erase and write, if we do slowly we do not see this Fatal Exception.

Statistics: Posted by gailu — Tue May 10, 2016 6:38 pm


]]>
2016-04-18T20:52:04+08:00 2016-04-18T20:52:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2035&p=6518#p6518 <![CDATA[Re: ]Fatal exception 0(IllegalInstructionCause)]]>
You can print the "SWITCH_STATUS_SECTOR" to debug it.

Code:

if(SPI_FLASH_RESULT_OK != spi_flash_erase_sector(SWITCH_STATUS_SECTOR))

Statistics: Posted by ESP_Faye — Mon Apr 18, 2016 8:52 pm


]]>
2016-04-15T03:45:20+08:00 2016-04-15T03:45:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2035&p=6469#p6469 <![CDATA[]Fatal exception 0(IllegalInstructionCause)]]>
I am getting Fatal Exception quite often so can not use code in production. Looking forward to your help. This seems to be happening during spi_flash_erase_sector()

Fatal Exception Details

Fatal exception 0(IllegalInstructionCause):
epc1=0x40205f8a, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000


Checked address in (epc1=0x40205f8a) in .s file and instruction is beqz.n at this address

Code:

40205f82:   3109         s32i.n   a0, a1, 12
    if(SPI_FLASH_RESULT_OK != spi_flash_erase_sector(SWITCH_STATUS_SECTOR))
40205f84:   f40901           l32r   a0, 40202fa8 <system_get_checksum+0x34>
40205f87:   0000c0           callx0   a0
40205f8a:   328c         beqz.n   a2, 40205f91 <write_switchstatus_sector+0x19>
    {
        LOG(("ERROR: %s:%d\r\n",__FILE__,__LINE__));
        return ERROR;   
40205f8c:   f27c         movi.n   a2, -1
40205f8e:   000946           j   40205fb7 <write_switchstatus_sector+0x3f>
    }

Statistics: Posted by gailu — Fri Apr 15, 2016 3:45 am


]]>