3.3. Docking with IDE

3.3.1. Overview

The toolset that PikaScript needs to interface with the IDE includes:

Package manager pikaPackage.exe

Refer to package manager and module management related documents

Precompiler rust-msc-latest-win10.exe

Refer to module development related documents

3.3.2. calling method 1. Start path:

  1. [Bare metal project root directory]/pikascript path

  2. [rtthread project root directory]/packages/pikascript-latest path 2. Package Manager

  1. When pulling a module remotely from PikaSciprt for the first time, you need to run pikaPackge.exe

  2. After modifying request.txt, you need to run pikaPackage.exe

  3. If you use the latest version of the module, you need to run pikaPackage.exe when updating the module to the latest 3. Precompiler

a. run before each compilation [Note]: When running for the first time, use pikaPackage.exe to pull the precompiler first.

3.3.3. Project Files

  1. After executing the package manager or precompiler, you need to add all (including subfolders) .c files and include paths under pikascript-lib, pikascript-core, pikascript-api .

  2. Reset PikaScript project files: After deleting pikascript-lib, pikascript-core, and pikascript-api, re-run pikaPackage.exe and rust-msc-latest-win10.exe.

3.3.4. example

Automatic precompile script pikaBeforeBuild-keil.bat written for keil:

cd ../pikascript

if not exist pikascript-core (