infinitedigits (Tangent question: how is it possible to set the Analog channels / Analog Sample Rate / Block size at boot?)
the settings used at boot are those that were active in the IDE for the project at the moment you set the project to run on boot. Which means that if you changed the project settings after you set the project to run on boot you have to first select "•none•" as the project to run on boot and then select your project again, which will now run on boot with the updated settings.
infinitedigits I'm wondering, how do I edit the "Project settings" when running/building a project this way?
make help in the
~/Bela folder shows some of the options you can pass to the
make command, e.g.:
Targets: (default: Bela)
This Makefile is intended for use on the BeagleBone Black itself
and not for cross-compiling
available command line options:
EXAMPLE= name of the folder in examples/ to be copied to projects/ and built
PROJECT= name of the folder in projects/ to be built
CL= list of command line options to pass to the program when running
CPPFLAGS= list of additional flags passed to the C++ compiler
CFLAGS= list of additional flags passed to the C compiler
COMPILER= compiler to use (clang or gcc)
LDFLAGS= linker flags (e.g.: -L. )
LDLIBS= libs to link in (e.g.: -lm )
AT= used instead of @ to silence the output. Defaults AT=@, use AT= for a very verbose output
DISTCC= specify whether to use distcc (1) or not (0, default)
RELINK= specify whether to force re-linking the project file (1) or not (0, default). Set it to 1 when developing a library.
SHARED= specify whether to build the project-specific files as a shared library and link the executable to it and libbela (1) or not (0, default).
So you can pass command line options with
make run PROJECT=myproject CL="-p 64 -N4"
to run with blocksize 64 and 4 analog channels. You cannot specify the analog sampling rate automatically, it is inferred from the number of analog channels. To see what other command line options are available for the Bela program, run
make run PROJECT=myproject CL="--help"
The IDE provides a GUI to set some - but not all of - them.
Also a note:
make run essentially is a wrapper around
cd ~/Bela/projects/$PROJECT && ./$PROJECT $CL.