Source Code of Arduino Package

Overview

GitHub page

The board supporting package of LinkIt 7697 are built from 2 software packages and they are:

  • Public version of the LinkIt SDK v4.

  • An add-on package that provides an adaptation layer between the native LinkIt SDK and Arduino APIs. This add-on package was developed by ArcherMind Technology for LinkIt 7687 and then ported to LinkIt 7697.

The LinkIt SDK source code is built into a library, libarduino.a. This library file, along with other library files provided by the LinkIt SDK, is packed with the source code of the Arduino adaptation layer into the final Arduino board supporting package.

Requirements

To build the package, you'll need the following:

  • Ubuntu Linux

  • make utility - installed

  • Perl - installed

How to Build the Arduino Board Support Package

  1. Visit the source code repository of the add-on package.

  2. Download the LinkIt SDK v4 according to the instructions in the add-on package. The version number must exactly match because the add-on package may modify or replace some of the LinkIt SDK files.

  3. Extract the downloaded LinkIt SDK v4 package to your directory of choice.

  4. Clone the add-on package and merge it with the SDK directory. The resulting directory structure should look like the following:

    .
    ├── build.sh
    ├── config
    ├── driver
    ├── kernel
    ├── middleware
    ├── mk_ide_pkg.pl
    ├── project
    ├── README.md
    ├── readme.txt
    └── tools
  5. Create a out directory using the following command:

    mkdir out

  6. Build the board support package using the following command:

    ./mk_ide_pkg.pl -o out -v 1.1.1
You should change the version number 1.1.1.

The board support package can be found under the out folder, with a flash_tool directory containing the upload tool, and a mt7697 folder containing the essential board supporting code and libraries.

If you want to install this package to your Arduino IDE, you can replace them into your 3rd party package folder. To learn how to do this, read the documentation here.

The Upload Tool

The upload tool uploads the compiled sketch and it's written in Python. You can find the tool source code in https://github.com/MediaTek-Labs/mt76x7-uploader.

Last updated