Hello Community,
I am having an issue programming a LPC2478 NXP ARM7 processor, while using JLink.exe version JLink_V698c.
I have no issues using IAR Systems to program the processor.
Below are the steps I took in the commander tool.
Any help is greatly appreciated!
Thank you!
************************************************************************************************
SEGGER J-Link Commander V6.98c (Compiled Mar 16 2021 12:20:44)
DLL version V6.98c, compiled Mar 16 2021 12:19:26
Connecting to J-Link via USB...O.K.
Firmware: J-Link ARM V6 compiled Jun 20 2012 19:43:26
Hardware version: V6.00
VTref=3.339V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: LPC2478
Type '?' for selection dialog
Device>
Please specify target interface:
J) JTAG (Default)
TIF>
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
JTAGConf>
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "LPC2478" selected.
Connecting to target via JTAG
TotalIRLen = 4, IRPrint = 0x01
JTAG chain detection found 1 devices:
#0 Id: 0x4F1F0F0F, IRLen: 04, ARM7TDMI-S Core
ARM7 identified.
J-Link>s
****** Error: CPU is not halted
J-Link>h
Received 0 as core Id.
Using DBGRQ to halt CPU
PC: (R15) = 23600350, CPSR = 7FFFFFFF (System mode, THUMB FIQ dis. IRQ dis.)
Current:
R0 =23602360, R1 =7FFFFFFF, R2 =7FFFFFFF, R3 =7FFFFFFF
R4 =7FFFFFFF, R5 =7FFFFFFF, R6 =7FFFFFFF, R7 =3FFFFFFF
R8 =7FFFFFFF, R9 =3FFFFFFF, R10=7FFFFFFF, R11=3FFFFFFF, R12=7FFFFFFF
R13=7FFFFFFF, R14=7FFFFFFF
USR: R8 =7FFFFFFF, R9 =3FFFFFFF, R10=7FFFFFFF, R11=3FFFFFFF, R12=7FFFFFFF
R13=7FFFFFFF, R14=7FFFFFFF
FIQ: R8 =7FFFFFFF, R9 =7FFFFFFF, R10=7FFFFFFF, R11=7FFFFFFF, R12=7FFFFFFF
R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
IRQ: R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
SVC: R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
ABT: R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
UND: R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
J-Link>loadfile "C:\Desktop\MyBoardFile.hex"
Received 0 as core Id.
Downloading file [C:\Desktop\MyBoardFile.hex]...
****** Error: Read memory error @ address 0xE01FC040, word access: Core error.
Writing target memory failed.
J-Link>r
Reset delay: 0 ms
Reset type NORMAL: Using RESET pin, halting CPU after Reset
Failed to program ICE breaker before Reset, using default reset strategy.
Resetting target using RESET pin
Resetting TRST
CPU no longer halted after stop via WP: DBGACK = 0, nMREQ = 0
Resetting TRST
CPU no longer halted after stop via DBGRQ: DBGACK = 0, nMREQ = 0
J-Link>h
PC: (R15) = 00000000, CPSR = 000000D3 (SVC mode, ARM FIQ dis. IRQ dis.)
Current:
R0 =00000000, R1 =00000000, R2 =00000000, R3 =00000000
R4 =00000000, R5 =00000000, R6 =00000000, R7 =00000000
R8 =00000000, R9 =00000000, R10=00000000, R11=00000000, R12=00000000
R13=00000000, R14=00000000, SPSR=00000010
USR: R8 =00000000, R9 =00000000, R10=00000000, R11=00000000, R12=00000000
R13=00000000, R14=00000000
FIQ: R8 =00000000, R9 =00000000, R10=00000000, R11=00000000, R12=00000000
R13=00000000, R14=00000000, SPSR=00000010
IRQ: R13=00000000, R14=00000000, SPSR=00000010
SVC: R13=00000000, R14=00000000, SPSR=00000010
ABT: R13=00000000, R14=00000000, SPSR=00000010
UND: R13=00000000, R14=00000000, SPSR=00000010
J-Link>loadfile "C:\Desktop\MyBoardFile.hex"
Received 0 as core Id.
Downloading file [C:\Desktop\MyBoardFile.hex]...
****** Error: Failed to measure CPU clock frequency
Write memory error @ address 0x40000000, word access: Memory access timeout.
Could not detect CPU clock speed. Readback of test code downloaded into RAM failed.
Unspecified error -1
J-Link>
I am having an issue programming a LPC2478 NXP ARM7 processor, while using JLink.exe version JLink_V698c.
I have no issues using IAR Systems to program the processor.
Below are the steps I took in the commander tool.
Any help is greatly appreciated!
Thank you!
************************************************************************************************
SEGGER J-Link Commander V6.98c (Compiled Mar 16 2021 12:20:44)
DLL version V6.98c, compiled Mar 16 2021 12:19:26
Connecting to J-Link via USB...O.K.
Firmware: J-Link ARM V6 compiled Jun 20 2012 19:43:26
Hardware version: V6.00
VTref=3.339V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: LPC2478
Type '?' for selection dialog
Device>
Please specify target interface:
J) JTAG (Default)
TIF>
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
JTAGConf>
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "LPC2478" selected.
Connecting to target via JTAG
TotalIRLen = 4, IRPrint = 0x01
JTAG chain detection found 1 devices:
#0 Id: 0x4F1F0F0F, IRLen: 04, ARM7TDMI-S Core
ARM7 identified.
J-Link>s
****** Error: CPU is not halted
J-Link>h
Received 0 as core Id.
Using DBGRQ to halt CPU
PC: (R15) = 23600350, CPSR = 7FFFFFFF (System mode, THUMB FIQ dis. IRQ dis.)
Current:
R0 =23602360, R1 =7FFFFFFF, R2 =7FFFFFFF, R3 =7FFFFFFF
R4 =7FFFFFFF, R5 =7FFFFFFF, R6 =7FFFFFFF, R7 =3FFFFFFF
R8 =7FFFFFFF, R9 =3FFFFFFF, R10=7FFFFFFF, R11=3FFFFFFF, R12=7FFFFFFF
R13=7FFFFFFF, R14=7FFFFFFF
USR: R8 =7FFFFFFF, R9 =3FFFFFFF, R10=7FFFFFFF, R11=3FFFFFFF, R12=7FFFFFFF
R13=7FFFFFFF, R14=7FFFFFFF
FIQ: R8 =7FFFFFFF, R9 =7FFFFFFF, R10=7FFFFFFF, R11=7FFFFFFF, R12=7FFFFFFF
R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
IRQ: R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
SVC: R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
ABT: R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
UND: R13=7FFFFFFF, R14=7FFFFFFF, SPSR=7FFFFFFF
J-Link>loadfile "C:\Desktop\MyBoardFile.hex"
Received 0 as core Id.
Downloading file [C:\Desktop\MyBoardFile.hex]...
****** Error: Read memory error @ address 0xE01FC040, word access: Core error.
Writing target memory failed.
J-Link>r
Reset delay: 0 ms
Reset type NORMAL: Using RESET pin, halting CPU after Reset
Failed to program ICE breaker before Reset, using default reset strategy.
Resetting target using RESET pin
Resetting TRST
CPU no longer halted after stop via WP: DBGACK = 0, nMREQ = 0
Resetting TRST
CPU no longer halted after stop via DBGRQ: DBGACK = 0, nMREQ = 0
J-Link>h
PC: (R15) = 00000000, CPSR = 000000D3 (SVC mode, ARM FIQ dis. IRQ dis.)
Current:
R0 =00000000, R1 =00000000, R2 =00000000, R3 =00000000
R4 =00000000, R5 =00000000, R6 =00000000, R7 =00000000
R8 =00000000, R9 =00000000, R10=00000000, R11=00000000, R12=00000000
R13=00000000, R14=00000000, SPSR=00000010
USR: R8 =00000000, R9 =00000000, R10=00000000, R11=00000000, R12=00000000
R13=00000000, R14=00000000
FIQ: R8 =00000000, R9 =00000000, R10=00000000, R11=00000000, R12=00000000
R13=00000000, R14=00000000, SPSR=00000010
IRQ: R13=00000000, R14=00000000, SPSR=00000010
SVC: R13=00000000, R14=00000000, SPSR=00000010
ABT: R13=00000000, R14=00000000, SPSR=00000010
UND: R13=00000000, R14=00000000, SPSR=00000010
J-Link>loadfile "C:\Desktop\MyBoardFile.hex"
Received 0 as core Id.
Downloading file [C:\Desktop\MyBoardFile.hex]...
****** Error: Failed to measure CPU clock frequency
Write memory error @ address 0x40000000, word access: Memory access timeout.
Could not detect CPU clock speed. Readback of test code downloaded into RAM failed.
Unspecified error -1
J-Link>