Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qitas committed Sep 15, 2023
1 parent dc1c239 commit 6a7966b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: build all
name: build

on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
build:
Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[中文版](README_zh.md)

* [Ai-M6X_SDK](https://github.com/Ai-Thinker-Open/aithinker_Ai-M6X_SDK)
* [M1s_BL808_example](https://github.com/sipeed/M1s_BL808_example)


# Introduction

**BouffaloSDK** is the IOT and MCU software development kit provided by the Bouffalo Lab Team, supports all the series of Bouffalo chips. Also it is the combination of **bl_mcu_sdk** and **bl_iot_sdk**
Expand Down Expand Up @@ -85,6 +89,14 @@ Note:**√** means supported ; **×** means not supported; **○** means suppo

Before compiling with the command line, you need to select the corresponding toolchain according to your operating system, configure it to the system environment variables, and install the **make** or **ninja**, then you can do the following. For the details, you can visit [BouffaloSDK Environment Setup](https://bl-mcu-sdk.readthedocs.io/zh_CN/latest/get_started/get_started.html).


```
git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_linux.git
sudo cp -rf toolchain_gcc_t-head_linux/ /usr/bin
echo "export PATH=\"$PATH:/usr/bin/toolchain_gcc_t-head_linux/bin\"" >> ~/.bashrc
source ~/.bashrc
```

- Go to the demo directory where you want to compile and there are `main.c` and `Makefile` files in that directory
- Just execute the following command, take **BL616** as an example

Expand All @@ -107,6 +119,11 @@ cd examples/helloworld
make ninja CHIP=bl808 BOARD=bl808dk CPU_ID=m0
```

```
make CHIP=bl808 BOARD=bl808dk CPU_ID=d0
make CHIP=bl808 BOARD=bl808dk CPU_ID=m0
```
## CDK Development

TODO
Expand Down Expand Up @@ -149,6 +166,14 @@ If flash using serial port rather than USB, different USB2TTL chips support diff

See [bouffalo_flash_cube doc](tools/bflb_tools/bouffalo_flash_cube/docs/FlashCube_User_Guide.pdf)

```
make flash CHIP=chip_name COMX=xxx # xxx is your com name
make flash CHIP=bl616 COMX=/dev/ttyUSB0
make flash CHIP=bl808 CPU_ID=d0 COMX=/dev/ttyUSB1
make flash CHIP=bl808 CPU_ID=m0 COMX=/dev/ttyUSB1
```


# Resources

## Chip Manual
Expand Down

0 comments on commit 6a7966b

Please sign in to comment.