cannot program board, but can connect to it

Windows 11, NCS v2.3.0, VSCode

Hi,

I have a custom board that I am trying to flash, but I am failing.

The error in VSCode is this:

I tried manually flashing using a jlink script, but it also failed:

I see that the jlink is able to connect to the device via SWD, but for whatever reason the flash upload doesn't work.  I don't see an error message explaining the issue.

How can I diagnose the issue and flash this device?

This is one device among several in a batch, the others flash ok, this one doesn't.

I understand that sometimes manufacturing doesn't work out or whatever, but I'm very unclear on what could be specifically wrong here that SWD comms work, but flashing doesn't.

I don't want to give up on this device since it's lost money.  Can you please help me look into this and solve the issue?

Thanks.

Doug