2.5. Start with CMSIS-PACK

Users developing with Keil can use CMSIS-PACK to install PikaScript with one click.

2.5.1. Install PikaTech.PikaScript.x.x.x.pack

Click to download

Just go all the way to Next and install

_images/image-20220624090014867.png

2.5.2. Set in the project

_images/image-20220624090340868.png

Check PikaScript, including Core and PikaStdLib

_images/image-20220624090401713.png

Here you can see that PikaScript has been added

_images/image-20220624090444608.png

In Before Build add

  1. .\RTE\PikaScript\pikaBeforBuild-keil.bat

_images/image-20220624090543736.png

Then introduce in main.c

  1. #include "pikaScript.h"

Start PikaScript after initializing the system and printf

  1. PikaObj *pikaMain = pikaScriptInit();

Compile successfully.

_images/image-20220624091046123.png

Run successfully !

_images/image-20220624091137190.png

For more usage, please refer to porting guide