After running B4R on my pc, i go to log Windows, and click Connect for displaying the messages from the arduino board. In this case the arduino program restart, why ?i wish looking for the messages arduino send, not restarting the arduino
We need more information about your code,hardware,Arduino-Version, etc.
How does your MCU behave when you have this minimal sketch with only a log output ?
Public Serial1 As Serial
Private Timer1 As Timer
Private Sub AppStart
Timer1.Enabled = True
Private Sub Timer1_Tick
Dim bState As Boolean = True
Log("State: ", bState)
Log("State: ", Not(bState))
I believe this is a hardware thing. A Pro Mini will restart every time you reconnect. The ESP32 doesn't do this. In the past I just keep the Pro Mini connected to catch a log I need. Use something like PuTTy to write to file or capture long periods of logs. I've done this before on occasion.