This repository provides examples and support for using TinyUSB with Alif Semiconductor Ensemble platform. It supports both CSolution (CMSIS) and CMake-based builds (for bare-metal and FreeRTOS). Zephyr RTOS integration is available as well.
Contains following examples:
- cdc_msc
- cdc_msc_freertos
- cdc_msc_zephyr
- hid_composite
- hid_composite_freertos
- hid_composite_zephyr
- hid_boot_interface
- hid_multiple_interface
- msc_dual_lun
Please make sure you have setup your VSCode and other tools and environment based on the VSCode Getting Started Template before working on this project.
After setting up the environment you can select File→Open Folder from VSCode and press F1 and start choosing from the preset build tasks.
- F1 → Tasks:Run Task → First time pack installation
- F1 → Tasks:Run Task → cmsis-csolution.build:Build (Better to do this from the CMSIS Extension Build (hammer icon))
- F1 → Tasks:Run Task → Program with Security Toolkit
arm-none-eabi-gcctoolchaincmake(>= 3.20)- GNU
make
python lib/tinyusb/tools/get_deps.py alif
Currently build is supported for 2 cores: rtss_hp and rtss_he.
cd examples/device/cdc_msc
cmake -B build -DBOARD=alif_e7_dk -DBOARD_QUALIFIERS=/ae722f80f55d5xx/rtss_hp
cmake --build build- Zephyr SDK 0.16.9
westtool- Python 3 with Zephyr dependencies installed
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.9/zephyr-sdk-0.16.9_linux-x86_64.tar.xz
tar xvf zephyr-sdk-0.16.9_linux-x86_64.tar.xz
cd zephyr-sdk-0.16.9
./setup.sh
Currently build is supported for 2 cores: rtss_hp and rtss_he.
python3 -m venv .venv
source ./.venv/bin/activate
pip install -U west
cd examples/
west init -l .
cd ../
west update
pip install -r zephyr/scripts/requirements.txt
### Initialize Submodules
git submodule update --init --recursive
cd examples/device/cdc_msc_zephyr/
west build -b alif_e7_dk/ae722f80f55d5xx/rtss_hp