Skip to content

v0.5.0

Choose a tag to compare

@Klievan Klievan released this 26 Aug 20:55
· 65 commits to main since this release
dd5c3ab

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

  • reset did 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, and reset(halt) verifies its own postcondition by following VTOR to the reset vector.
  • Session teardown never disarmed anything. FPB comparators, DWT functions, FP_CTRL and DEMCR are 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 rttConnected guard asked whether a state enum read GDB_RUNNING, when the question it meant to ask was whether the GDB server was running.

Changed

  • Reset strategy is selectable via strategy on the reset tool. Omitting it lets J-Link pick the right sequence for the device, which is what SEGGER recommends. The hand-rolled DEMCR.VC_CORERESET vector 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_RTT symbol. 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.