Coder Social home page Coder Social logo

hamza-101 / ai-thinker-wb2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ai-thinker-open/ai-thinker-wb2

0.0 0.0 0.0 243.17 MB

License: Apache License 2.0

Shell 0.66% C++ 8.86% Python 0.29% Perl 0.07% C 88.74% Lua 0.01% Tcl 0.01% R 0.01% Assembly 0.05% CSS 0.01% Makefile 0.78% HTML 0.02% CMake 0.11% Batchfile 0.01% Uno 0.39% GDB 0.01% Dockerfile 0.01% Roff 0.02% SmPL 0.01%

ai-thinker-wb2's Introduction

Ai-Thinker Ai-WB2 Wireless Modules Development Framework

Base on th Bouffalolab bl_iot_sdk. Support BL602 Wi-Fi/BLE Combo RISC-V based Chip and BL70X Zigbee/BLE RISC-V based Chip.

Linux Users

Step 1. Install Prerequisites

In order to use Ai-WB2 Development Framework with the Ai-WB2, you need to install some software packages based on your Operating System. This setup guide will help you on getting everything installed on Linux and macOS based systems.

  • One liner for Debian or Ubuntu :

sudo apt install build-essential python3 python3-pip git screen

  • One liner for Arch:

sudo pacman -S base-devel python python-pip git screen

  • Next, clone the SDK repository:

git clone --recursive https://github.com/Ai-Thinker-Open/Ai-Thinker-WB2.git

if you are coding in the China , recommend you to clone the repository :

git clone --recursive https://gitee.com/Ai-Thinker-Open/Ai-Thinker-WB2

Step 2. Modify Permission

Modify the permissions of the compilation tool chain to enable executable functions.

  • Darwin
 cd toolchain/riscv/Darwin/
 . chmod755.sh 
  • Linux
 cd toolchain/riscv/Linux/
 . chmod755.sh 
  • MSYS
 cd toolchain/riscv/MSYS/
 . chmod755.sh 

Step 3. Compiling

For example, run the cd applications/get-started/helloworld project to compile :

cd applications/get-started/helloworld
make -j8

Step 4. download

Please connect your Ai-WB2 Serial Development board , and press the EN button according to the prompts.

make flash p=/dev/ttyUSB0 b=921600

Step 5. Other

In addition, you can use this command to view help.

make help

Your configuration chipname is Ai-Thinker Ai-WB2 Wi-Fi&BLE Module

Welcome to Ai-WB2 SDK build system. make targets:

  • "make all" - Build app, components
  • "make clean" - Remove all app components output
  • "make flash" - Build and download firmware
  • "make flash-only" - Only download firmware
  • "make eflash" - Use the flash after erasing it
  • "make erase_flash" - Erase all internal contents of flash
  • "make list-components" - List all components in the project
  • "make [component name]" - build a component as a library

Note: After erasing the flash, you need to use this command to download it,but always press the BURN button,then press the EN button.next,release all keys.

make eflash

ai-thinker-wb2's People

Contributors

xuhongv avatar cong1278 avatar seahi-mo avatar saehi007 avatar gitshaoxiang avatar rita858 avatar ai-thinker-liqi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.