Hi,
I've tried to program NXP LPC4357 via JLink Commander 4.90e and occasionally getting this error: Unspecified error -1
Usually if I retry the process straight away, everything is fine and the process is successfully completed.
What is this error and how to make the process more reliable?
Here is what I am doing:
1. Issue command to JLink Commander asking it to process a script:
3. Below is the log of situation when error occurs:
I've tried to program NXP LPC4357 via JLink Commander 4.90e and occasionally getting this error: Unspecified error -1
Usually if I retry the process straight away, everything is fine and the process is successfully completed.
What is this error and how to make the process more reliable?
Here is what I am doing:
1. Issue command to JLink Commander asking it to process a script:
2. The script is very simple:"C:\Program
Files (x86)\SEGGER\JLink_V490e\JLink.exe" -CommanderScript
c:\Flash\cf.jlink
device LPC4357_M4
speed 1000
r
h
erase
loadbin C:\0\Test.hex, 0x1A000000
exit
3. Below is the log of situation when error occurs:
C:\0>"C:\Program Files (x86)\SEGGER\JLink_V490e\JLink.exe" -CommanderScript c:\0
\cf.jlink
SEGGER J-Link Commander V4.90e ('?' for help)
Compiled Sep 8 2014 18:46:42
Script file read successfully.
Updating firmware: J-Link V9 compiled Sep 5 2014 18:54:08
Replacing firmware: J-Link V9 compiled Apr 15 2014 19:08:28
Waiting for new firmware to boot
New firmware booted successfully
DLL version V4.90e, compiled Sep 8 2014 18:46:31
Firmware: J-Link V9 compiled Sep 5 2014 18:54:08
Hardware: V9.00
S/N: ......
Feature(s): GDB
VTarget = 3.140V
Info: TotalIRLen = 8, IRPrint = 0x0011
Info: Found Cortex-M4 r0p1, Little endian.
Info: FPUnit: 6 code (BP) slots and 2 literal slots
Info: TPIU fitted.
Info: ETM fitted.
Found 2 JTAG devices, Total IRLen = 8:
#0 Id: 0x4BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)
#1 Id: 0x0BA01477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)
Cortex-M4 identified.
Target interface speed: 100 kHz
Processing script file...
Info: Device "LPC4357_M4" selected (1024 KB flash, 40 KB RAM).
Reconnecting to target...
Info: TotalIRLen = 8, IRPrint = 0x0011
Info: Found Cortex-M4 r0p1, Little endian.
Info: FPUnit: 6 code (BP) slots and 2 literal slots
Info: TPIU fitted.
Info: ETM fitted.
Info: ETB present.
Target interface speed: 1000 kHz
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Info: LPC18xx/43xx reset: Halting CPU before performing reset...
Info: LPC18xx/43xx reset: Halted CPU before reset.
Info: Unknown LPC18xx/43xx bootloader variant. Halting after reset may fail.
PC = 1A05040C, CycleCnt = 00000000
R0 = 1A000000, R1 = 1A000000, R2 = 400F1FC0, R3 = 12345678
R4 = 40045000, R5 = 1008000C, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000
SP(R13)= 10006090, MSP= 10006090, PSP= 00000000, R14(LR) = 10405B25
XPSR = 41000000: APSR = nZcvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
FPU regs: FPU not enabled / not implemented on connected CPU.
Erasing device (LPC4357_M4)...
Info: J-Link: Flash download: Total time needed: 3.431s (Prepare: 0.117s, Compar
e: 0.000s, Erase: 3.302s, Program: 0.000s, Verify: 0.000s, Restore: 0.011s)
Erasing done.
Downloading file [C:\0\Test.hex]...Info: J-Link: Flash download: Total time ne
eded: 106.449s (Prepare: 0.172s, Compare: 93.172s, Erase: 10.018s, Program: 0.00
0s, Verify: 0.000s, Restore: 3.086s)
Unspecified error -1
Script processing completed.