hsb-flash
Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands.
Install / Use
npx skills add NVIDIA/skills --skill hsb-flashInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Customer SupportSupported Platforms
Tags
Our assessment of hsb-flash
hsb-flash scores 93/100 on our quality scale, 60th of 225 Customer Support skills we index (top 27%).
Its SKILL.md is 17 KB long, well organised into 17 sections with 2 code examples: a thorough specification that gives an agent plenty to work with.
With 3,421 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 5 days ago, so hsb-flash is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
hsb-flash compared with similar skills
All 4 of these similar skills score higher than hsb-flash; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| hsb-flash (this skill)by NVIDIA | 93 | 3.4k | 5d ago | SKILL.md |
| algorithmic-artby anthropics | 100 | 177.9k | 6d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 6d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 130.2k | 7d ago | SKILL.md |
| ui-ux-pro-maxby nextlevelbuilder | 100 | 130.2k | 7d ago | SKILL.md |
Frequently asked questions
- How do I install hsb-flash?
- Run
npx skills add NVIDIA/skills --skill hsb-flash. The install tabs above show the steps for each supported agent. - Which AI agents does hsb-flash work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is hsb-flash safe to use?
- It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is hsb-flash still maintained?
- The repository was last updated 5 days ago, so hsb-flash is actively maintained.
Skill content
View source on GitHubname: hsb-flash description: Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands. Lattice and VB1940 commands must never be mixed. author: "Holoscan Team holoscan-team@nvidia.com" license: "Apache-2.0" version: "1.0.0" tags:
- holoscan-sensor-bridge
- hsb
- fpga-flashing tools:
- Read
- Write
- Edit
- Grep
- Glob
- Bash
disable-model-invocation: true
allowed-tools: Read,Write,Edit,MultiEdit,Grep,Glob,Bash
metadata:
author: "Holoscan Team holoscan-team@nvidia.com"
team: holoscan
tags:
- holoscan-sensor-bridge
- hsb
- fpga-flashing agents:
- claude-code
- codex
HSB FPGA Flash
Use this skill when the user wants to flash (upgrade or downgrade) the FPGA firmware on an HSB board connected to a supported NVIDIA devkit.
This skill supports two board types:
- HSB Lattice boards — standalone FPGA board with a Lattice CPNX100 FPGA
- Leopard Imaging VB1940 — "all-in-one" camera with an integrated Lattice FPGA
CRITICAL SAFETY RULE: Never mix board-type commands. Using program_leopard_cpnx100 on a Lattice board or program_lattice_cpnx100 on a VB1940 can permanently brick the device. The skill must detect and confirm the board type before any flash operation, and refuse to proceed if the board type is ambiguous or mismatched.
This workflow has side effects (it permanently modifies FPGA firmware). Never run it automatically. Only run it when the user explicitly invokes it.
Usage warning: This skill flashes the FPGA with new firmware. Before invoking it, ask the user to make sure they have enough Claude Code usage/tokens to complete the workflow.
Before you start — required gates (do these first, in order)
Gate 1 — Read environment variables. Before doing anything else, check these variables and print their resolved values to the user:
SSH_TARGET Remote devkit login (e.g. nvidia@192.168.1.50). Ask the user if not set.
REMOTE_ROOT Remote working directory (e.g. /home/nvidia). Ask the user if not set.
REMOTE_SUDO sudo / sudo -n / "" — default to "sudo" if not set.
REMOTE_SSH_OPTS Additional SSH options (optional).
HSB_PLATFORM Platform hint (optional).
SSH_TARGET and REMOTE_ROOT are required. Stop and ask the user for them if either is missing.
Gate 2 — Present the flash summary and phase plan. Before taking any action:
If the user's request already includes board type, current FPGA version, and target FPGA version, state the following before the phase plan: flash tool (program_lattice_cpnx100 for Lattice, program_leopard_cpnx100 for VB1940 — never mix), manifest release and filename, CLI flags (--force --accept-eula), whether the procedure is single-step or two-step via gateway 2412. For VB1940, also state that no v2.0.0 interim repo is needed. For two-step upgrades from FPGA 2407, state that step 1 uses hololink --force fpga_version (not hololink enumerate, which is incompatible with FPGA 2407) and uses v2.0.0 flag placement: hololink --force program scripts/manifest.yaml --accept-eula (--force before the subcommand).
Then show the phase plan and ask explicitly: Shall I proceed with the flash workflow? [Y/n] — do not start Gate 3 until the user confirms:
HSB Flash — Phase Plan
Phase 0: Token-budget preflight
Phase 1: Verify board connectivity, detect board type (Lattice or VB1940), read FPGA version
Phase 2: Select target FPGA version
Phase 3: Prepare flash infrastructure and YAML files, present flash plan for approval
Phase 4: Execute flashing procedure (with power cycle verification)
Phase 5: Summary report (with option to save)
Phase 6: Clean up flash artifacts
Gate 3 — Token-budget preflight (Phase 0). Run after the phase plan (Gate 2) has been presented and the user has confirmed. Do not run the token-budget check before the phase plan is shown. Do not proceed to Phase 1 until the budget check passes.
Gate 4 — Confirm board type explicitly. Before any flash command, confirm with the user whether the board is Lattice or VB1940. Never mix program_lattice_cpnx100 and program_leopard_cpnx100 — wrong tool can brick the device.
Instructions
Invoke this skill by typing /hsb-flash [OPTIONS]. The skill detects the board type automatically, presents a flashing plan, and prompts for confirmation before each flash step. See references/help-text.md for the full --help output.
What this skill must do
- Run the mandatory token-budget preflight before any remote command, repo checkout, container build, or flash preparation. Estimate the tokens needed to complete all phases, check the user's remaining subscription-plan usage with the best available Claude Code/account usage mechanism, display the estimate and result to the user, and stop if the available budget is insufficient or cannot be verified.
- Verify that an HSB board is connected to a devkit, that SSH and board connectivity work, read the current FPGA version, and identify the board type (Lattice or VB1940). Try
hololink enumeratefirst; if it fails (which is expected for FPGA 2407 boards), fall back tohololink --force fpga_version. For Lattice boards, if all methods fail with the existing repo's container, checkout HSB release repo v2.0.0 and retry using the v2.0.0 container. If that also fails, assume the version is 2407 and continue. For VB1940 boards, ask the user if the version cannot be read. - Ask the user for the target FPGA version they want to flash to (or accept "latest"). The available versions depend on the board type.
- Handle undocumented FPGA versions (applies to both Lattice and VB1940): If the current or target FPGA version is not listed in this skill's supported versions or mapping tables, it may belong to a newer HSB release not yet documented here, or it may be an unreleased development build. Proceed as follows:
- Check for a newer release: Fetch the public release notes at
https://github.com/nvidia-holoscan/holoscan-sensor-bridge/blob/main/RELEASE_NOTES.mdand look for a release that introduces the undocumented FPGA version. If a matching release is found, checkout that release repo on the devkit and use it for flashing following the same rules described below for the detected board type. Also update this skill's mapping tables, supported FPGA versions lists, and transition matrices with the new release and its corresponding FPGA version. - Development or unreleased FPGA: If no published release corresponds to the FPGA version, use the existing HSB repo already on the devkit (from
/hsb-setup) to flash, following the same rules for the detected board type. If the flash fails, report the error and prompt the user for further instructions.
- Check for a newer release: Fetch the public release notes at
- Determine the correct flashing procedure and prepare flash scripts and YAML files:
- Lattice boards:
- Read the FPGA version currently flashed on the HSB board. Determine the required HSB release repo based on the flash direction: for upgrades, use the repo corresponding to the target FPGA version; for downgrades, use the repo corresponding to the current FPGA version (see "FPGA version to repo mapping" below). Checkout this repo if it does not already exist on the devkit.
- Copy the target FPGA manifest YAML from the relevant
scripts/directory of this skill to the checked-out repo, and patch the file as needed for any missing details (e.g.,fpga_uuid). - Determine the flashing procedure:
- Single-step upgrade: If the current version is 2412 or newer and the target is also 2412 or newer, or if upgrading from any version to exactly 2412. Flash directly from the current version to the target using the repo that corresponds to the target FPGA version (see "FPGA version to repo mapping").
- Single-step downgrade: If both the current and target versions are 2412 or newer. Flash directly from the current version to the target using the repo that matches the current FPGA version.
- Two-step downgrade: If the target is older than 2412 (i.e., 2407) and the current version is newer than 2412. Step 1: flash from the current version to 2412 using the repo that matches the current FPGA version. Step 2: flash from 2412 to the target using HSB release repo v2.0.0. Power cycle required between steps. (Special case: if the current version is exactly 2412, only step 2 is needed.)
- Two-step upgrade: If the current version is older than 2412 (i.e., 2407) and the target is newer than 2412. Step 1: flash from the current version to 2412 using v2.0.0 (which corresponds to target FPGA 2412). Step 2: flash from 2412 to the target using the repo that corresponds to the target FPGA version. Power cycle required between steps.
- Read the user guide of the HSB repo being used for flashing and extract the flash command. Always add
--forceand--accept-eulato ensure non-interactive execution inside the container. Note: v2.0.0 places--forcebefore the subcommand and--accept-eulaafter — see "v2.0.0 CLI flag placement" below. - After flashing is complete, clean up all interim HSB release repos that were checked out by this skill and differ from the user's original repo that existed on the devkit before the skill was invoked.
- VB1940 cameras: Use the existing HSB repo on the devkit directly (no v2.0.0 interim repo needed). Flashing is always single-step. Present the full flashing plan to the user for approval.
- Lattice boards:
- Execute the flashing procedure:
- Perform required pre-flash safety checks (ping board, confirm board type and current FPGA version).
- Run each flash step with full logging; announce the operation before flashing.
- Require explicit user confirmation before each critical flash and after any required board/camera power cycle.
- All program commands must be executed inside the demo container (no sudo needed within the container).
- After flashing, verify the new FPGA version matches the intended target before proceeding.
- Handle any error or mismatch by stopping the workflow, reporting the state, and offering to clean up.
- Produce a summary report of the entire procedure with the option to save it.
- Clean up all flash artifacts so the devkit is ready for the user to checkout any HSB release they need.
Supported board types
| Board Type | Identifier | Description |
|------------|-----------|-------------|
| Lattice | lattice | HSB Lattice CPNX100-ETH-SENSOR-BRIDGE standalone FPGA board |
| VB1940 | vb1940 | Leopard Imaging VB1940 "all-in-one" Eagle Camera with integrated Lattice FPGA |
The board type is detected from the hololink enumerate output during Phase 1 and confirmed with the user. If detection is ambiguous, the user must explicitly specify the board type.
Supported FPGA versions
Lattice board FPGA versions
| Version | YAML Source Release | Notes | |---------|-------------------|-------| | 2407 | v2.0.0 | Oldest supported version | | 2412 | v2.0.0 | Gateway version for two-step flashing | | 2507 | v2.3.1 | | | 2510 | v2.5.0 | Latest supported version |
VB1940 FPGA versions
| Version | YAML Source Release | HSB Release | Notes | |---------|-------------------|-------------|-------| | 2507 | v2.3.0 | v2.3.0 | | | 2510 | v2.5.0 | v2.5.0 | Latest supported version |
The VB1940 does not support versions 2407 or 2412 — these are Lattice-only.
Versions not listed above: FPGA versions newer than the latest documented version for either board type may still be flashable — see "Handling undocumented FPGA versions" below. For
Truncated for display — read the full file on GitHub.
Related Skills
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
130.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
ui-ux-pro-max
130.2kUI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
