This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

connect failed. Failed to connect to target. No idcode detected.

Hi,

I am facing the issue while trying to run code from SES.
Environment:
PCA10056 board, nRF52840, no change to the board.
Agilent / Keysight DC Power Analyzer N6705B
SES for ARM v4.12
Segger JLink v6.40
S140 SoftDevice s140_nrf52_6.1.0_softdevice / s140_nrf52_6.1.1_softdevice
nRF Connect Android app 4.22.2
nRF Toolbox Android app 2.6.0

I think, these are software updated to the latest.

For the power analysis using DC Power Analyzer, I was using examples from nRF5_SDK_15.2.0_9412b96.
I had copied via windows USB drive JLink, components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice or DeviceDownload\s140nrf52611\s140_nrf52_6.1.1_softdevice.
It was successful.
Edited the project ble_app_pwr_profiling_pca10056_s140 in ble_peripheral\ble_app_pwr_profiling\ to make the advertising at 1 sec intervals.
I did not cut the SB40, because from DC Power Analyzer N6705B, I had supplied 3.0V only, to the Ext. supply P21.
It worked for a while. I was able to detect and connect from the nRF Connect Android app.
Sometime I changed the SW6 "nRF ONLY / DEFAULT" switch to => "nRF ONLY". And may be switched back to "DEFAULT", not sure.

After some testing and trials and all, now not able to flash from the SES.

Error is:




Tried using J-Flash, to connect, erase chip... and the error log:

And JFlsh-Lite



Also, nrfjprog with options to erase chip,
In that case, it's always same error: JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1. JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.



As of now,
though not able to connect from SES debugger, but able to detect the USB drive JLink in windows when connected.
Then, by copying hex, say, ble_app_bps_pca10056_s140  not able detect using BPM in the nRF Toolbox Android app.
Only nRF Connect Android app is able to detect & connect.
==> may be, even though JLink drive disappears and appears back in Windows, does not mean flashing successful ? There is no ERROR log file inside the JLink drive !

Log from nRF Connect Android app:


When tried the blinky example, the 4 LEDs 1 ~ 4 are not working.

Another PCA10056 board is working well with the SES. ==> may not have any issues with SES.

What should I do to bring up the board !? Please guide me.

PS: I have gone through other few QAs related, in Nordic & Segger support. Couldn't find this issue.

 Thanks in advance !

Parents Reply Children
No Data