On a P2 I am using Serial1 to drive/interface with a Nextion display. If I build a working rig with 6.5.0 or 6.6.0 the application hangs when it gets to calling Serial1.begin(9600); Is there a known reason for this regression?
Are you able to isolate a test case that can reproduce this without your hardware?
I created a simple application on the Photon 2 and this proceeds normally with Device OS 6.6.0:
#include "Particle.h"
SYSTEM_MODE(AUTOMATIC);
#ifndef SYSTEM_VERSION_v620
SYSTEM_THREAD(ENABLED); // System thread defaults to on in 6.2.0 and later and this line is not required
#endif
SerialLogHandler logHandler(LOG_LEVEL_INFO);
void setup()
{
Serial1.begin(9600);
waitFor(Serial.isConnected, 8000);
delay(2000);
Log.info("completed setup");
}
void loop()
{
}
Log:
0000005761 [app] INFO: completed setup
I also tested it with a Nextion display connected to RX/TX and Serial1.begin still worked as expected.
