Closed
Description
I continue to face some strange issues with SDK 1.5. Now i am using SoftwareSerial from this repository
https://github.com/plerup/espsoftwareserial to communicate with a serial device using 9600 baud
This is the code sample. i am invoking in a loop, with 200 ms delay
void sendCmd(uint8_t *cmd, uint8_t *r) {
Serial << "write" << endl;
PM1106_swSer.write(cmd+1, cmd[0]);
Serial << "read" << endl;
delay(100);
int i =0;
for (i=0; i < 24 && PM1106_swSer.available(); i++){
*(r++) = PM1106_swSer.read();
}
Serial << endl << i << endl;
}
after several iterations (usually between 20 - 30 seconds after it started). The ESP will crash with the stack below, after dumping "read"
If happens with the latest Git, with the git few changelists after introducing SDK 1.5
With the changelist right before introducing SDK 1.5 and with the SDK 1.3 binaries it works.
Exception (0):
epc1=0x40207fc4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: sys
sp: 3ffffc60 end: 3fffffb0 offset: 01a0
>>>stack>>>
3ffffe00: 00000005 00000000 00000020 4010176e
3ffffe10: 40004371 00000030 00000016 ffffffff
3ffffe20: 60000200 00000000 3fffff00 80000000
3ffffe30: 20000000 00000000 00000000 203fc000
3ffffe40: 0000ffff 3fffc6fc 00000001 3fff32d0
3ffffe50: 000002f4 003fc000 60000600 00000030
3ffffe60: 40208004 40207fc4 3fff0550 40207ffc
3ffffe70: 402138d5 3fff02f0 3fffc258 4000050c
3ffffe80: 40000f83 00000030 00000011 ffffffff
3ffffe90: 4022911e 00000023 ffffffff fffffc1b
3ffffea0: 3ffefe28 4020efa0 00000000 bfffffff
3ffffeb0: ffffffff 3fffc6fc 00000001 3ffeef74
3ffffec0: 3ffefe50 018e531d 60000600 00000030
3ffffed0: 007c31b5 00000001 00003a98 00000001
3ffffee0: ffffffff 3fffc6fc fc70ffff 3fffdab0
3ffffef0: 00000000 3fffdcb0 3ffefe60 00000030
3fffff00: 00000000 400042db 4023e160 401056f1
3fffff10: 40004b31 3fff32d0 000002f4 003fc000
3fffff20: 401059c6 4010571e 3ffeeec0 00000000
3fffff30: 4020ea61 3ffeeec0 3ffefe50 018e531d
3fffff40: 3fff32d0 00001000 4020ef06 00000008
3fffff50: 00000000 00000000 4020efb3 3ffeef74
3fffff60: 3ffefe50 00000001 4020eec8 402016dc
3fffff70: 40229125 3ffefe50 3ffefe28 40229125
3fffff80: 4022916a 3fffdab0 00000000 3fffdcb0
3fffff90: 3ffefe70 3fffdad0 3fff0814 402081b7
3fffffa0: 40000f49 000187cc 3fffdab0 40000f49
<<<stack<<<
Metadata
Metadata
Assignees
Labels
No labels