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
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.
It worked for a while. I was able to detect and connect from the nRF Connect Android app.
After some testing and trials and all, now not able to flash from the SES.
Error is:
Display All
Tried using J-Flash, to connect, erase chip... and the error log:
Display All
And JFlash-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.
attached the log.
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, not able detect using 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 !
What should I do to bring it up !? Please guide me.
Thanks in advance !
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
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.
It worked for a while. I was able to detect and connect from the nRF Connect Android app.
After some testing and trials and all, now not able to flash from the SES.
Error is:
Source Code
- Connecting ‘J-Link’ using ‘USB’
- Connecting to target using SWD
- Loaded C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.12/bin/JLink_x64.dll
- Firmware Version: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 12 2018 11:44:41
- DLL Version: 6.40`
- Hardware Version: V1.00
- Target Voltage: 3.300
- Device "NRF52840_XXAA" selected.
- connect failed
- Failed to connect to target.
- No idcode detected.
- Please check connection and Target Interface Type
Tried using J-Flash, to connect, erase chip... and the error log:
Source Code
- Application log started
- - J-Flash V6.40 (J-Flash compiled Oct 26 2018 15:06:20)
- - JLinkARM.dll V6.40 (DLL compiled Oct 26 2018 15:06:02)
- Opening project file [C:\Users\pkrishna\20190110.jflash] ...
- - Project opened successfully
- Failed to open data file [C:\Users\pkrishna\]...
- Connecting ...
- - Connecting via USB to J-Link device 0
- - J-Link firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 12 2018 11:44:41
- - Device "NRF52840_XXAA" selected.
- - Target interface speed: 200 kHz (Auto)
- - VTarget = 3.300V
- - ERROR: Failed to connect.
- Could not establish a connection to target.
- J-Link firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 12 2018 11:44:41
- Erasing chip ...
- - Connecting ...
- - Device "NRF52840_XXAA" selected.
- - Target interface speed: 200 kHz (Auto)
- - VTarget = 3.300V
- - ERROR: Failed to connect.
- Could not establish a connection to target.
- - ERROR: Could not erase chip, not connected
- Close project
- - Project closed
And JFlash-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.
attached the log.
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, not able detect using 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 !
What should I do to bring it up !? Please guide me.
Thanks in advance !