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
Serial2.Mode Crashes system
- Electroguard
- Posts: 836
- Joined: Mon Feb 08, 2021 6:22 pm
- Has thanked: 268 times
- Been thanked: 317 times
Re: Serial2.Mode Crashes system
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.
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.
-
- Posts: 3
- Joined: Sun Aug 29, 2021 8:02 pm
Re: Serial2.Mode Crashes system
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.
Anyway, thanks for the reply.