We are not able to use RX and TX pin as INPUT after when we used UART2 means Serial2 begin.
In brief my program code flow as below:
Code: Select all
#define RX2_PIN 25
#define TX2_PIN 26
Serial2.begin(MODBUS_BAUDRATE, SERIAL_8N1, RX2_PIN, TX2_PIN);
// read data from Serial2
// once completed
Serial2.flush();
Serial2.end();
pinMode(RX2_PIN, INPUT);
pinMode(TX2_PIN, INPUT);
hardware get restart Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)
Any help and sugestion it would be most appreciate...!!!!