How to unbrick a dead XIAO using ST-LINK and OpenOCD

Hi fredfishface,
The two posts I wrote are intended to restore XIAO_SAMD21. I don’t think they can be applied directly to XIAO_nRF52940.
Is the script you wrote for the nRF52840?