Skip to content

feat: release tiny-edge's NuttX agent for the ESP32-C6, and take tiny-edge 0.7.0 - #30

Merged
reubenmiller merged 1 commit into
mainfrom
feat/nuttx-agent
Nov 18, 2026
Merged

reubenmiller merged 1 commit into
mainfrom
feat/nuttx-agent

Conversation

@reubenmiller

Copy link
Copy Markdown
Contributor

Releases now carry the nuttx variant of tedge-agent for the ESP32-C6. It is tiny-edge 0.7.0's NuttX agent (NuttX 13.1, booting through MCUboot), set up over USB with tedge-onboard. Firmware name: tedge-agent-nuttx-esp32c6-devkitc; device type: thin-edge.io-nuttx.

Changes

  • release/devices.yml: framework: nuttx marks a variant built with tiny-edge's ports/nuttx/scripts/build.sh for the device's nuttx_board. A build's extra_conf are NuttX fragments, such as {tiny-edge}/ports/nuttx/configs/esp32s3-psram-octal.conf for a later S3 build.
  • matrix.py: validates the new fields and outputs nuttx_matrix.
    • A NuttX group names its framework, so its artifact doesn't collide with the same app's Zephyr builds.
    • <PROJECT>_DIR (TINY_EDGE_DIR) resolves {project}/... paths where west isn't installed.
  • scripts/release/build.sh: builds it with the release firmware name and apps/tedge-agent/VERSION.
  • package_nuttx.py: produces the same assets and meta.json as the other frameworks, reading slots, data partition, firmware name, device type and features from the build's NuttX .config. Its .app.bin is the update image (unconfirmed, booted on trial). The bundle holds MCUboot and the confirmed image for flashing.
  • release.yml: a build-nuttx job checks out the tiny-edge release west.yml pins and builds in tiny-edge's NuttX container.
  • scripts/flash.sh: flashes a NuttX bundle; --erase-storage erases its LittleFS data partition.
  • Docs: README (variant and file table; generated device table), the release notes' set-up text, and a DEVICES.md entry recording the agent's runs on the board (its measured).
  • Pins: west.yml and tedge-agent-idf take tiny-edge 0.7.0, which adds the NuttX port, a download idle timeout and a format fix in the core.

Testing

  • scripts/release/tests: 49 tests pass, including new ones for the NuttX matrix, its board requirement and TINY_EDGE_DIR.
  • scripts/release/build.sh tedge-agent-nuttx-esp32c6-devkitc in tiny-edge's NuttX container, against a fresh tiny-edge v0.7.0 checkout and NuttX clone: factory image, update image (1,415,320 B, 90 % of its slot), bundle and meta.json. scripts/flash.sh dry runs on the bundle give the expected commands (full, --app-only, --erase-storage).
  • The agent's tests on the board are recorded in DEVICES.md and tiny-edge's ports/nuttx/REPORT.md. Flashing a released image and updating it to the next release from Cumulocity (tiny-edge task 10.3) follows once two releases carry it.

🤖 Generated with Claude Code

…-edge 0.7.0

Releases now carry tedge-agent's `nuttx` variant for the ESP32-C6:
tiny-edge's NuttX agent (NuttX 13.1, booting through MCUboot), set up over
USB with tedge-onboard, with the same assets as the other images: a
factory image, the firmware update image, and a bundle scripts/flash.sh
flashes.

- release/devices.yml: `framework: nuttx` marks a variant built with
  tiny-edge's ports/nuttx/scripts/build.sh for the device's `nuttx_board`;
  the build's extra_conf are NuttX fragments. matrix.py validates it and
  gives it a matrix of its own (nuttx_matrix), whose group names the
  framework, so its artifact does not collide with the same app's Zephyr
  builds. <PROJECT>_DIR (TINY_EDGE_DIR) names a west project where west is
  not installed.
- scripts/release/build.sh builds it with the release firmware name and
  apps/<app>/VERSION; package_nuttx.py packages it from the build's NuttX
  configuration (slots, data partition, firmware name, device type
  thin-edge.io-nuttx, features). The update image may take at most 95 % of
  its slot (the agent takes 92 % of 1.5 MB).
- The release workflow checks out the tiny-edge release west.yml pins and
  builds in its NuttX container.
- scripts/flash.sh flashes a NuttX bundle; --erase-storage erases its
  LittleFS data partition.
- DEVICES.md records the agent's runs on the board; README and the
  release notes describe the variant.
- west.yml and tedge-agent-idf take tiny-edge 0.7.0 (the NuttX port; a
  download idle timeout and a format fix in the core).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@reubenmiller
reubenmiller merged commit 86338d4 into main Nov 18, 2026
24 checks passed
@reubenmiller
reubenmiller deleted the feat/nuttx-agent branch November 18, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant