• Hardware
  • Error: unable to initialise audio

Despite being connected to the computer and booting correctly, my Bela is unable to work with the IDE. Whenever I try to run a PD patch, I get the following errors:

Error: unrecognized Bela hardware. Is a cape connected?
Error: unable to initialise audio
Makefile:606: recipe for target 'runide' failed
make: *** [runide] Error 1

Referring to https://forum.bela.io/d/1736-bela-gives-error-unable-to-initialise-audio-codec-after-running-initially, I ran the lines posted in one of @giuliomoro 's answers, but I get the error:

sed:
couldn't open file /opt/bb.org-overlays/src/arm/BB-BELA-00A1.dtbo: No such file or directory

I'm afraid I fried the audio codec by plugging a small audio amplifier into Bela's audio input, since the amp runs on 12V DC. Is that a possibility? Is there any quick solution?
Cheers =)

    SonOfAGlitch sed:
    couldn't open file /opt/bb.org-overlays/src/arm/BB-BELA-00A1.dtbo: No such file or directory

    Seems like you didn't type the commands correctly: sed on the first line should act on the .dts file , while the .dtbo is on the second line. Copy/paste them and execute them one at a time.

    SonOfAGlitch I'm afraid I fried the audio codec by plugging a small audio amplifier into Bela's audio input, since the amp runs on 12V DC. Is that a possibility?

    It is a possibility. The nominal input levels are 1.8Vpp and although we have some protection circuitry in place, it iswill not necessarily work against very large voltage swings

      giuliomoro It seems to me that they're in place. These are the lines that I run:

      sed -i s/400000/100000/ /opt/bb.org-overlays/src/arm/BB-BELA-00A1.dts
      rm -rf /opt/bb.org-overlays/src/arm/BB-BELA-00A1.dtbo
      make -C /opt/bb.org-overlays/ all install
      reboot

      How should I rewrite them?

      SonOfAGlitch sed:
      couldn't open file /opt/bb.org-overlays/src/arm/BB-BELA-00A1.dtbo: No such file or directory

      This indicates that sed was passed the .dtbo filename as an argument.

      Run the lines one by one and it should work

        giuliomoro unfortunately I still get the same errors. I struggle to think that the audio codec is burnt, but that might be a possibility at this point.

        Run this as a single line

        sed -i s/400000/100000/ /opt/bb.org-overlays/src/arm/BB-BELA-00A1.dts; rm -rf /opt/bb.org-overlays/src/arm/BB-BELA-00A1.dtbo; make -C /opt/bb.org-overlays/ all install; reboot

        The errors you are seeing while running these lines are unrelated to the health of the codec. However, if the codec used to work and suddenly stopped working, it is unlikely this will get it back, though it's worth a try.

        Still... Although this time it seems to compile these lines without errors, it reboots Bela and it ends the process with:
        make: Leaving directory '/opt/bb.org-overlays'

        Sounds good. power off, disconnect the usb cable, wait 5 seconds and reconnect it. After that, does the codec work?

        Then I must guess the codec is fried. If you are really good at soldering SMDs you could attempt to remove the chip (which is in the QFN package) and solder a new one, that would require solder paste, flux, hot air gun and luck. Otherwise, you can buy a replacement cape from our shop.