All Projects → pine64 → bl_iot_sdk

pine64 / bl_iot_sdk

Licence: Apache-2.0 license
BL602 SDK (Pine64 fork)

Projects that are alternatives of or similar to bl iot sdk

blflash
bl602 serial flasher
Stars: ✭ 41 (-64.35%)
Mutual labels:  toolchain, bl602
bx-github-ci
This tutorial provides one example on how a CI (Continuous Integration) workflow with the IAR Build Tools for Linux can be set up on GitHub. The IAR Build Tools on Linux are available for Arm, RISC-V and Renesas (RH850, RL78 and RX).
Stars: ✭ 20 (-82.61%)
Mutual labels:  toolchain, risc-v
bl602-docs
Documentation of the BL602 IC
Stars: ✭ 53 (-53.91%)
Mutual labels:  pine64, bl602
bl mcu sdk
bl_mcu_sdk is MCU software development kit provided by Bouffalo Lab Team for BL602/BL604, BL702/BL704/BL706, BL616/BL618, BL808 and other series of RISC-V based chips in the future.
Stars: ✭ 147 (+27.83%)
Mutual labels:  risc-v, bl602
sedna
Sedna - a pure Java RISC-V emulator.
Stars: ✭ 52 (-54.78%)
Mutual labels:  risc-v
yatcpu
Yet another toy CPU.
Stars: ✭ 42 (-63.48%)
Mutual labels:  risc-v
rv32i-sim
RISC-V Software Simulation
Stars: ✭ 21 (-81.74%)
Mutual labels:  risc-v
nuclei-sdk
Nuclei RISC-V Software Development Kit
Stars: ✭ 65 (-43.48%)
Mutual labels:  risc-v
K210
Kendryte K210 BSP for RT-Thread
Stars: ✭ 15 (-86.96%)
Mutual labels:  risc-v
rebuild
Zero-dependency, reproducible build environments
Stars: ✭ 48 (-58.26%)
Mutual labels:  toolchain
ravel
A RISC-V simulator
Stars: ✭ 24 (-79.13%)
Mutual labels:  risc-v
vega-lite
Software, tools, and documentation for RV32-VEGA-Lite platform
Stars: ✭ 61 (-46.96%)
Mutual labels:  risc-v
Xassette-Asterisk
Evaluation board for AllWinner's RISC-V 64 SoC F133/D1s
Stars: ✭ 168 (+46.09%)
Mutual labels:  risc-v
r3
R3-OS — Experimental static (μITRON-esque) RTOS for deeply embedded systems, testing the limit of Rust's const eval and generics
Stars: ✭ 87 (-24.35%)
Mutual labels:  risc-v
yarvi
Yet Another RISC-V Implementation
Stars: ✭ 59 (-48.7%)
Mutual labels:  risc-v
Zelda.RISCV.Emulator
A System Level RISCV32 Emulator Over x86_64: capable of booting RISCV Linux
Stars: ✭ 18 (-84.35%)
Mutual labels:  risc-v
pinera1n
portable checkra1n solution on linux phone, not only one linux distribution can do it
Stars: ✭ 45 (-60.87%)
Mutual labels:  pine64
fos
Interesting project,the Fast Real Time Operating Systems( FOS-RTOS)
Stars: ✭ 22 (-80.87%)
Mutual labels:  risc-v
mima
MIninmal MAchine Assembler and Simulator
Stars: ✭ 19 (-83.48%)
Mutual labels:  toolchain
WebRISC-V
WebRISC-V: A Web-Based Education-Oriented RISC-V Pipeline Simulation Environment [PHP]
Stars: ✭ 74 (-35.65%)
Mutual labels:  risc-v

BL602 SDK (Pine64 version)

Join us on Discord, Telegram, Matrix

This repository contains the Pine64 fork of Bouffalo Lab's SDK for their BL602 Wi-Fi/BLE Combo RISC-V SoC. Documentation, including upstream documentation, translations, mirrored technical documentation, and original reverse engineered documentation is at bl602-docs, which is cloned as a submodule of this repository at docs. Use git submodule update --init to initialize the submodule.

This repository is the central focus of Pine64's Nutcracker Challenge. The main task is to reverse engineer the following files:

This is being done at bl602-re.

Documentation

You can find a lot of documentation on PINE64 Documentation Website and PINE64 Documentation Repository, where you can find Datasheets, Reference Manuals and various other documentation materials.

Quick Start

In order to build sample apps, you need to set a few environment variables:

export BL60X_SDK_PATH=/path/to/this/repo
export CONFIG_CHIP_NAME=BL602

In order to build all sample apps simply call make, for example:

make

To only build the sample app of interest, go to the directory of the app, then call make, for example:

cd customer_app/bl602_boot2
make

Call

make CONFIG_TOOLPREFIX=riscv64-linux-gnu-

if you wish to bypass the bundled cross-compiler and using your distribution's own cross-compiler.

There is a linker script (written in python) at image_conf/flash_build.py. To run this, you need to specify the application and the target, for example:

python3 flash_build.py bl602_boot2 bl602

Note: If you decide to copy any project outside of the customer_app folder, you will need to define a few variables in order to compile it:

export BL60X_SDK_PATH=/path/to/this/repo
export CONFIG_CHIP_NAME=bl602

Docker

To set up a development environment in Docker, and do a full build of all the example projects, using the bundled toolchain:

docker build -t bl602sdk -f Dockerfile.bundled
docker run -t -i --rm bl602sdk
# make

Hardware

BL602 is a 32-bit RISC-V based combo chipset supporting Wi-Fi and BLE (Bluetooth Low Energy). The chip is made by Nanjing-based Bouffalo Lab for ultra-low-power applications. In terms of price range and feature set, the chip is competing against Espressif ESP8266. The RISC-V core is based on SiFive E24.

At the moment there are mainly three development boards:

Comparison with ESP8266

  Bouffalo Lab BL602 Espressif ESP8266
Architecture

32-bit RISC-V (SiFive E24)

@192MHz (dynamic @1-192MHz)

L1 cache

FPU

32-bit Xtensa

@80MHz (and 160MHz)

Memory

276KB SRAM

128KB ROM

1 Kb eFuse

optional embdedded flash

XIP QSPI flash support

32 KiB instruction RAM

32 KiB instruction cache RAM

80 KiB user-data RAM

16 KiB ETS system-data RAM

No programmable ROM

QSPI flash support (up to 16 MB)

Wi-Fi

802.11 b/g/n @2.4GHz

WPS/WEP/WPA/WPA2/WPA3

802.11 b/g/n @2.4GHz

WEP/WPA/WPA2

Bluetooth LE 5.0 NONE
GPIO x16 x16
SDIO x1 2.0 slave x1 v2.0 slave
SPI x1 x2
UART x2 x1.5 (One Tx only)
I2C x1 x1 (software implemented)
I2S NONE x1 (with DMA)
PWM channels x5 x4
ADC 12-bit 10-bit (SAR)
DAC 10-bit NONE
Analog Comparator x2 NONE
DMA x4 with I2S
Timer

RTC (up to 1 year)

x2 32-bit general-purpose

x1 hardware

x1 software

(no interrupt gen. on sw. timer)

IR Remote Control x1 x1
Debug JTAG support ?
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].