Binho Atira for VS Code
Power, flash and debug Cortex-M targets through the Binho Atira debug probe, without leaving the editor and without writing a launch.json.

- Probe: see the connected Atira, its firmware, and the target rail's voltage, current and power, refreshed every second.
- Target power: power the target from Atira at 1.2, 1.8, 2.5, 3.3 or 5.0 V, or any voltage from 1.20 to 5.00 V, or let it run on its own supply and match Atira's I/O to it. Atira's debug and UART pins run at that voltage, so it must be on to flash or debug.
- Target: choose the chip on your board from a CMSIS device pack you already have, or from the chips built into pyOCD.
- Flash: program an ELF, HEX or BIN file. Erase the chip, reset it, or recover a locked one.
- Debug: start a debug session on the chosen ELF: breakpoints, stepping, variables, registers and peripherals.
- Status bar: Atira's power (click for Power Settings), the target chip (click to change it), and Flash and Debug buttons.
- UART console: Atira's UART bridge in Microsoft's Serial Monitor (baud, framing, line ending, Clear, and hex or text with timestamps in its toolbar), opened with every debug session. Release the port to use it from another program.
- RTT console: SEGGER RTT channel 0 over the debug pins, in Serial Monitor, with or without a debug session. No UART wiring.
- SWO console and Trace view: ITM text through the SWO pin, and, while the target runs, where the CPU spends its time, how often each interrupt runs and for how long, and values the firmware sends.
Install
Install Binho Atira from the Extensions view: search for Atira. VS Code installs Arm CMSIS Debugger with it. Everything that talks to Atira comes with the extension: there's nothing else to install or build.
From a .vsix file (team builds): Extensions → … → Install from VSIX…. If the Atira view doesn't appear afterwards, open the extension in the Extensions view: VS Code may have left it disabled until you trust its publisher (binho). Enable it there.
Requirements
- Windows x64, or Linux x64 with glibc 2.38 or later (Ubuntu 24.04, Debian 13, Fedora 39 and newer).
- An Atira running firmware 1.1 or later.
- Arm CMSIS Debugger, installed with this extension. It provides the pyOCD and GDB that flash and debug the target, and brings Microsoft's Serial Monitor, which shows the UART and RTT consoles. The RTT console needs version 1.10 or later.
- The CMSIS device pack for your chip (see Device packs).
Wiring
Programming Port to the target's SWD pins: pin 1 target power (from Atira, at the voltage you choose), 2 SWDIO, 3 GND, 4 SWCLK, 10 nRESET.
6-pin Serial Interface Port, optional: pin 1 GND, pin 4 Atira TX to the target's RX, pin 5 Atira RX from the target's TX. Pin 3 carries Atira's rail; leave it unconnected. Or use the 3-pin UART Port on the front: pin 1 Atira TX, 2 GND, 3 Atira RX.
Two ways to power the target. From Atira: unplug the board's own USB or supply first; Atira refuses when it sees a voltage on pin 1. On its own supply: connect pin 1 to the target's supply (VTref). Atira measures it and offers to match; its I/O, and so its debug and UART pins, comes on only when you choose Match. Set I/O Voltage runs it lower, after a warning; never higher.

Getting started
- Plug in the Atira and open the Atira view in the Activity Bar.
- Click Power Target from Atira next to the Supply row, choose the target's voltage, and confirm. The status bar item opens the same Power Settings menu.
- In the Target view, click Select Target, pick a device pack, then the chip on your board; or pick the chip from Built into pyOCD, at the end of the list. Not sure which chip it is? Detect the Connected Chip reads it from the board itself (its maker and core) and lists that maker's chips first. Once a chip is chosen, the view warns if the connected one doesn't look like it.
- Click Flash or Debug in the Target view and choose the firmware image. Your build outputs in the workspace are offered first.
Debugging also works from Run and Debug, where an Atira section shows the probe and target power. Starting a session with power off offers to power the target.
On Linux
- USB access. Linux lets only root open the Atira until udev rules allow it. The first time, the extension says so and offers Install udev Rules; it opens a terminal with the
sudo commands, and the Atira connects once you type your password. Atira: Install udev Rules (Linux) does the same at any time.
- UART console. The rules give the serial port to the user logged in at the machine. Over WSL, SSH or a headless session, add yourself to the
dialout group, then log out and back in: sudo usermod -aG dialout $USER.
Device packs
What a pack is. A CMSIS device pack describes a chip family: its memory, how to program its flash, and its peripheral registers (what Peripheral Inspector shows while debugging). Chip vendors publish them, as one .pack file per family. The extension uses packs you already have; it never downloads one for you.
Do you need one? Not for the chips built into pyOCD, such as Nordic's nRF54L15 (nrf54l) and nRF52840 and Raspberry Pi's RP2040: they are listed last in Atira: Select Target, marked built-in. Peripheral Inspector shows no registers for them yet. For any other chip, yes.
Getting one: find the pack for your chip on the Arm pack index, or on its vendor's website, and download the .pack file.
Choosing it: Atira: Select Target finds packs in three ways:
- Use a pack file takes any
.pack file, such as the one you downloaded.
- Add a pack folder remembers a folder you keep packs in, and lists its packs every time.
- Search for packs on this computer looks where other tools install them: Keil Studio and
cpackget (CMSIS_PACK_ROOT, %LOCALAPPDATA%\Arm\Packs), Keil MDK (C:\Keil_v5\ARM\PACK) and pyOCD. It reads those folders only when you click it.
Then choose the chip on your board from the pack's list. In Select Target, What's a device pack, and where do I get one? gives the same summary inside VS Code, with a link to the Arm pack index.
RTT console

