OpenBouffalo Firmware Repository
Find a file
Justin Hammond e36316fa13
Few fixes and Port IRQ_Forward to a component (#8)
* Remove a unnecessary delay in the nvkvs
* update readme
* port IRQ_Forward Code to a component and update d0_lowload to use it
* add USB, Ethernet and GPIO for IRQ Forwarding
2023-02-03 14:26:58 +08:00
apps Few fixes and Port IRQ_Forward to a component (#8) 2023-02-03 14:26:58 +08:00
bsp Add Timer, Indicator, Button and NV Key-Value Store Components (#6) 2023-02-02 01:58:55 +08:00
cmake Few fixes and Port IRQ_Forward to a component (#8) 2023-02-03 14:26:58 +08:00
components Few fixes and Port IRQ_Forward to a component (#8) 2023-02-03 14:26:58 +08:00
tools/kconfig Update BSP For various boards that have Bouffalo Chips (#4) 2023-02-02 00:28:17 +08:00
.gitignore Update BSP For various boards that have Bouffalo Chips (#4) 2023-02-02 00:28:17 +08:00
cmake.patch Update BSP For various boards that have Bouffalo Chips (#4) 2023-02-02 00:28:17 +08:00
LICENSE Update BSP For various boards that have Bouffalo Chips (#4) 2023-02-02 00:28:17 +08:00
README.md Update Readme (#7) 2023-02-02 02:32:08 +08:00

OpenBouffalo Firmware Repository

This is a collection of Firmware/Example Applications for the Bouffalo Range of Chips utilizing the Bouffalo MCU SDK

Quick Start

For Bouffallo based boards:

git clone https://github.com/openbouffalo/OBLFR.git
git clone https://github.com/bouffalolab/bl_mcu_sdk.git
git clone git@gitee.com:bouffalolab/toolchain_gcc_t-head_linux.git
PATH=$PATH:<directory to toolchain_gcc_t-head_linux>/bin/
cd OBLFR/apps/helloworld
make

Then use BLDevCube to Flash the build/build_out/helloworld_m0.elf to your device

if your bl_mcu_sdk is located in a different path, then the following will work:

BL_SDK_BASE=<path> make

Directory Layout

  • apps/
    • Applications
  • apps/examples/
    • Example Applications showing how to use included components
  • components/
    • Useful Libraries ported to the Boufallo Range of Chips
  • cmake/
    • Support Files for CMake/Make and Kconfig
  • bsp/
    • Board Support Packages for different boards using the Bouffalo Range of Chips
  • tools/
    • Various Tools

Included Apps

  • HelloWorld
  • LowLoad
    • lowload firmware is used to assist Linux to boot on the BL808 Device. Please consult the OpenBouffalo Buildroot repo for more information

Configuring SDK Features

The Bouffalo SDK provides numerous configuration options, enabled via the proj.conf in a standard bl_mcu_sdk project. This repository has enabled menuconfig, to give a graphical interface to enable/disable features in the SDK. You can enter the configuration dialog by running in each applications directory:

make config

Default Configuration Options for a application are saved in sdkconfig.default, and when a project is built, a sdkconfig is created (and may be edited by hand, or updated with make config). build/config/sdkconfig.h header file is also created when compiling, and any configuration options that affect cmake are placed into proj.conf

If a Application has a specific configuration options, a Kconfig file can be placed in the root of the application directory and it will be picked up automatically

If you wish to help out, updating the cmake/Kconfig with additional/new options or help text is greatly appreciated

Specifying Different CPU's or Cores

This SDK still respects the following commands to specify different CPU's/cores etc:

make BOARD=board_name

For the BL808, you can specify the following cores:

BOARD=ox64  CHIP_ID=m0 make

A list of boards can be found in cmake/bflbsdk.cmake under the set(BOARD_LIST section

Please ensure you run make distclean if you change chips/boards or CPU's

Specify Location of the Bouffalo Labs MCU SDK

If your bl_mcu_sdk located in different path, then the following will work: BL_SDK_BASE=<path> make

Board Support

We currently have the following boards supported:

  • Pine64 OX64 (bl808)
  • Sispeed M1SDock (bl808)
  • Sispeed M0SDock (bl616)
  • Sispeed M0Sense (bl702)

Other Boards are welcome, please submit a PR with your board support package!