esp8266 / esp8266/Arduino

Watchdog triggered with Adafruit_ST7735 library

Open
#8,171 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
16.7k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

### Basic Infos

- [x] This issue complies with the [issue POLICY doc](https://github.com/esp8266/Arduino/blob/master/POLICY.md).
- [x] I have read the documentation at [readthedocs](https://arduino-esp8266.readthedocs.io/en/latest) and the issue is not addressed there.
- [x] I have tested that the issue is present in current master branch (aka latest git).
- [x] I have searched the issue tracker for a similar issue.
- [x] If there is a stack dump, I have decoded it.
- [x] I have filled out all fields below.

#### Platform

- Hardware: [ESP-12]
- Core Version: [3.0.0]
- Development Env: [Arduino IDE]
- Operating System: [Windows]

### Settings in IDE

- Module: [Nodemcu 1.0 (ESP12-E Module)]
- Flash Mode: [Arduino IDE board manager default (couldn't find the information)]
- Flash Size: [4MB]
- lwip Variant: [v2 Lower Memory]
- Reset Method: [nodemcu]
- Flash Frequency: [40Mhz]
- CPU Frequency: [80Mhz]
- Upload Using: [SERIAL]
- Upload Speed: [115200] (serial upload only)

### Problem Description

Soft WDT is triggered when using the Adafruit ST7735 and ST7789 Library (1.7.3, latest available on library manager) when using core 3.0.0
With core 2.7.4 it works fine.

Using a ST7735 display.

Decoding stack results:
```
0x40202f4d: Adafruit_SPITFT::writeColor(unsigned short, unsigned int) at C:\Users\Vinicius\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp line 1333
0x40202d29: Adafruit_SPITFT::writeCommand(unsigned char) at C:\Users\Vinicius\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp line 2093
0x40202fcd: Adafruit_SPITFT::writeFillRectPreclipped(short, short, short, short, unsigned short) at C:\Users\Vinicius\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp line 1566
0x40203225: Adafruit_SPITFT::fillRect(short, short, short, short, unsigned short) at C:\Users\Vinicius\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp line 1650
0x40207b1e: Adafruit_GFX::fillScreen(unsigned short) at C:\Users\Vinicius\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp line 317
0x40201313: tftPrintTest() at C:\Users\Vinicius\Documents\Arduino\libraries\Adafruit_GFX_Library/Adafruit_GFX.h line 141
0x40205739: __delay(unsigned long) at C:\Users\Vinicius\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\cores\esp8266\core_esp8266_wiring.cpp line 55
0x4020191d: setup() at C:\Users\Vinicius\AppData\Local\Temp\arduino_modified_sketch_657864/graphicstest.ino line 130
0x40204e98: loop_wrapper() at C:\Users\Vinicius\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\cores\esp8266\core_esp8266_main.cpp line 198
```

### [MCVE](https://stackoverflow.com/help/mcve) Sketch

graphicstest example from the Adafruit ST7735 and ST7789 Library using this call:
```cpp
// For ST7735-based displays, we will use this call
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
```
### Debug Messages

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

load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v000487e0
~ld

SDK:2.2.2-dev(38a443e)/Core:3.0.0=30000000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-48-g7421258/BearSSL:c0b69df

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.