Flashing Zephyr applications with west flash: runners, LinkServer, J-Link & more

Anne Barela · 2026年11月30日

AI 摘要 AI 生成,可能有误

Erich Styger's guide on MCU on Eclipse explains how to flash Zephyr applications on an NXP FRDM-MCXN947 board using the west flash command-line tool. It describes runners—Python backends that communicate with debug probes—including the board's default NXP LinkServer, along with alternatives like SEGGER J-Link, OpenOCD, and pyOCD, and how to select or set a default runner. The post also notes that getting pyOCD to work with this chip required installing an older device pack.

Erich Styger has posted a guide on MCU on Eclipse to programming a board with west flash. It’s the command line tool that comes with the Zephyr RTOS. The post follows an earlier one on building Zephyr’s Blinky example. The board used here’s the NXP FRDM-MCXN947.

A runner does the flashing. It’s a Python backend that talks to a debug probe. Each board has a default runner. For this board, that’s NXP LinkServer. Plain west flash builds the application, then programs and the starts it.

Other runners include SEGGER J-Link, OpenOCD and pyOCD. The runner can be picked per build or set as the default. The post also covers getting pyOCD working with this chip. That one needed an older device pack.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Adafruit Blog

The Python on Microcontrollers Newsletter: subscribe for free

AI 摘要The Python for Microcontrollers Newsletter is a free, ad-free weekly email covering the latest news about Python on hardware, including microcontrollers and single-board computers like Raspberry Pi. It delivers a weekly roundup of CircuitPython, MicroPython, and Python software, events, projects, and hardware updates, arriving Mondays around 11 am US Eastern time. Readers can subscribe for free, cancel anytime, and are encouraged to share it with friends and colleagues.

Announcing the PSF Security Roadmap for Python and PyPI

AI 摘要Seth Michael Larson has published the PSF Security Roadmap for Python and PyPI on the Python Software Foundation blog, outlining the Foundation's security priorities for the coming year. Key initiatives include expanding the PyPI malware reporting API—whose high-confidence reports can automatically quarantine projects, as demonstrated when the Telynx supply-chain attack was shut down in under three hours—plus a new Malware Triager role. Additionally, the Python Security Response Team is now publishing about four times as many vulnerabilities, largely due to LLMs finding bugs in open source code, while Emma Smith, Bénédikt Tran, and Seth Larson are writing a PEP on quantum-safe algorithms.

Building and programming the pocket MINIL computer

AI 摘要The Pocket MINIL Computer, published on Technoblogy, is a handheld machine-code trainer with a hexadecimal keypad that runs a simplified one-byte instruction set called MINIL, displaying the corresponding assembler statements as opcodes are entered. Its built-in development environment offers breakpoints, single-stepping, and a slow mode that pauses to show register contents, and it comes with eight example programs including Fibonacci and long division. The device is built around an AVR64DD14 chip with a 128×64 OLED display, reads keys via a resistor ladder on one analog input, and is powered by two AAA cells whose holder doubles as a stand.

retro-bionic: a circuit board to run retro hardware CPUs

AI 摘要Tadashi G. Takaoka has released Bionic on GitHub, a circuit board that runs real vintage CPUs such as the Z80, which can be stepped one bus cycle at a time from a terminal. A Teensy 4.1 wired to all processor pins drives the clock, bus cycles, and emulated memory and peripherals, while a single firmware image provides an assembler, disassembler, and debugger for every supported chip. The two-board hardware, with CPU boards mapping signals via small pinout files, is licensed under the Apache License, Version 2.0.

ICYMI: The Python on Microcontrollers Newsletter: CircuitPython 11 Beta, VS Code Decline, 700 CP Boards, Dabao Support and More!

AI 摘要This ICYMI edition of the Python on Microcontrollers Newsletter highlights the release of CircuitPython 11.0.0-beta.0 with a new displayio built on LVGL, the milestone of 700 CircuitPython-compatible boards, and a new CircuitPython port for the Dabao chip. It also covers declining VS Code usage as AI coding tools like Claude Code rise, a browser-based MicroPython editor called Pico Pipette, and the Python Software Foundation reopening its Grants Program with a $125,000 round. The issue rounds out with community projects, updated Adafruit learning guides, and CircuitPython library updates bringing the total to 605 libraries.