2.4. Start with CMSIS-PACK

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

2.4.1. Install PikaTech.PikaPython.x.x.x.pack

Click to download

Just go all the way to Next and install

_images/image-20220624090014867.png

2.4.2. Set in the project

_images/image-20220624090340868.png

Check PikaPython, including Core and PikaStdLib

_images/image-20220624090401713.png

Here you can see that PikaPython has been added

_images/image-20220624090444608.png

In Before Build add

.\RTE\PikaPython\pikaBeforBuild-keil.bat

_images/image-20220624090543736.png

Then introduce in main.c

#include "pikaScript.h"

Start PikaPython after initializing the system and printf

PikaObj *pikaMain = pikaScriptInit();

Compile successfully.

_images/image-20220624091046123.png

Run successfully !

_images/image-20220624091137190.png

For more usage, please refer to porting guide