- Edited
Hi! I ordered Bela cape separately from the BBB, which I bought from digikey. I flashed an 8 gig SD card following the guide on github and booted into Bela. (At first BBB refused to boot from SD so had to force it by pressing S2 switch during boot, I later learned that the same can be done by using 3 jumpers). I updated the bela IDE, using the guide. Everything seemed to work ok. I ran the default project (440Hz sine wave generator) and it spent a couple of minutes building all the libraries after which I heard the tone. Everything went smoothly up until this point. I decided to change the frequency a bit to see how to rebuild and upload the new sketch, so I changed 440Hz to 480Hz in gFrequency variable, which was the only thing I changed. After trying to build this new sketch Bela gave these errors:
Error: unable to initialise audio codec
Error: unable to initialise audio
Makefile:595: recipe for target 'runide' failed
make: *** [runide] Error 1
Bela stopped
Which is weird since almost the same sketch worked just seconds ago. I undid the changes and tried to build the sketch again but it failed with the same errors.
I've searched this forum to find a solution, it seems these errors do come up frequently but I could not really understand how to go about fixing them in my case.
I decided to format the SD card and retry without updating the IDE to see if maybe it is a newly introduced bug. To my surprise when I tried to build the project, the libraries were already built and Bela gave the above errors immediately. So I'm guessing BBB holds some files on the on-board memory as well. I'm thinking of somehow formatting the BBB itself, but maybe there is a known solution to such a problem? Thanks in advance!
------------- Edit 1 -------------
After rebooting the device in different ways I received a new error message:
Error: unable to start I2C audio codec
Error: unable to start real-time audio
Failed to join audio thread: (3) No such process
make: *** [runide] Error 1
Makefile:595: recipe for target 'runide' failed
I'm not sure what to make of it but it might help in debugging the thing.
------------- Edit 2 -------------
I connected to a different PC and built the sketch once again and it worked! Once I rebuilt it though, it still showed the same errors. I am glad that it is not a hardware issue, however I still don't know how to make it run reliably.
------------- Edit 3 -------------
Again new error on a reboot:
I2C error while writing PLL d part 1 : 2112Error: unable to start I2C audio codec
Error: unable to start real-time audio
Failed to join audio thread: (3) No such process
Makefile:595: recipe for target 'runide' failed
make: *** [runide] Error 1
Bela stopped