4.3. Docking with IDE

4.3.1. Overview

The toolset that PikaPython 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

4.3.2. calling method

4.3.2.1. 1. Start path:

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

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

4.3.2.2. 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

4.3.2.3. 3. Precompiler

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

4.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 PikaPython project files: After deleting pikascript-lib, pikascript-core, and pikascript-api, re-run pikaPackage.exe and rust-msc-latest-win10.exe.

4.3.4. example

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

cd ../pikascript

if not exist pikascript-core (
    pikaPackage.exe
)
rust-msc-latest-win10.exe