You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have developed custom ESP32 board and GUI to upload code to my board. I am using Node serial port to connect to my device. When I establish connection to my ESP32 board in my GUI and press reset button on my board, error appears on my serial monitor stating "rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2)) waiting for download". I have read similiar posts here, where making hupcl as false was suggested as solution. I tried this solution and resetting the board worked as expected, but this time I was not able to upload code to my board. When I use another IDE (for example, Thonny IDE), I can easily upload code or reset my system, so I think this problem is related to my GUI.
Could you please help me to solve this issue? Thank you in advance,
OS: Windows
const` port = new SerialPort.SerialPort( {
path: peripheral.path,
baudRate: peripheralConfig.config.baudRate,
hupcl:true,
autoOpen: false,
});
port.open(error => {
if (error) {
if (afterUpload === true) {
this.sendRemoteRequest('peripheralUnplug', null);
}
return reject(new Error(error));
}
this.peripheral = port;
this.peripheralParams = params;
// Scan COM status prevent device pulled out
this.connectStateDetectorTimer = setInterval(() => {
if (this.peripheral.isOpen === false) {
clearInterval(this.connectStateDetectorTimer);
this.disconnect();
this.sendRemoteRequest('peripheralUnplug', null);
}
}, 10);
// Only when the receiver function is set, can isopen detect that the device is pulled out
// A strange features of npm serialport package
port.on('data', rev => {
this.onMessageCallback(rev);
});
resolve();
});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have developed custom ESP32 board and GUI to upload code to my board. I am using Node serial port to connect to my device. When I establish connection to my ESP32 board in my GUI and press reset button on my board, error appears on my serial monitor stating "rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2)) waiting for download". I have read similiar posts here, where making hupcl as false was suggested as solution. I tried this solution and resetting the board worked as expected, but this time I was not able to upload code to my board. When I use another IDE (for example, Thonny IDE), I can easily upload code or reset my system, so I think this problem is related to my GUI.
Could you please help me to solve this issue? Thank you in advance,
OS: Windows
`
Beta Was this translation helpful? Give feedback.
All reactions