i have a custom board with an nrf52840, i use a J-link programmer to flash the chip with the nrf connector programmer app.
I am able to read the memory and erase the chip, however when i try to write any hex to the device it fails with an error. when using j-flash lite it also fails most of the time but the point where it fails is random and in rare cases it doesn't fail though this chance decreases as the hex size increases. The error J-flash reports is ERROR: Could not download file. and J-link commander is even less helpful with Error while programming flash: Programming failed.
the things i tried to flash are:
particle boron firmware
s140 softdevice
an arduino bootloader
all with the same result
i have measured the power supply on the board and it is 3.3v without any large dips
on a dev board with the same chip and everything connected in the same way it flashes successfully so i suspect a hardware issue.
any suggestions to where i could look are welcome
the nrf connect log: https://pastebin.com/vqJjujn9