UNA Watch SDK
The UNA Watch SDK provides a comprehensive suite of tools, libraries, and interfaces for building high-performance wearable applications. This SDK enables developers to create apps for the UNA Watch platform with support for sensor data, GUI interfaces, file systems, and inter-process communication.
For full setup instructions (Linux/Windows, toolchain, environment variables, and a buildable example), see Docs/sdk-setup.md.
Working with an AI coding agent? The SDK ships skills for each stage of building an app, from
setup to a store release (see Docs/agent-skills.md). In Claude Code:
/plugin marketplace add UNAWatch/una-sdk
/plugin install una-sdk@una-sdk
Table of Contents
- Overview
- Prerequisites
- Opening SDK in VSCode
- Compiling Projects
- Compiling Examples
Overview
Key Components
- Core Interfaces: Type-safe APIs for system services, communication, and hardware access
- Message System: High-performance inter-process communication (IPC) framework
- Sensor APIs: Simplified access to PPG, IMU, and GNSS sensors
- File System: Multi-volume storage management (Flash, USB, External)
- Build Tools: Automated scripts for compilation and
.uapp packaging
- Simulator: Desktop-based environment for rapid prototyping and testing
SDK Project Structure
una-sdk/
├── Libs/
│ ├── Header/SDK/ # Public SDK headers (Interfaces, Messages, Kernel, Simulator, Port, ...)
│ └── Source/ # SDK implementation (incl. Port/TouchGFX and Simulator)
├── ThirdParty/ # Vendored dependencies (TouchGFX, coreJSON, FitSDK, tinycbor)
├── Utilities/Scripts/ # Build, packaging, and tooling scripts
├── Examples/ # Sample reference applications
├── cmake/ # CMake toolchain and helpers
└── Docs/ # Documentation and tutorials
High-Level Utilities
The SDK includes several utilities for common tasks:
- GSModel & GSBridge: Type-safe GUI-Service communication
- Glance UI System: Lightweight UI for 240x60 notification area
- SDK::Fit: Native FIT-format file generation
- TrackMapBuilder: GPS track visualization
- Serialization: CBOR and JSON stream readers/writers
- Signal Processing: Filters, queues, timers
Prerequisites
Keep this README high-level; detailed prerequisites, toolchain notes, and environment variables are documented in Docs/sdk-setup.md.
Opening SDK in VSCode
- Launch VSCode
- Open the SDK folder:
File > Open Folder... and select the SDK directory
- The workspace will automatically load with the correct configuration
- VSCode extensions for C/C++, CMake, and ARM development are recommended
Compiling Projects
The SDK supports multiple build systems for different development workflows.
CMake-Based Builds
Recommended for command-line control and flexibility.
Prerequisites
See Docs/sdk-setup.md for the exact toolchain requirements and how to set UNA_SDK.
Building a Project
-
Navigate to the project's CMake directory (e.g., MyApp/Software/Apps/MyApp-CMake/)
-
Configure the build:
cmake -G "Unix Makefiles" -S . -B build
-
Build the project:
cmake --build build
-
Clean rebuild:
rm -rf build
cmake -S . -B build
cmake --build build
TouchGFX GUI Builds
For applications with graphical user interfaces.
Prerequisites
- TouchGFX Designer installed
- ARM GCC toolchain
- CMake (for integrated builds)
Building TouchGFX Projects
-
Open TouchGFX Designer and load the .touchgfx project file
-
Generate code:
- Click
Generate Code in TouchGFX Designer
- This creates C++ files in the
generated/ directory
-
Build using CMake (integrated):
cd TouchGFX-GUI/
cmake -G "Unix Makefiles" -S . -B build
cmake --build build
-
Or build directly in TouchGFX Designer:
- Use the built-in simulator for testing
- Export for target hardware
Compiling Examples
The SDK includes several example applications demonstrating different features, all built with CMake.
Available Examples
- Alarm: Basic alarm functionality
- Cycling: Activity tracking with GPS
- GlanceARHR: Glance interface for heart rate
- GlanceHR: Simple heart rate display
- GlanceSteps: Step counter glance
- Hiking: Full activity app with TouchGFX GUI
- HRMonitor: Heart rate monitoring
- Running: Running activity tracker
Compiling Examples with CMake
Each example is built from its *-CMake directory. For a complete walkthrough, follow the Alarm CMake example in Docs/sdk-setup.md.
Compiling TouchGFX Examples