Skip to content

SDK Overview

The Ai-M6x series modules use the official Bouffalo Lab SDK for secondary development:

BouffaloSDK is the IoT and MCU software development kit provided by Bouffalo Lab. It supports all Bouffalo chip series and is a combination of bl_mcu_sdk and bl_iot_sdk.

The BL616 / BL618 chips used in the Ai-M6x series are fully supported by LHAL (the unified peripheral driver library), covering ADC, DMA, FLASH, GPIO, I2C, I2S, IR, MJPEG, PWM, RTC, SPI, TIMER, UART, USB, and more.

SDK Architecture

The SDK uses a layered structure. The main directories and their roles are:

DirectoryDescription
bsp/Board support package: board (clock, pin, memory, and console board-level initialization), common (common board-level peripheral drivers)
components/Components: networking, OS, file system, security, multimedia, wireless protocols, etc.
drivers/Driver layer: lhal (common peripheral drivers for all chip series), soc (chip-specific peripheral drivers), rfparam (RF parameter configuration)
examples/Official example code, ready to build and run
tools/Build, flashing, and development tools
docs/Quick start, API, and demo documentation

Directory Tree

The SDK directory tree is long, so it is collapsed by default. Click the heading below to expand/collapse it:

Expand / collapse the SDK directory tree

Getting Started

Why Use the Official Bouffalo SDK

The Ai-M6x series recommends using the official Bouffalo SDK (BouffaloSDK) instead of the Ai-Thinker SDK, mainly for the following reasons:

  • Maintained by the original manufacturer: BouffaloSDK is maintained directly by Bouffalo Lab, the chip manufacturer, ensuring timely releases and reliable code quality.
  • Legacy bugs fixed: Known issues from earlier versions have been fixed by the original manufacturer; switching to the new SDK avoids these problems and improves stability.
  • Continuously updated resources: The original SDK keeps updating drivers, examples, and documentation, so switching provides access to the latest development resources.

Have questions?

For any other questions, visit the unified Q&A and discussion board: Ai-Thinker Discussions

Released under the MIT License. Build Time 2026-09-11 14:52:23