latest on BBAI-support-rebased has some embryonal support for BBAI64.
If I build with these additional patches (temporary workarounds, not worth committing right now)
diff --git a/core/RTAudio.cpp b/core/RTAudio.cpp
index fe8ff02f..d0306b4a 100644
--- a/core/RTAudio.cpp
+++ b/core/RTAudio.cpp
@@ -471,6 +471,7 @@ int Bela_initAudio(BelaInitSettings *settings, void *userData)
}
// Prepare GPIO pins for amplifier mute and status LED
+ /*
if(settings->ampMutePin >= 0) {
gAmplifierMutePin = settings->ampMutePin;
gAmplifierShouldBeginMuted = settings->beginMuted;
@@ -490,6 +491,7 @@ int Bela_initAudio(BelaInitSettings *settings, void *userData)
return -1;
}
}
+ */
if(settings->numAnalogInChannels != settings->numAnalogOutChannels){
fprintf(stderr, "Error: TODO: a different number of channels for inputs and outputs is not yet supported\n");
diff --git a/pru/pru_rtaudio.p b/pru/pru_rtaudio.p
index f12f777e..53f7dbd2 100644
--- a/pru/pru_rtaudio.p
+++ b/pru/pru_rtaudio.p
@@ -764,6 +764,7 @@ DONE:
START:
+ QBA START
// Load useful registers for addressing SPI
MOV reg_comm_addr, SHARED_COMM_MEM_BASE
MOV reg_spi_addr, SPI_BASE
, and run this after each reboot : sudo mkdir -p /run/bela && echo "HARDWARE=Bela" /run/bela/belaconfig
,
then you can run with these command line options:
-N0 -G0 --stop-button-pin -1 --disable-led --verbose
then you'll get that the codec is initialised, threads are started and the PRU also starts. However, the PRU will hang (because of the above patch), as I yet have to figure out all the right addresses to use here https://github.com/BelaPlatform/Bela/blob/BBAI-support-rebased/pru/board_specific.h#L7-L23
help needed!
Two fun facts in the process (which are worked around in 94cef24decea11e02c0ed9c4b05278212b706088:
memcpy()
on mmap'ed PRU memory gives BUS error
SCHED_FIFO
doesn't work. Not even something as simple as sudo chrt --fifo 50 python3