Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>N32StudioNew to Visual Studio Code? Get it now.
N32Studio

N32Studio

NSING

|
169 installs
| (2) | Free
AI-powered N32 MCU development with Claude Code, N32Cube, code generation, build, flash, and debug workflows.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

N32Studio

简体中文

N32Studio is an AI-assisted development extension for Nationstech N32 MCUs. It brings Claude Code, N32Cube configuration, code generation, build, flash, and debug into one project workflow so you can develop embedded applications with natural-language collaboration.

Currently supported: Windows x64 and the N32H47x / H48x / H49x MCU series. macOS, Linux, VS Code for the Web, and other N32 series are not supported yet.

Requirements

  • Windows x64
  • VS Code 1.85 or later
  • N32H47x / H48x / H49x MCU project

What you can do

  • Open N32Cube to configure the MCU, clocks, pins, and peripherals.
  • Build, clean, flash, and debug N32 projects from VS Code.
  • Work with Claude Code using natural language for MCU configuration, code generation, and troubleshooting.
  • Submit issue reports with project context.

Quick start

  1. Install this extension from the Marketplace in Windows x64 VS Code.
  2. If the N32Studio view shows Install N32Studio Development Environment, select it and confirm the installation. The same view can launch the desktop app afterwards.
  3. Create a project in the N32Studio desktop app, or import an existing VS Code project, then select Open Project.
  4. Select N32Cube in the VS Code status bar to configure hardware and generate code.
  5. After code generation, use Build, Flash, and Debug to validate the project.

Opening projects from N32Studio Project Management is recommended for the complete workflow.

AI-assisted development

Connected hardware context (Windows)

In a trusted local N32Studio project, the extension validates and runs its bundled NS-Flash CLI directly from native/win32-x64/ns-flash.exe in the extension installation directory. One NS-Link probe is selected automatically; multiple probes open a picker. Click the connected-target status item to refresh or change the probe.

The status item shows the detected MCU and internal Flash; its tooltip includes RAM when known, capacity source and timestamp. A probe's product name is not a development-board model. Unknown sizes remain unknown. Background polling only queries Windows PnP records. NS-Flash enumeration may open USB handles, so it runs only after a relevant topology change or an explicit request, with a fresh debugger/flash-tool occupancy check first. Automatic target detection is attempted once when a selected probe is attached; failures do not retry in the background. Focus changes, unrelated USB changes and debugger exit do not re-arm SWD. Use the tooltip to detect again. Hardware-reset detection requires user confirmation, wired NRST and an unoccupied probe; it may leave the CPU halted and is not exposed to agents. If you change a board without unplugging the probe, refresh manually.

Agents connected to the project's existing MCP can use n32studio_get_connected_target (optional refresh: true) and n32studio://connected-target. Cached results include freshness and selection status. Reading these does not start N32Cube or flash/erase the target. Agents must not replace the project's chip selection automatically.

J-Link USB probes are also inventoried using read-only Windows PnP data, with composite/CDC interfaces collapsed into one physical probe. Their status is probe connected; target not checked, not a claim that a target board is connected or disconnected. The MCP context identifies J-Link versus NS-Link, compatible backends, installed tool files and project-defined flash/debug entries. NS-Flash is not compatible with J-Link. Multiple probes across both kinds require a user selection. J-Link enumeration is cached for up to five seconds; explicit refresh bypasses that cache and never attaches to the J-Link target.

NS-Flash is temporarily injected into newly created VS Code terminals when the extension enables target detection, not persisted in Profile settings. Reload VS Code after updating the extension and reopen existing terminals; Windows user/system PATH is unchanged. n32studio.enableConnectedTarget disables monitoring; n32studio.nsFlashPath is an optional application-level executable override supporting ns-flash.cli/1. WSL/SSH extension hosts are not supported for local USB access.

Detection pauses during VS Code tasks/debug sessions and coordinates extension windows through a shared lock. Independently launched flashing/debugging programs are not fully observable; do not force access to a busy probe. The browser flashing UI is not embedded in this release.

N32Studio connects Claude Code with N32Cube. Describe the desired behavior directly and let AI assist with hardware configuration, initialization code, application code, error analysis, and project refinement.

After signing in to NSING AI and configuring Claude Code, try requests such as:

  • “Configure USART1 at 115200 baud.”
  • “LEDs are connected to PA3, PB3, and PA8. Create a running-light effect.”
  • “Configure a timer that interrupts once every second.”

Review AI changes before building, flashing, and debugging.

NSING AI usage

The NSING AI usage entry appears in the status bar only when the active workspace is an N32Studio project, NSING AI is signed in, and Claude Code is using NSING AI. Hover for a summary and select it to refresh.

Issue reporting

In an N32Studio project, use the status-bar Report action or run N32Studio: Report Issue from the Command Palette.

Commands

  • N32Studio: Open N32Cube
  • N32Studio: Build Project
  • N32Studio: Clean Project
  • N32Studio: Flash Project
  • N32Studio: Start Debugging
  • N32Studio: Report Issue
  • N32Studio: Show Build Output
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft