Unable to use RX and TX pin as INPUT after UART2 using
Posted: Tue Aug 24, 2021 4:32 am
Hello to all,
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:
When we again call Serial2.begin(MODBUS_BAUDRATE, SERIAL_8N1, RX2_PIN, TX2_PIN); to read data from Serial2 then
hardware get restart Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)
Any help and sugestion it would be most appreciate...!!!!
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...!!!!