-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLE Audio #183
Comments
examples/audio/player_bt bt audio here. |
Hello, I have successfully flashed M0S dock with https://github.com/bouffalolab/bouffalo_sdk/tree/master/examples/audio/player_bt The problem is, that I cannot execute the A2DP start command, because there is no UART terminal available when plugged in over USB, nor when using the boards GND TX RX pins. |
@mrhempman69 there are headers with GND RXD TXD on PCB of M0s Dock. |
But which IOs for this example? I already tried the holes labeled "T" and "R" It says "uart0" in the main.c file, but "uart0" is also listed as many different pins in bl616 document |
@mrhempman69 that pins labeled T, R and G are those you need. |
Thanks. I do not know why it isn't working. The baud rate is supposed to be 2000000 right? And it's not supposed to show a UART interface when connected by USB-C, I tried with both silicon labs CP210x UART bridge (usb adapter), and LTD FT232 Serial Uart (usb adapter), on two separate M0S docks! I have wired it correctly (T<-->R and R<-->T), tried powering from both USB-C and header-power, The "G" pin is the unlabeled pin near the USB C port, i'm assuming. Here is the output from the flash log? Perhaps it will help:
|
Is there a line that I can change in the code to automatically enable a2dp broadcast? Without needing uart. Also the Bluetooth name if possible. So that i can flash it with those settings and not use UART |
This is a problem specific to the I do get these warnings on build:
|
So the I think it has to do with Please try examples/audio/player_bt and see if you get output or input over UART....
|
M0s have no psram, stop using these demos( must enable psram), so there is no log because psram enables failed. |
@mrhempman69 as @sakumisu says, those examples needs pSRAM, so they can work properly. I can recommend AI-Thinker M61 series boards: https://www.aliexpress.com/i/1005005407935386.html |
Thanks... it has to be "p"SRAM? Would like this chip from Adafruit would work? https://www.digikey.com/en/products/filter/memory/memory/774?s=N4IgjCBcoKwOwAYqgMZQGYEMA2BnApgDQgD2UA2iAMwCcCAbAEwAsIAusQA4AuUIAytwBOASwB2AcxABfYmEY0I0EGkhY8RUhRALmCBSGK64MGIZ01mNRvXO6aMRuZgJEADlZHLNOLa8uYNzsHBk8LF3ozDhAePkFRSRliAFonZVVhAFdNMkhKKOlZEFtlEQATPmSwBAguXkgQcwBHbgBPPmrzNs58PkxcNEKgA 8 x 8MB memory It's $1.75 though, while SRAM chips have more options and are cheaper.... |
No, this will not work. You need the pSRAM integrated directly in the chip, afaik, BL616 doesn't expose controller on GPIOs for external pSRAM usage. |
psram is chip built-in, you should use bl618 |
Where do I buy the bl618 chip only with that style of board-on-board connector? (DIY in-home surface-mountable breakout, not QFN, not DIP, size in between) Why does the README for the player_bt example specifically mention BL616 so many times if it doesn’t work for BL616? It’s totally unsupported to get BLE audio to work for the more common BL616? (The PSRAM module I linked to supports SPI…) |
There is a bl618 module from Ai-Thinker(AI-M61-32S). Also some shops on aliexpress sells bl618 chips too. just search for "bl618" |
As @madushan1000 says, there are modules from Ai-Thinker. And as I mentioned, mounting custom pSRAM to BL616 is not possible. Use BL618 instead. |
Thank you, madushan1000, gamelaster !!! And sakumisu!! |
Okay??? I bought the AI-Thinker-M61 board that was suggested. I get this error when connecting to UART after flash of the player_bt example. (Has anyone actually tried the player_bt example??)
I am using BL618 now, still the repo is broken. Still the repo readme suggests using BL616, why don't you update it? This conversation was two weeks ago, still nobody has updated the documentation. |
These demos can work both bl616 or bl618, just modify some config, but i should say these demos are for customer with special board. From mine, it work. You can ask ai-thinker for supporting these, thanks. |
I wish you had said that earlier. I have BL616 breakout for weeks now. I suggested using external PSRAM and you said "psram is chip built-in". So how can Bl616 work in your development kit, but I am unable to add external components to make bl616 work? I have made a Bl618 breakout board too now. So I can re-create "special board" but what I should do to make it like the "special board"? What is the special board? Where is its schematic? And also where are the config settings are that I need to change, and for what reasons? |
This is correct command. @sakumisu uses probably the official devkit. Best would be to attach JTAG and check out why it crashes. |
@gamelaster Can you please recommend me the CKLink Debugger or the jtag tool that you're using to debug these kinds of boards? The CKLink Debugger described by bouffalo labs does not appear to be an available product. Edit: I think I did this once before, with an Rpi-like thing, and I can use OpenOCD right |
Sipeed BL616 board is supposed to be CK-Link debugger 😁 |
You mean this M0S dock? How do you flash and wire that as a debugger? Edit: I choose to move the convo for debugging here: sipeed/M0S_BL616_example#12 |
The occurrence of this phenomenon is due to compiling in the Windows environment. Please try compiling in the Linux environment |
I was directed here from the examples repo: sipeed/M0S_BL616_example#13
Can you please provide an example of how to set up the device to be used as a BLE Audio acceptor, from a phone connection? And the example can show both how to use I2S on the output, and how to use the DAC on the output too?
Where can i get more information on how to use BLE audio with this chip? I know it will involve using one of the LC3 codec libraries on Github
The text was updated successfully, but these errors were encountered: