/una-sdk:una-build-uappfrom una-sdk
Builds a UNA Watch app's .uapp package using CMake and arm-none-eabi toolchain. Handles versioning from git tags, memory sizes, and app ID configuration.
Ships in una-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A .uapp holds the app's service ELF, its GUI ELF (none for a glance), its icons and a header
with the app's name, type, ID and version. One CMake project builds all of it: the -CMake
folder under Software/Apps (Software/App for glances).
Needs UNA_SDK set, arm-none-eabi-gcc on PATH and the packer's Python packages (skill
una-setup).
From the app root:
cmake -G Ninja -S Software/Apps/MyApp-CMake -B build
cmake --build build
.uapp lands in the project's OUTPUT_PATH folder, named
<APP_USER_NAME>_<version>.uapp, for example MyApp_1.2.0.uapp. Spaces and other
characters unsafe in a file name become _, so My App gives My_App_1.2.0.uapp. That is Output/ in most
examples and OutputLVGL/ in the tutorials' LVGL projects.-G "Unix Makefiles" works with make on Linux and macOS. On Windows use Ninja.cmake -S ... -B build step: a plain cmake --build keeps the old version.build/ and configure again.The build log ends with the packer's summary. Check that ID matches the app's APP_ID:
INFO:root:ID : 03AD5A741E38A35F
The version comes from git tags on the app's repository, read by
$UNA_SDK/Utilities/Scripts/build-cube/una-version.sh:
| Repository state | Version |
|---|---|
HEAD tagged apps-v1.2.0 | 1.2.0, even with uncommitted changes |
Commits after apps-v1.2.0 | 1.2.0-<n>-<hash>, where n is the number of commits since the tag |
| Commits after the tag, plus uncommitted changes | 1.2.0-<n>-<hash>-dirty |
No apps-v* tag | 0.0.0-dev |
| Not a git repository | 0.0.0-dev |
apps-v<major>.<minor>.<patch>. A plain v1.2.0 isn't read.-DBUILD_VERSION=1.2.0 when configuring; it must start with
A.B.C.bash, from Git for Windows. If bash isn't on PATH the
version falls back to 1.0.0, or 1.0.0-dirty with uncommitted changes.una-store-submit).CMakeLists.txt| Variable | Meaning |
|---|---|
APP_NAME | Names the ELFs and targets. |
APP_USER_NAME | Name shown on the watch, and the base of the .uapp file name. The watch shows the first 15 bytes (UTF-8). Defaults to APP_NAME. |
APP_FILE_NAME | Base name of the .uapp, when it must stay fixed while APP_USER_NAME changes. The phone app's update flow keys on the file name. |
APP_ID | 16 uppercase hex digits, unique per app. |
APP_TYPE | Activity, Utility, Glance or Clockface, spelled exactly. |
DEV_ID | Developer name, passed to the code as DEV_ID. |
APP_AUTOSTART | On/Off (default Off). |
APP_USE_ICONS | On/Off (default On). With On, Resources/icon_30x30.png and icon_60x60.png must exist. Glances set Off. |
UNA_APP_SERVICE_RAM_LENGTH, UNA_APP_GUI_RAM_LENGTH | Size of each process's linker RAM region (defaults 500K and 600K). It is a ceiling: the kernel allocates only what the image needs. |
UNA_APP_SERVICE_STACK_SIZE, UNA_APP_GUI_STACK_SIZE | Stack sizes (default 10 KB). SERVICE_STACK_SIZE and GUI_STACK_SIZE are accepted too; the LVGL examples set GUI_STACK_SIZE "24*1024". |
Boolean options accept On/Off/True/False/Yes/No/Y/N/1/0 in any case. Anything else stops the
build.
The ELFs land in the CMake project's own build/ folder (Software/Apps/MyApp-CMake/build/,
set by CMAKE_RUNTIME_OUTPUT_DIRECTORY), not in the -B folder. Their map files land in
Output/ (MyAppService.elf.elf.map, MyAppGUI.elf.elf.map). To see what the app uses:
arm-none-eabi-size Software/Apps/MyApp-CMake/build/*.elf
The whole image is loaded into RAM: text (code and constant data), data, bss and the
stack all sit in the one region of UNA_APP_*_RAM_LENGTH. When they don't fit, the link fails
with "region `RAM' overflowed"; raise the length or shrink the app.
UNA_SDK / una-app.cmake not found, or a failed compiler check: see the una-setup
skill.APP_TYPE/APP_AUTOSTART "is not a boolean" or an unknown type: fix the spelling in
CMakeLists.txt.Resources/icon_30x30.png and icon_60x60.png. Every app type but
Glance needs both; only a glance can set APP_USE_ICONS Off.sscanf, strtod…): apps link against the
kernel's C library exports, not a full libc. A function the kernel doesn't export either fails
to link, or pulls a copy into the app's RAM. Prefer the SDK's helpers, or simpler functions.lvgl sources missing: run git submodule update --init ThirdParty/lvgl in the
SDK.generated/ is missing or out of date.
Regenerate on Windows (skill una-new-app).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
una-watch, cmake-build, embedded, firmware-packaging, arm-none-eabi
7 skills in this plugin
/una-new-appStart a new UNA Watch app (activity, utility, glance or clockface) by copying the closest SDK example and renaming it. Covers choosing between a TouchGFX and an LVGL GUI, a fresh APP_ID, the paths to fix when the app lives outside the SDK, regenerating TouchGFX code, and converting LVGL fonts and images. Use when creating a UNA Watch app or watch face, when deciding which GUI toolkit to use, or when regenerating TouchGFX code or adding fonts or images to an app./una-setupSet up a machine to build UNA Watch apps. Installs an arm-none-eabi toolchain, CMake, a build tool and Python, clones the UNA SDK and sets UNA_SDK, on Windows, macOS, Linux or in Docker. Use when starting UNA Watch development, when a build can't find arm-none-eabi-gcc or una-app.cmake, or when UNA_SDK is unset./una-npx claudepluginhub unawatch/una-sdk --plugin una-sdkOther plugins' skills for the same job