Repository navigation
v0.5.0
The RTT / reset / teardown round. Every fix in this release was an operation that reported success while doing nothing — and every one was found by running against a real nRF52840-DK.
Fixed
resetdid nothing at all, and said it worked. The J-Link GDB server is a synchronous remote and stops reading stdin while the target runs, so every command of the reset sequence was refused in turn and the failure discarded. It now halts out of band first, andreset(halt)verifies its own postcondition by following VTOR to the reset vector.- Session teardown never disarmed anything. FPB comparators, DWT functions,
FP_CTRLandDEMCRare all written through the debug channel, and teardown happens while the target is running by definition — so the whole routine was refused, write by write, and reported "debug hardware disarmed" regardless. The guarantee that a session leaves the target bootable had never held over a live session. - A GDB server reported running when it had already exited. Startup returned on the spawn without waiting to see whether it got the probe. One test suite tore down, the next started 2.2 s later, lost the probe, and ran its entire length with no GDB server and no RTT.
- RTT went silent after a reset or a flash. The target was still logging and the probe had stopped collecting — 490 bytes written, none collected — which reads exactly like a quiet device.
- An assignment that was silently discarded took RTT out for the rest of a session. The
rttConnectedguard asked whether a state enum readGDB_RUNNING, when the question it meant to ask was whether the GDB server was running.
Changed
- Reset strategy is selectable via
strategyon theresettool. Omitting it lets J-Link pick the right sequence for the device, which is what SEGGER recommends. The hand-rolledDEMCR.VC_CORERESETvector catch is gone — J-Links default Cortex-M strategy already does exactly that.
Added
JLINK_RTT_ADDR/jlinkMcp.rtt.controlBlockAddress— the address of your firmwares_SEGGER_RTTsymbol. J-Link locates the control block by scanning RAM and never reports it back, so supplying it is what lets RTT survive a reset.
69/69 hardware, 240/240 unit. First fully green hardware run.