1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

B4R Question Arduino restart

Discussion in 'B4R Questions' started by orpailleur, May 8, 2019.

  1. orpailleur

    orpailleur Member Licensed User

    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
    Best regards
  2. thetahsk

    thetahsk Active Member Licensed User

    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 ?

    Sub Process_Globals
    Public Serial1 As Serial
    Private Timer1 As Timer
    End Sub

    Private Sub AppStart
        Timer1.Enabled = 
    End Sub

    Private Sub Timer1_Tick
    Dim bState As Boolean = True
    Log("State: ", bState)
    Log("State: "Not(bState))
    End Sub
  3. tigrot

    tigrot Well-Known Member Licensed User

    After connection arduino restarts, as far as I remember, so the issue is somewhere else. You should see the logs from the beginning
  4. Mostez

    Mostez Active Member

    Not all programs make arduino restart after connection, I've developed many .NET applications for arduino and they don't make arduino restart. Hyper terminal makes arduino restart after connection.
  5. tigrot

    tigrot Well-Known Member Licensed User

    He is talking about debug window, probably from B4R Editor GUI. It restarts the sketch for sure.
  6. kolbe

    kolbe Active Member Licensed User

    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.
  7. Erel

    Erel Administrator Staff Member Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice