Skip to content

Using the latest version, the espsoftserial library restarts after accepting data #4850

Closed
@rousir

Description

@rousir

hi,Master,...
Using the latest version, esp restart after the espsoftserial library rx accepts data, use v2.4.1, 2.3.0 version is normal, esp8266 will not restart

Basic Infos

  • [x ] This issue complies with the issue POLICY doc.
  • [ x] I have read the documentation at readthedocs 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: ESP8285 device
  • Core Version: latest version >2.4.1
  • Development Env: Arduino IDE 1.85
  • Operating System: Windows

Settings in IDE

  • Module: Generic ESP8285 Module
  • Flash Mode: dio
  • Flash Size: 1MB
  • lwip Variant: v2 Lower Memory
  • Reset Method: nodemcu
  • Flash Frequency: 40Mhz
  • CPU Frequency: 80Mhz

Problem Description

Using the latest version, esp restart after the espsoftserial library rx accepts data, use v2.4.1, 2.3.0 version is normal, esp8266 will not restart

Basic Infos

#include <SoftwareSerial.h>

#define BAUD_RATE 115200

SoftwareSerial swSer(14, 12, false, 256);

void setup() {
  Serial.begin(BAUD_RATE);
  swSer.begin(BAUD_RATE);

  Serial.println("\nSoftware serial test started");

  for (char ch = ' '; ch <= 'z'; ch++) {
    swSer.write(ch);
  }
  swSer.println("");

}

void loop() {
  while (swSer.available() > 0) {
    Serial.write(swSer.read());
    yield();
  }
  while (Serial.available() > 0) {
    swSer.write(Serial.read());
    yield();
  }

}

Debug Messages

Exception (28):
epc1=0x4010684d epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3ffffc70 end: 3fffffd0 offset: 01a0

>>>stack>>>
3ffffe10:  feefeffe feefeffe feefeffe feefeffe  
3ffffe20:  0000000c 00000000 00000020 4010449e  
3ffffe30:  3ffe980c 40103dd3 04000000 4010449e  
3ffffe40:  00000001 00000004 40202768 00000000  
3ffffe50:  00000000 00000000 00000000 40105516  
3ffffe60:  40106802 00000000 0000001f 40101081  
3ffffe70:  c0037025 feefeffe 00000000 4000050c  
3ffffe80:  00000000 00000000 0000001f 00000022  
3ffffe90:  3fffc200 401067c8 3fffc258 4000050c  
3ffffea0:  4020279a 00000030 00000011 ffffffff  
3ffffeb0:  40202765 00000000 00000000 00000000  
3ffffec0:  00000000 00000000 00000000 fffffffe  
3ffffed0:  ffffffff 3fffc6fc 00000001 3ffee79c  
3ffffee0:  3ffee9a0 3fffdad0 3ffeeb64 00000030  
3ffffef0:  00000000 3fffdad0 3ffeeb64 00000030  
3fffff00:  ffffffff 3fffc6fc 00000001 3ffe85d8  
3fffff10:  00000000 3fffdad0 3ffeeb64 00000030  
3fffff20:  40106b1e feefeffe feefeffe feefeffe  
3fffff30:  feefeffe feefeffe feefeffe 40201b20  
3fffff40:  402020cd 00000008 00000001 40201140  
3fffff50:  4020239c 3ffef72c 3ffef6fc 402022fa  
3fffff60:  0001c200 0000001c 00000003 3ffef714  
3fffff70:  feefeffe feefeffe 3ffeeb38 3ffeeb64  
3fffff80:  3fffdad0 00000001 3ffeeb38 40202cdc  
3fffff90:  0001c200 0000001c 00000000 feefeffe  
3fffffa0:  00000000 00000000 3ffeeb5c 402027e4  
3fffffb0:  3fffdad0 00000000 3ffeeb5c 402030d8  
3fffffc0:  feefeffe feefeffe 3ffe85d8 40100739  
<<<stack<<<

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

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v00000000
~ld

Thinks

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions