Page 1 of 1

Serial2.Mode Crashes system

Posted: Wed Dec 01, 2021 11:51 pm
by dpcons
Hi there,
I'm using 1.43.5. esp8666 NodeMCU board. App works great until I try to output to Serial2. I started with Serial2.Mode 9600,15,13. I've tried other unassigned pins. Same issue, system traps with exception 29 when Serial2.mode command is executed. Tried other setups such as Serial2.mode 9600,15,13,8,0,1. Am I missing some other prerequisite?

Here's a partial output I'm getting:

Program Running

Exception (29):
epc1=0x4000e1b2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000004 depc=0x00000000

>>>stack>>>

ctx: sys
sp: 3fffea10 end: 3fffffb0 offset: 01a0
3fffebb0: 00000000 3fff2e24 3fff7f7c 4025fd49
3fffebc0: 00000000 00000000 00000001 00000000

Re: Serial2.Mode Crashes system

Posted: Thu Dec 02, 2021 12:19 am
by Electroguard
Hi, have you tried using serial2 with a simple minimal test script which only does a small FOR TO loop to send a bit of text out the port ?
It could help pinpoint whether your hardware or firmware have a problem, or whether it is indigestion from what or how is being sent or received.

Re: Serial2.Mode Crashes system

Posted: Thu Dec 02, 2021 3:55 am
by dpcons
I created a test app of just 4 lines. I don't actually do i/o. It fails when the Serial2.mode command.is executed. I tried it on a wemos d1 mini and a nodemcu unit. I have several Esp32s and Esp8266 systems running but none using serial. Maybe something in my latest distribution didn't go as planned.
Anyway, thanks for the reply.