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
3.3.2.1. 1. Start path:
[Bare metal project root directory]/pikascript path
[rtthread project root directory]/packages/pikascript-latest path
3.3.2.2. 2. Package Manager
When pulling a module remotely from PikaSciprt for the first time, you need to run pikaPackge.exe
After modifying request.txt, you need to run pikaPackage.exe
If you use the latest version of the module, you need to run pikaPackage.exe when updating the module to the latest
3.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.
3.3.3. Project Files
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 .
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 (
pikaPackage.exe
)
rust-msc-latest-win10.exe