Skip to content

Bug report - Watch Dog error on ESP8266 after full erase #257

@AlbertHoevenaars

Description

@AlbertHoevenaars

I am using an ESP8266 processor which is connected to a W25Q128 flash device. According to the datasheet
a chip erase will take between 40 and 200 seconds. When the processor executes a eraseChip command it starts checking if this erase is finished. This is done in the eraseChip command of the SPIMemory library. But this will give a WDT (Watch Dog error) of the processor.
I am using the latetst version of the SPIMemory library.
Is there a way to overcome this error?

When I feed the dump that I see in the Arduino IDE to the Exception decoder I get:

Exception 4: Level1Interrupt: Level-1 interrupt as indicated by set level-1 bits in the INTERRUPT register
PC: 0x4021549e: is in SPIClass::transfer(unsigned char) (C:\Users\Albert\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\SPI\SPI.cpp:314).
EXCVADDR: 0x00000000

Decoding stack results
0x40214800: is in SPIFlash::_beginSPI(unsigned char) (c:\Users\Albert\Documents\Arduino\libraries\SPIMemory\src\SPIFlashIO.cpp:228).
0x40214830: SPIFlash::_readStat1() at c:\Users\Albert\Documents\Arduino\libraries\SPIMemory\src\SPIFlashIO.cpp:334

DO NOT DELETE OR EDIT anything below this

Note 1: Make sure to add all the information needed to understand the bug so that someone can help. If any essential information is missing we'll add the 'Needs more information' label and close the issue until there is enough information.

Note 2: For support questions (for example, tutorials on how to use the library), please use the Arduino Forums. This repository's issues are reserved for feature requests and bug reports.


GitHub issue state GitHub issue title GitHub issue author GitHub issue label GitHub issue comments GitHub issue age GitHub issue last update

Metadata

Metadata

Assignees

Labels

possible bugPossibly a bug. Needs verification before moving to *bug* status.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions