8000 Calling Serial.begin() more than once causes wdt. · Issue #2305 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content
Calling Serial.begin() more than once causes wdt.  #2305
Closed
@sticilface

Description

@sticilface

Basic Infos

Since introduction of f8a8a2a changing serial speed by calling Serial.Begin again causes a wdt reset. reproducible using the same serial speed. see below.

Hardware

Hardware: ESP-12
Core Version: git head

Description

see above

Settings in IDE

Module: Generic ESP8266 Module?
Flash Size: 4MB
CPU Frequency: 160Mhz?
Flash Mode: qio?
Flash Frequency: 80Mhz?
Upload Using: Both
Reset Method: nodemcu

Sketch

bool triggered = false; 
void setup() {
  Serial.begin(115200);
  Serial.println("BEGIN 115200"); 
}

// the loop routine runs over and over again forever:
void loop() {
  Serial.printf("Working...\n");
  delay(500);        

  if (!triggered && millis() > 5000) {
    triggered = true;
    Serial.println("Changing Serial Speed");
    Serial.flush(); 
    Serial.begin(115200);  
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0