Running projects on boot
By default, when you power up a Bela system it boots up and waits for you to run a program (for example, by opening the IDE and clicking the Run button). But there are times when you may want a Bela system to start running a specific project when it boots up, such as when your board is embedded in a specific instrument or installation.
This article explains how to set a project to run on boot using the IDE, and using the
Table of contents
- Setting a project to run on boot: IDE
- Setting a project to run on boot: Using a script
Setting a project to run on boot: IDE
1. Access the Bela IDE
Connect your Bela system to your computer with a USB cable. When it’s booted up, access the IDE via
http://bela.local in a browser.
2. Select a project to run on boot.
Open the Settings tab. At the very top there is a drop down menu labelled Run project on boot. Select your desired project from the dropdown menu.
Next time your board boots up it will automatically start running the project that you selected.
If you have a project set to run on boot then the IDE may take longer to show up when you first connect the board to a computer. To stop this simply go to the menu and select `none`.
Setting a project to run on boot: Using a script
Bela ships with a script that you can run that will set a project to run on boot. Read about how to use it here.