Skip to content

Instantly share code, notes, and snippets.

@adrianlshaw
Last active May 2, 2021 14:52
Show Gist options
  • Save adrianlshaw/92fa12c09ba19370e92357bc2c9e1f5e to your computer and use it in GitHub Desktop.
Save adrianlshaw/92fa12c09ba19370e92357bc2c9e1f5e to your computer and use it in GitHub Desktop.
Building Zephyr with Trusted Firmware on Cortex-M CPUs

Building Zephyr with Trusted Firmware on Cortex-M CPUs

Download the latest Zephyr SDK from here: https://github.com/zephyrproject-rtos/sdk-ng/releases/

Then follow these steps:

pip3 install west
west init zephyrproject
cd zephyrproject
west update
cd zephyr
export ZEPHYR_BASE=$PWD
pip3 install -r scripts/requirements.txt
cd samples/tfm_integration/psa_level_1
mkdir build 
cd build
cmake -DBOARD=mps2_an521_nonsecure ..
make
make run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment