Skip to content

iotpi/sifli-porting-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Workspace Template for porting SiFli to Zephyr RTOS

Usage

Go to one directory as your root, eg, $HOME/Dev/Sifli

Preparation

# create a root directory of your workspace
mkdir workspace
cd workspace

Install Python Dependencies and toolchain

Please refer to official [zephyr document](https://docs.zephyrproject.org/latest/develop/getting_started/index.html) for detailed installation instructions
python -m venv .venv
. .venv/bin/activate
pip install west
git clone https://github.com/iotpi/sifli-porting-template.git
west init -l sifli-porting-template
# or use `west init -m https://github.com/iotpi/sifli-porting-template.git` instead

west update
west zephyr-export
west packages pip --install

# install zephyr sdk if you didn't yet
west sdk install -t arm-zephyr-eabi

clone zephyr porting repos:

git clone [email protected]:iotpi/sifli_zephyr.git
git clone [email protected]:iotpi/hal_sifli.git

Build

# because following 'export' uses $PWD, so it should run under
# 'workspace' directory, or you need to change $PWD to your
# real root
export ZEPHYR_EXTRA_MODULES="$PWD/sifli_zephyr;$PWD/hal_sifli"
west build -p always -b em-lb525 zephyr/samples/hello_world/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published