Hey all,

I'm a relatively new user of the BELA platform and was looking to get started using a original BELA board I was gifted from a professor. I was watching the first of the BELA lectures on YouTube and initially had no problem getting into the IDE by just typing in the http://bela.local address. I got to the section of updating the board to the latest version, and I tried doing that. Got the latest master .zip off of of the "Updating Bela" section of the Knowledge Base area. While my board was in the process of updating with that .zip in the IDE, it failed. it was a couple days ago at this point and I don't remember the terminal message it gave, it didn't go through.

So I tried reconnecting the board in hopes I could just re-try the update - and since then I haven't been able to access the IDE at all. Chrome just gives me the ERR_CONNECTION_REFUSED and says bela.local refused to connect. I've also tried the IP address for windows, to no avail. (192.168.6.2)

I still see the BELABOOT (D🙂 drive in my windows file explorer though, so I do know that the board is connecting and is recognized. The blue heartbeat light and the power light are both on.

My next thought was to try running the update_board.sh script to manually update it, and maybe that would fix it, but I haven't gotten through this step yet. Since I'm on windows 10, I tried downloading cygwin as my linux terminal and running the update_board script, but I must be doing something wrong. I can open the terminal, but trying to run the script isn't working for me. I pasted the whole unzipped Bela-master file into the cygwin directory, and as you can see by the attached image

alt text

when I try to run "sh update_board" it gives me a syntax error on line 130. I can go into the file with Notepad++, but very unsure if the right thing to do is to change anything...

I'm pretty new to software still and might be making a simple error/overlooking something, to be honest the issue could be in a whole different area than the update_board.sh and I wouldn't know. Hoping I can work through it with someone much more knowledgeable than I am.

Thank you to anyone who reaches out!!!

~Matt

sorry you are having trouble. Some boards shipped with a broken IDE-based update procedure and your approach to using the script-based update almost works, but you need to use bash instead of sh:

bash update_board

or even simply

./update_board

should work. I think you should even be able to simply double click on the update_board.sh file from the file explorer (although that would depend on the file associations you set up when installing cygwin).

    total facepalm moment! It literally says you need to use a bash script to update the board in the script section of the "Updating Bela" on the website. I didn't understand the difference between sh and bash (until I looked it up after your response) and assumed they were interchangeable.

    I ran the script in the cygwin terminal with the correct syntax and it worked perfectly. typed in the URL and the IDE fired up instantly. Thank you so much giliomoro for the fast response!

    Can't wait to dive into this device now.

    10 months later

    Hi, I have a similar issue. Tried to update a bela board from late 2021 (windows 10). Using the IDE, it seemed to say update successful, then won't load the IDE. BELABOOT showing, blue heartbeat light blinking. Tried updating again using cygwin, dragging the "update_board" into terminal window. Also

    giuliomoro bash update_board

    when inside /cygdrive/c/Users/myname/Desktop/Bela-master/scripts

    Update seems to work each time, but won't load into the IDE.

      What address are you using for the IDE? Try both bela.local and 192.168.6.2 .

        giuliomoro I've tried both bela.local and 192.168.6.2. On the "updating-bela" page it says something about needing " rsync". I tried adding it with the cygwin installer after first cygwin installation, then tried again. Not sure if it worked, not familiar with this tool. I do have a linux partion installed on this computer so could try that for installing.

        You previously said

        fraktalmoth Update seems to work each time,

        What did that look like?

        You can also try to run the ./ide.sh startscript and try reconnecting to the IDE, in case it got turned off for some reason?

          giuliomoro when i tried ./ide.sh start it said something like "timed out or could not connect 192.168.6.2"

          Now I tried installing on linux partion, after updating rsync it seemed to work out (sorry I lost the install confirmation message again). Now the IDE opens but the right side buttons seems unresponsive in this browser. Main window reads:

          alt text

          So i'm not sure what went wrong when updating on windows, will try a different browser or to boot into windows again.

            Looks okay now, in Chromium everything seems to be working again.
            alt text

            fraktalmoth Now the IDE opens but the right side buttons seems unresponsive in this browser. Main window reads:

            that looks like a page that was not fully loaded (as denoted by the "Tranferring data from bela.local" at the bottom).

            fraktalmoth when i tried ./ide.sh start it said something like "timed out or could not connect 192.168.6.2"

            If I read the script correctly, it would only say that if you set the BBB_ADDRESS environment variable to 192.168.6.2, otherwise the error message should be about 192.168.7.2. Now, it you did set that BBB_ADDRESS=192.168.6.2 and it was failing, then I am wondering if it's a network configuration issue. On Windows, that's the IP at which it should be. Do you see a new network interface at all when you plug in Bela? On that interface, you computer's IP should be 192.168.6.1 and the board's is 192.168.6.2 . If that doesn't show up, then not even the update_board script should work (well, that one does try to explicitly reach 192.168.6.2 and bela.local). The puzzling thing is that a board update, whether performed through the IDE or the update_board script should not be the cause for any change in the network configuration: if anything worked before, it should keep working after, unless something changes on the host system, e.g.: are you connected to a VPN?

              giuliomoro yes you are right, when running the script it says:

              $ /cygdrive/c/Users/ilja/Desktop/Bela-master/scripts/ide.sh start --
              ssh: connect to host 192.168.7.2 port 22: Connection timed out

              I must have misremebered the adress, sorry for the confusion.

              IDE running on windows too now, if you want me to try recreating the BELA update with failed IDE on windows I could do that by trying to update again.

              Anyhow thank's for looking into this and sorry for my vague information. And no, i'm not connected to a VPN.