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

Anne Barela · 2026年11月30日

AI 摘要 AI 生成,可能有误

Erich Styger 在 MCU on Eclipse 博客上发布的指南讲解了如何使用 west flash 命令行工具,将 Zephyr 应用程序烧录到 NXP FRDM-MCXN947 开发板上。文章介绍了 runner(即用于与调试探针通信的 Python 后端),包括该开发板默认的 NXP LinkServer,以及 SEGGER J-Link、OpenOCD 和 pyOCD 等替代方案,还讲解了如何选择或设置默认的 runner。该博文还指出,要让 pyOCD 支持这款芯片,需要安装一个较旧版本的设备包。

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

How do electrons move in a wire?

AI 摘要A beginner's Hackster demonstration shows that pressing a switch lights an LED instantly because the electric field propagates through the wire at nearly the speed of light, causing electrons all along the circuit to move at once. Individual electrons, however, drift very slowly—often less than a millimeter per second—as they collide with atoms and zig-zag toward the positive terminal. The article compares the wire to a conveyor belt already full of electrons, so the ones beside the LED enter it as soon as the belt starts moving.

Eight great programming books that are still must-reads

AI 摘要InfoWorld has highlighted eight programming books that remain must-reads, several of which are available free online. The list spans topics from building interpreters and learning Python to network programming, C, Git, and Lisp macros, and includes classics such as The Mythical Man-Month and Charles Petzold's Code.

Shard: pool compute and memory across Macs and Windows PCs over Ethernet to run bigger GGUF models locally with llama.cpp RPC

AI 摘要Maddie D. Reese has released shard on GitHub, a set of scripts that pool compute and memory across Macs and Windows PCs to run large GGUF models locally with llama.cpp RPC, with one machine coordinating while the others serve as workers. Machines connect via a gigabit switch with Cat6 cables and fixed addresses, with the model stored on the coordinator and workers receiving tensors when the model loads. In a demonstration, the setup answered 2 + 2 in 11 minutes and 51 seconds, and the code is MIT licensed.

Arcade Bonnet Controller #Adafruit Learn System

AI 摘要This guide explains how to wire a Mini Analog Joystick to the Adafruit Arcade Bonnet for Raspberry Pi. Arcade buttons connect to the bonnet using quick connect wires, making it easier to assemble a retro arcade controller or cabinet. The full guide is available in Adafruit's learn system.

A new, ‘bizarre’ spider, is named after a legendary Japanese ghost

AI 摘要A newly discovered spider species from Thailand, Cryptothele dorotabo, is the first of its ground-dwelling genus recorded in the country, identified through Micro-CT scanning of specimens collected during a 2018 survey. The tiny spider, whose females measure about 0.3 inches, coats itself in a thick layer of mud or soil debris, a behavior researchers are still trying to understand. The species was named after the Dorotabo, a one-eyed ghost from Japanese folklore said to be the spirit of a neglected rice field farmer who rises from the mud at night.