RTT (SEGGER Real-Time Transfer) lets firmware print, and read what you type, through the debug pins: the firmware writes into a buffer in RAM and pyOCD reads it while the target runs. The firmware needs an RTT implementation; the PC side is pyOCD's own.
Adding RTT to your firmware, printing to channel 0:
- C: add SEGGER's RTT sources (SEGGERMicro/RTT) and call
SEGGER_RTT_WriteString(0, "hello\r\n") or SEGGER_RTT_printf(0, ...). For plain printf, send _write() to SEGGER_RTT_Write(0, buf, len). Typed text arrives through SEGGER_RTT_Read().
- Zephyr:
CONFIG_USE_SEGGER_RTT=y, with CONFIG_RTT_CONSOLE=y for printk or CONFIG_LOG_BACKEND_RTT=y for logging.
- Rust: the
rtt-target or defmt-rtt crates.
Atira: Open RTT Console, or the button on the RTT row, opens it in Serial Monitor. It finds RTT's control block through the _SEGGER_RTT symbol of the last ELF you flashed or debugged, so it needs that ELF, not a stripped one. The console stays open across debug sessions, flashing and power cycles:
- with no debug session, pyOCD attaches to the running target to read RTT, without halting or resetting it;
- during a debug session, the session reads RTT itself. That includes a session from your own
launch.json (a gdbtarget with pyOCD on the Atira): the extension appends its pyOCD options to yours when it starts. A stream your configuration sets up itself (its own --config or --script) is left to it, and the console says why. atira.liveInOwnLaunch turns this off.
Serial Monitor shows it as a TCP connection to 127.0.0.1: a port on this computer only, where the extension passes RTT through. Leave its host and port as they are. Lines starting with [Atira] come from the extension, not the target. Stopping the tab in Serial Monitor pauses reading (Start there resumes it); Atira: Stop Reading RTT closes it. Once no console needs it, the extension lets go of the probe.
SWO and the Trace view
SWO (Serial Wire Output) is one more pin of the Programming Port, pin 6: wire it to your target's SWO pin (PB3 on STM32). The core's trace hardware reports through it while your program runs, without stopping it. It needs a Cortex-M3 or later (not M0/M0+), and the CPU clock: the extension reads the firmware's SystemCoreClock while it runs, so build with CMSIS's system file, or set atira.swo.cpuClockHz.
Atira: Open SWO Console, or the button on the SWO row, shows ITM port 0 text in Serial Monitor. Firmware writes it with CMSIS's ITM_SendChar(c); sending printf there takes a _write() that calls it.
The Atira Trace view in Run and Debug, after Start:
- Profile: the functions the CPU was in, by share of samples of its program counter, with names from your ELF;
- Interrupts: each exception and interrupt, how many times it ran since Start or Reset, how often per second, and its average and longest time;
- Values: numbers your firmware writes to ITM ports 1–31 (
ITM->PORT[1].u32 = value;), with a small chart.
The checkboxes switch PC sampling and interrupt trace. Each one needs bandwidth: when the SWO line is full, the trace hardware drops packets and the view counts them; text and values are never dropped. While the debugger holds the target at a breakpoint the view pauses, so the stop isn't counted as time spent in an interrupt. Reset starts the counts over.
Like RTT, SWO works with or without a debug session, your own launch.json included. A session reads it itself when the console or the Trace view is open at its start; open them later and the extension offers to restart the session with SWO, since pyOCD sets SWO up only when a session starts.
Firmware
The extension needs Atira firmware 1.1 or later; 1.2 or later lets Atira's I/O go down to 1.2 V. The Atira view shows the firmware of the connected probe.
To update it, use Binho Airlock, Binho's firmware updater, in Chrome or Edge (it needs WebUSB, which Firefox and Safari don't have):
- Close the VS Code windows that use the Atira, so the browser can reach it.
- Open dfu.binho.io, choose Connect and pick the Atira. It switches to its bootloader by itself.
- Follow the steps on the page to install the latest firmware.
- Reopen VS Code: the Atira view shows the new version.
On Linux, the browser needs permission to open the Atira over USB. If it doesn't appear in the list, see On Linux.
Commands
| Command |
|
| Atira: Select Probe |
With several Atiras plugged in, chooses which one this window uses, by serial number. The choice is kept for the workspace. |
| Atira: Show Log |
Opens the Atira output log. |
| Atira: Power Settings |
The Power menu: power the target from Atira or match a target on its own supply, change the voltage, or turn it off. |
| Atira: Power Target from Atira |
Chooses a voltage and powers the target from Atira. |
| Atira: Change Target Voltage |
Restarts the target at another voltage. |
| Atira: Match I/O to Target Voltage |
A target on its own supply: Atira's I/O pins at the target's voltage. |
| Atira: Set I/O Voltage |
A target on its own supply: Atira's I/O at a lower level you choose. |
| Atira: Turn Power Off |
Turns target power and Atira's I/O off. |
| Atira: Select Target |
Chooses the chip, from a device pack or built into pyOCD. |
| Atira: Clear Target |
Forgets the chip chosen for this workspace. |
| Atira: Search for Device Packs |
Looks for installed packs on this computer. |
| Atira: Add a Device Pack Folder |
Adds a folder to the packs Select Target lists. |
| Atira: Flash |
Programs an ELF, HEX or BIN file. |
| Atira: Debug |
Starts a debug session on an ELF file. |
| Atira: Reset Target |
Resets the target, which then runs its program. |
| Atira: Erase Chip |
Erases all of the chip's flash, after a confirmation. |
| Atira: Recover Locked Chip |
Unlocks a protected chip (Nordic APPROTECT, for example) by erasing all of it, after a confirmation. |
| Atira: Open UART Console |
Shows Atira's UART bridge in Serial Monitor, opening the port if needed. |
| Atira: Release UART Port |
Lets go of the port, so another program (PuTTY, a terminal app) can open it. |
| Atira: Open RTT Console |
Shows RTT channel 0 in Serial Monitor, read by pyOCD with or without a debug session. |
| Atira: Stop Reading RTT |
Closes the RTT console and lets go of the probe. |
| Atira: Open SWO Console / Close SWO Console |
ITM port 0 text from the SWO pin, in Serial Monitor. |
| Atira: Start Trace / Stop Trace / Reset Trace |
Collects the Atira Trace view's profile, interrupts and values. |
Settings
| Setting |
Default |
|
atira.uart.baudRate |
115200 |
Baud rate the UART console starts at; Serial Monitor's toolbar changes it while it runs. |
atira.uart.lineEnding |
crlf |
What Enter sends when the console starts. |
atira.uart.openOnDebug |
true |
Open the UART console when a debug session starts. |
atira.swo.cpuClockHz |
0 |
The target's CPU clock for SWO; 0 reads SystemCoreClock from the running firmware. |
atira.trace.pcSampling |
true |
Sample the program counter for the Trace view's profile. |
atira.trace.interrupts |
true |
Trace interrupt entry and exit for the Trace view. |
atira.liveInOwnLaunch |
true |
Sessions from your own launch.json serve RTT and SWO too; off runs your configuration exactly as written. |
atira.packFolders |
[] |
Folders Select Target lists packs from. |
atira.sdkBridgePath |
|
For development: a different atira-sdk-bridge executable. |
Troubleshooting
When Flash, Debug, Erase, Reset or a console can't do its job, the message says why and offers the next step:
- The target doesn't answer: check the cable, that the target has power, and that Atira's I/O voltage matches it.
- Atira's I/O is off: the message offers Match or Power from Atira, next to Power Settings.
- The chip is locked: choose Recover to unlock it. It erases the whole chip.
- The wrong target is selected: choose Select Target and pick the chip on your board.
- No flash algorithm: the device pack doesn't say how to program this chip's flash. Try another pack, or the chip built into pyOCD.
- Atira switched target power off by itself: usually too much current (over 500 mA) or a short: check the target. Or a supply of the target's own came on: use one supply, or, to run from the target's, choose Match when Atira offers it, or Match I/O to the target in Power Settings.
Also good to know:
- Several Atiras on one PC. The first time, the extension asks which one this window uses, by serial number, and keeps it for the workspace. The Atira view counts them; click the count, or run Atira: Select Probe, to switch.
- One VS Code window per Atira. Two windows talking to the same Atira get each other's replies. Close the other window first.
- A console looks blank or flickers: Serial Monitor needs a panel tall enough to draw its console. Drag the panel taller.
- Timestamps in a console: Serial Monitor shows them in text view only, not in hex.
- Stepping over a busy-wait loop can look like a hang: GDB single-steps until the loop ends. Use Pause, or put a breakpoint after the loop.
- The Atira output channel logs everything the extension runs, including each pyOCD command.
Feedback and support
Report a bug or ask a question at Binho Support. For Atira itself, see its product page.
License
Binho 5-Clause License, modelled on the Nordic 5-Clause license. You may use, modify and redistribute the extension, with or without changes, as long as it is used with Binho hardware. Binary parts may not be reverse engineered, except as libusb's license requires. See LICENSE for the full terms, and ThirdPartyNotices.txt for the open-source components it includes.
Working on the extension itself? Start with CONTRIBUTING.md in its repository.
| |