Skip to content

Installation and Usage

To get started with the NearLink ToolBox, you need to prepare the following:

  • A computer with 64-bit Windows 10 or higher
  • A pair of NearLink development boards, such as BearPi-Pico H3863
  • Installation of the CH340 Qinheng driver, for which we will provide the official link in the tutorial below
  • Two Type-C data cables, ready to connect the NearLink development board to your computer
  • Install Hispark Studio
  • Install Git
  • Compile & Flash & Test
  • Configure accelerated compilation (to be updated by Haixingtong community)
  • Install VSCode Deveco Device Tool plugin (optional, to be updated)
  • Download and retain the DevTools_CFBB compilation toolchain (optional, to be updated)
  • Download the Haohanyh NearLink ToolBox plugin (to be updated)
  • Download the Haohanyh NearLink ToolBox development materials (to be updated)

Start Downloading and Installing

Download and install the following software:

Download to a directory location you are familiar with, such as “downloads” or “download folder,” stored on a non-Windows system drive.

CH340 Driver Installation

Download the CH341SER.EXE file from the Qinheng official website, save it, and open it. If a UAC pop-up appears, click “Yes” to allow the operation.

User Account Control window, please allow

Then we can open the page.

When you encounter the following page, click the “Install” button. The program will run automatically until a pop-up says “Pre-installation successful,” indicating that the CH340 driver installation is complete.

CH340 Driver Installation Page

CH340 Driver Installation Prompt

If the installation fails, please close all antivirus software before opening the CH341SER.EXE file, right-click and select “Run as administrator.”

To install the NearLink ToolBox, please visit the official website NearLink ToolBox to download the installation package.

NearLink ToolBox Official Website

Please select Chinese (Simplified) and click OK to start the installation.

NearLink ToolBox Installation 1

Click Next to continue the installation.

NearLink ToolBox Installation 2

Modify the installation directory to a non-Windows system drive folder, then click Next to continue.

NearLink ToolBox Installation 3

Click Next to complete the final installation.

NearLink ToolBox Installation 4

Check “Run NearLink ToolBox” and “Create desktop shortcut,” then click Finish.

NearLink ToolBox Installation 5

The software will automatically start. If it opens normally, congratulations, you have completed the installation and setup.

NearLink ToolBox Startup

Developer Configuration

Install Hispark Studio

image-20241231144129850.png

After downloading, double-click “HiSparkStudio1.0.0.8.exe” to install. The installation interface is as follows; select “I agree to this agreement” and click “Next.”

image-20240801092735347.png

Based on your disk space, select the corresponding disk for installation, then click Next.

image-20240801093020583.png

Check additional tasks as needed; all are checked by default. After selection, click Next.

image-20240801093118299.png

Click “Install” to begin the tool installation.

image-20240801093302132.png

The installation process is as follows; wait for it to complete.

image-20240801093323050.png

The following interface indicates that the installation is complete; click Finish.

image-20240801093459447.png

The HiSpark Studio homepage interface is as follows.

WeChat_20250104011249.png

Install Git

You can download the exe installation file from Git’s website and run it:

After downloading, double-click the installation package. The interface is as follows; click “Next” to start the installation.

After completing the installation, you can use the command-line git tool (which already includes an SSH client) and a graphical Git project management tool.

In the Start menu, find “Git” -> “Git Bash,” which will open a Git command window where you can perform Git operations.

SDK Code Download & Compile

Download via Git command. On your storage drive, right-click and select “Open Git Bash here,” as shown.

image-20240807142741095.png

In the command box, enter git clone https://gitee.com/HiSpark/fbb_ws63.git to download the code, and wait for the download to complete.

image-20240807151920249.png

After the download is complete, the folder will appear as shown.

image-20240801103855026.png

After downloading the code, open the HiSpark Studio tool and click “New Project.”

image-20240801104223178.png

In the new project interface, select chip: ws63, project name: “xxx” (user-defined, but no Chinese or special characters), software package: xxx/fbb_ws63/src (SDK software package storage path, must be selected to the src level, otherwise the creation will fail). After configuration, click “Finish.”

image-20240801112357075.png

Click “build” or “rebuild” to compile, and wait for the compilation to complete.

image-20240801112427220.png

The compilation completion is shown below.

image-20240801165456569.png

Flash

After installing the driver, connect your NearLink development board to your computer and open the NearLink ToolBox. The NearLink ToolBox has three methods for flashing firmware, as follows:

One-Click Flash

  • Go to the “Browse Firmware” page, select the firmware you need to use or the firmware already distributed to you. After clicking the page, you can see a brief description and file name of each firmware in the “Include Files.” Click “One-Click Flash” to start flashing.

WeChat_20250104014410.png

WeChat_20250104014510.png

During the firmware flashing, please check the pop-ups in the software. After confirming, the progress bar in the new command-line window will complete the flashing.

WeChat_20250104021200.png

Manual Flash

  • Go to the “Firmware Flash” page, select the serial port device you need to flash in the “Serial Port Device” drop-down box, then select the firmware file to flash in the “Firmware Selection” drop-down box. Check your flashing tool configuration to ensure it is correct. It is recommended to select HiSilicon mode and check if the flashing tool path is correct!

WeChat_20250104015042.png

You can also find a folder button on the right side of the “Firmware Selection” drop-down box. After clicking, select the .fwpkg format firmware file you need to flash, click “Open,” and complete the firmware selection.

WeChat_20250104015519.png

WeChat_20250104015246.png

During the firmware flashing, please check the pop-ups in the software. After confirming, the progress bar in the new command-line window will complete the flashing.

WeChat_20250104021200.png

Batch Flash

  • Go to the “Batch Flash” page, select the firmware file to flash in the “Firmware Selection” drop-down box. Check your flashing tool configuration to ensure it is correct. It is recommended to select HiSilicon mode and check if the flashing tool path is correct!

Then check the serial port devices you need to flash in the “Available Serial Ports,” set the baud rate, and click “Start Flash” or the “Batch Flash” button in the upper right corner.

WeChat_20250104015946.png

Wait for the progress bar to complete the flashing.

WeChat_20250104021002.png

Test

After your serial port is automatically or manually powered on, open the “Serial Port Terminal” page and carefully configure your serial port settings. Generally, the configuration is as follows:

Serial Port Terminal Configuration

  • Serial Port: COMX - USB-SERIAL CH34X (COMX)
  • Data Bits: 8
  • Parity: None
  • Stop Bits: 1
  • Flow Control: None
  • Packet Delay: 50 (recommended)
  • Baud Rate: 115200 (recommended)

WeChat_20250104021843.png

With the above configuration set correctly, you can see the normal serial port terminal content.

WeChat_20250104022247.png