This may be off-topic because this is almost certainly not a Bela-related issue, but I am very frustrated and I hope someone could give me a hint about what I am doing wrong.
You can see below the setup I use for testing things. This is a mess, but it may help.
I keep experimenting crashes as soon as I try to play something simultaneously on all speakers.
dmesg -wreports something like
[ 57.113986] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_host (89, <AValid), retry #1, port1 00000507 which I think can be related, sometimes followed by a stack trace.
I need to physically unplug the USB connection to the computer so that the BBB will start again, otherwise the power/reset button won't do anything.
Given that BBB won't crash (or less often) with less amps/speakers, I guess this could be "current related", i.e. amplifiers / speakers trying to draw too much current. However I don't know how to compute the theorical value. TPA2016D2 doc says that the current draw is very low (5mA).
My problem is : I really cannot find a pattern. For all day I have been able to play a sinusoid at max intensity on all speakers while I could not play an half second of a WAV file at min intensity without a crash. At the end of the day, the same sinusoid with low intensity makes BBB crash. For half a day I thought it was related to the loading of the WAV file because only working with a WAV would make BBB crash.
I wrote a lot of different codes to isolate the problem but this appears to be really random.
Please tell me if I should ask somewhere else ; any help will be very precious anyway.