type: worklist status: current summary: Open work on the external flash loaders: the L432 state-capture script, watchdog refresh in the ST entry points, untested MassErase, and NAND loader distribution.
Loaders Worklist
Delete an item when it is done. Runtime rules are in Loader Runtime Design.
tag_capture_state.pydoes not work on STM32L432. Its SRAM step requests 256 KB (the U375's size) and fails, and its backup-register step also fails. Both come from U375 constants in the script. For the backup registers it writes the U375'sRCC_APB1ENR1at0x40030C9C(RTCAPBENis bit 30 there). On the L432 that address maps to nothing; the register is at0x40021058, withRTCAPBENat bit 10. The internal-flash regions capture correctly. Until this is fixed, read the backup registers by hand: under reset, enableRCC_APB1ENR1_RTCAPBEN, then read0x40002850, 128 bytes.- The ST entry points do not refresh the watchdog.
Serve()does: it writesIWDG_KR = 0xAAAAwhile it waits for commands. The ST entry points do not. A tag whose option bytes select the hardware watchdog (FLASH_OPTR.IWDG_SW= 0) has it running from reset, and the debug freeze covers only a halted core. A long run of loader code would then be cut off by a reset, a mass erase above all. The bench PresTag uses the software watchdog, so it is unaffected. The fix is anIWDG_KR = 0xAAAAwrite in the poll loops, which has no effect when the watchdog is not running; see SWD Capture and Recovery Library. MassEraseis untested. It has not been established whether-e allwith a loader loaded also erases internal flash, and it was not tried on a tag with firmware worth keeping. Sector erase is tested, through the programmer's erase-before-write.- Distribute the NAND loader?
IMUTagNandBmp581is a distributed tag, butGD5F2GM7RE_IMUTagNandv2is not markedDISTRIBUTE, unlike the AT25XE loaders, so it does not ship in the firmware release beside the tag it reads. - Run the linear path through
tag-captureon a PresTag. The AT25 loaders use the same code throughtag-captureas throughtag-xflash dump. The U375 loader plan recorded on 2026-10-02 that this combination had not yet been run on a PresTag.