# Emcraft SOM-NRF9151 on its BSB baseboard, driven from a brintOS machine over # a SEGGER J-Link on P4 (SWD) granted through WebUSB. # # The adapter goes through the station's seam, mfg-jtag.cfg, like every other # per-SOM config in this image. Its default there is the F7 bench's Olimex, so # this config names the J-Link first; `som-program-nrf91 --adapter `, or # BRINTOS_JTAG_IFACE set before this file is sourced, overrides it. if {![info exists BRINTOS_JTAG_IFACE]} { set BRINTOS_JTAG_IFACE interface/jlink.cfg } source [find mfg-jtag.cfg] # The nRF91 is SWD-only, and the J-Link offers JTAG first. transport select swd source [find target/nordic/nrf91.cfg] # nrf91.cfg sets 1000 kHz and warns that flash programming fails above 2000. # 1000 is also what this board needed natively (nrfutil, 2026-09-28). There is # no reset handler that changes it, so this one line governs the whole run. if {![info exists BRINTOS_JTAG_SPEED]} { set BRINTOS_JTAG_SPEED 1000 } elseif {$BRINTOS_JTAG_SPEED > 2000} { echo "Warn : BRINTOS_JTAG_SPEED $BRINTOS_JTAG_SPEED kHz capped at 2000" set BRINTOS_JTAG_SPEED 2000 } adapter speed $BRINTOS_JTAG_SPEED