Hi,
My environment is Thingy:91 running Asset Tracker v2.
I am using nRF9160DK as an external debugger according to this doc https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/working_with_nrf/nrf91/thingy91_gsg.html.
The issue is that, flash binary to Thingy:91 often fails, while if I disconnect the 2*5 SWD cable between Thingy:91 and nRF9160DK, then flash binary the Asset Tracker v2 to nRF9160DK, it never fails.
So must be something wrong with the Thingy:91?
D:\ncs\v2.2.0>nrfjprog -v nrfjprog version: 10.19.0 external JLinkARM.dll version: 7.80c D:\ncs\v2.2.0>nrfjprog --log --program D:\ncs\test\asset_tracker_v2_origin\build\zephyr\merged.hex --sectorerase --verify -f NRF91 --snr 960070889 [ #################### ] 12.988s | Erase file - Done erasing [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [error] [ nRF91] - The write access failed, but no cause could be determined. [error] [ nRF91] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue. [error] [ nRF91] - Failed writing to code! [error] [ nRF91] - Failed to program flash [error] [ nRF91] - Failed while programming file D:\ncs\test\asset_tracker_v2_origin\build\zephyr\merged.hex. ERROR: JLinkARM DLL reported an error. Try again. If error condition ERROR: persists, run the same command again with argument --log, contact Nordic ERROR: Semiconductor and provide the generated log.log file to them.
Any help will be appreciated!
BR,
Peng