BTstack Port for BL618

127 views
Skip to first unread message

陈里

unread,
Oct 2, 2024, 4:22:36 AM10/2/24
to btstack-dev

Matthias Ringwald

unread,
Oct 5, 2024, 10:26:25 AM10/5/24
to btsta...@googlegroups.com
Hi 陈里

Thanks for sharing your port of BTstack for the Bouffalo Labs BL616/BL808!
I have read about this MCU, but did not look closer to see if an HCI interface would be available and how.

It looks like the HCI interface is provided here

https://github.com/bouffalolab/bouffalo_sdk/blob/master/components/wireless/bluetooth/btblecontroller/btble_inc/hci_onchip.h

Did you find any documentation by Boufallo Labs, or did you have to figure it out yourself?

Looking at the functions, I understand
- bt_onchiphci_interface_init to init and provide a callback function to handle received packets.
- bt_onchiphci_send can be used to send packets.
Any idea what bt_onchiphci_hanlde_rx_acl does? You call it in your code for received ACL packets.

I've borrowed a Sipeed M1S /BL808 from a friend, but still have to install a suitable compiler toolchain.

Best regards
Matthias

> On 1 Oct 2024, at 10:57, 陈里 <cyw...@gmail.com> wrote:
>
> O2C14/btstack_test: BTstack Port for BL618 (github.com)
> Datasheet
>
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/0055e459-f38e-4087-8c5a-039c5477e9e9n%40googlegroups.com.

陈里

unread,
Nov 10, 2024, 11:51:37 AM11/10/24
to btstack-dev
Almost all code references these two files:
bouffalo_sdk/components/wireless/bluetooth/blestack/src/hci_onchip/hci_driver.c at master · bouffalolab/bouffalo_sdk
bouffalo_sdk/components/wireless/bluetooth/blestack/src/bl_hci_wrapper/bl_hci_wrapper.c at master · bouffalolab/bouffalo_sdk
I guess bt_onchiphci-hanlde_rx_acl is a preprocessing function.
Additionally, using BL808 may not be appropriate as the library files related to the BL808 Bluetooth controller were deleted in the most recent submission (although this submission was withdrawn).
bouffalo_sdk/components/wireless/bluetooth/btblecontroller/lib at 0444691f1299ba846324effb347ac083e803eaee · bouffalolab/bouffalo_sdk
And according to the naming convention:
bl_iot_sdk-components/network/ble/README.md at main · bouffalolab/bl_iot_sdk-components
libbtblecontroller_bl808_ble1m0s1bredr0.a does not support BR/EDR.

陈里

unread,
Jan 20, 2025, 12:55:49 AMJan 20
to btstack-dev

Matthias Ringwald

unread,
Jan 21, 2025, 10:07:26 AMJan 21
to btsta...@googlegroups.com
Thanks for the link to the QCC743.

Do you have a dev kit for it and/or did you already try to use the HCI interface?

Looks like the HCI interface is available vai hci_onchip.h
https://git.codelinaro.org/clo/qcc7xx/QCCSDK-QCC74x/-/blob/master/components/wireless/bluetooth/btblecontroller/btble_inc/hci_onchip.h?ref_type=heads

Ah... and that one is identical to the one from Bouffalo Labs. That's quite interesting. Sorry, I haven't tried with the Bouffalo Lab dev kit, still on my todo list.

Cheers
Matthias
> To view this discussion visit https://groups.google.com/d/msgid/btstack-dev/afe59bae-9bf7-40e5-8f8d-c31ed5fd694an%40googlegroups.com.


陈里

unread,
Jan 23, 2025, 1:36:52 AMJan 23
to btstack-dev
I don't have a QCC743, but this is the topic of this discussion forum, so I thought this should serve as a reference.
Discord | "BouffaloLabs" | zephyrproject

Harvey Zhang

unread,
Feb 6, 2025, 9:38:38 AMFeb 6
to btsta...@googlegroups.com
Hi 陈里,

How did you find the similarity between QCC74x and BL618?

Search engine showed some more similarities on chip level:
-- same core architecture: RISC-V
-- same package: QCC743 and BL616 are in QFN40, QCC744 and BL618 are in QFN56.
-- same rom size: 128KB ROM and 4Kb eFuse
-- similar ram size: QCC74X 484KB SRAM, BL618 480KB SRAM + 4KB HBN RAM

Best regards,
/Harvey

陈里

unread,
May 10, 2025, 1:41:55 AMMay 10
to btstack-dev
Enable le audio on bl618: O2C14/btstack_test at le-audio
Reply all
Reply to author
Forward
0 new messages