Content originally posted in LPCWare by hamu on Thu Mar 06 01:57:49 MST 2014
Support, thanks for your fast response!
I have also tried it with the actual version (7.0.0_92) now, but there is the same problem.
I have running a Win7x64 and the target CPU is a LPC1833. The board itself is self developed. I´m working with this board for approx. half a year with the old LPC-Link and I never had troubles with flashing/debugging.
Debug messages:
----------------------------------------
LPCXpresso RedlinkMulti Driver v6.0 (Feb 19 2014 23:01:47 - crt_emu_cm_redlink build 33)
Looked for chip XML file in C:/nxp/LPCXpresso_7.0.0_92/lpcxpresso/bin/LPC1833.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_7.0.0_92/lpcxpresso/bin/NXP_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_7.0.0_92/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID: 2BA01477. CpuID: 410FC230. Info: (null)
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Loaded LPC18x3_43x3_2x256_BootA.cfx: LPC18x3/LPC43x3 Flash 2x256KB @0x1A000000 (Boot Bank A) Jul 22 2013 10:38:30 On-chip Flash Memory
Connected: was_reset=false. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
driver "UnInit" return code: 0x0
Target error from Commit Flash write: Em(12). System rejected access at location 0x1000179C - verify Population of memory and peripherals
Stopped: Halt
RedlinkServer console:
-------------------------------------------
[Started server]
[Connected on port 3025]
redlink>
redlink>
redlink>ProbeList
Index = 1
Manufacturer = NXP Semiconductors
Description = LPCLINK2 Redlink
VID = 21BD, PID=0006
Path = \\?\hid#vid_21bd&pid_0006#7&4d934e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
redlink>ProbeStatus
Index = 1
Manufacturer = NXP Semiconductors
Description = LPCLINK2 Redlink
VID = 21BD, PID=0006
Path = \\?\hid#vid_21bd&pid_0006#7&4d934e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
IsOpen = FALSE
WireInitialized = FALSE
WireProtocol = JTAG
CoresConfigured = FALSE
PacketSize = 64
Probe Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = TRUE
HasSWD = TRUE
Probe Type = REDLINK
redlink>ProbeIsOpen 1
FALSE
redlink>ProbeOpenByIndex 1
Handle = 0x00000001 = 1
redlink>WireIsConnected 1
FALSE
redlink>WireSwdConnect 1
DpID = 2BA01477
redlink>CoresConfigured 1
FALSE
redlink>CoreConfig 1
Number of CORES/TAPs = 1, Fully recognized: True
redlink>close
[Closed]
[Connected on port 3025]
redlink>close
[Closed]
redlink>
[Started server]
[Connected on port 3025]
redlink>ProbeStatus
redlink>exit
[Closed]
GDB trace
-------------------------------------------------
438,330 2-environment-cd "E:/0540_Projekte/K6 Robotermodul iRIO/LPC_Workspace/iRIO"
438,337 2^done
438,337 (gdb)
438,337 3-gdb-set breakpoint pending on
438,347 3^done
438,347 (gdb)
438,347 4-enable-pretty-printing
438,357 4^done
438,357 (gdb)
438,357 5maintenance set python print-stack off
438,367 &"maintenance set python print-stack off\n"
438,367 &"Undefined maintenance set command: \"python print-stack off\". Try \"help maintenance set\
\".\n"
438,367 5^error,msg="Undefined maintenance set command: \"python print-stack off\". Try \"help main\
tenance set\"."
438,367 (gdb)
438,367 6-gdb-set print object on
438,377 6^done
438,377 (gdb)
438,377 7-gdb-set print sevenbit-strings on
438,387 7^done
438,387 (gdb)
438,387 8-gdb-set charset ISO-8859-1
438,397 8^done
438,397 (gdb)
438,397 9-gdb-set auto-solib-add on
438,407 9^done
438,407 (gdb)
438,414 10-file-exec-and-symbols --thread-group i1 "E:/0540_Projekte/K6 Robotermodul iRIO/LPC_Worksp\
ace/iRIO/Debug/iRIO.axf"
438,420 10^done
438,420 (gdb)
438,425 11set remotetimeout 60000
438,430 &"set remotetimeout 60000\n"
438,430 =cmd-param-changed,param="remotetimeout",value="60000"
438,430 11^done
438,430 (gdb)
438,456 12-target-select extended-remote | crt_emu_cm_redlink -msg-port=50767 -g -mi -2 -pLPC1833 -v\
endor=NXP -ResetScript=LPC18LPC43InternalFLASHBootResetscript.scp -ProbeHandle=1 -CoreIndex=0 -flash\
-driver=LPC18x3_43x3_2x256_BootA.cfx
439,214 =thread-group-started,id="i1",pid="42000"
439,214 =thread-created,id="1",group-id="i1"
439,215 13-list-thread-groups --available
439,246 *stopped,frame={addr="0x10000112",func="InterruptEnabled",args=[]},thread-id="1",stopped-thr\
eads="all"
439,246 12^connected
439,246 (gdb)
439,247 13^error,msg="Can not fetch data now."
439,247 (gdb)
439,247 14set mem inaccessible-by-default off
439,257 &"set mem inaccessible-by-default off\n"
439,257 =cmd-param-changed,param="mem inaccessible-by-default",value="off"
439,257 14^done
439,257 (gdb)
439,257 15mon ondisconnect cont
439,267 &"mon ondisconnect cont\n"
439,277 15^done
439,277 (gdb)
439,277 16set arm force-mode thumb
439,287 &"set arm force-mode thumb\n"
439,287 =cmd-param-changed,param="arm force-mode",value="thumb"
439,287 16^done
439,287 (gdb)
439,287 17-target-download
439,317 17+download,{section=".text",section-size="34136",total-size="1592151"}
439,337 17+download,{section=".data",section-size="820",total-size="1592151"}
439,450 18-list-thread-groups
439,537 17^error,msg="Error finishing flash operation"
439,537 (gdb)
439,537 19-interpreter-exec console "mon capabilities"
439,547 18^done,groups=[{id="i1",type="process",pid="42000",executable="E:\\0540_Projekte\\K6 Robote\
rmodul iRIO\\LPC_Workspace\\iRIO\\Debug\\iRIO.axf"}]
439,547 (gdb)
439,553 20-list-thread-groups i1
439,557 19^done
439,557 (gdb)
439,557 21-data-evaluate-expression __CR_SEMIHOST
439,587 20^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x10000112",func="\
InterruptEnabled",args=[]},state="stopped"}]
439,587 (gdb)
439,587 21^error,msg="No symbol \"__CR_SEMIHOST\" in current context."
439,587 (gdb)
439,588 22-data-evaluate-expression fclose
439,594 23-stack-info-depth --thread 1 11
439,607 22^done,value="{<text variable, no debug info>} 0x1a007038 <fclose>"
439,607 (gdb)
439,607 24-interpreter-exec console "mon semihost enable"
440,267 23^done,depth="3"
440,267 (gdb)
440,271 25-stack-list-frames --thread 1
440,277 24^done
440,277 (gdb)
440,277 25^done,stack=[frame={level="0",addr="0x10000112",func="InterruptEnabled"},frame={level="1",\
addr="0x1000029c",func="UartPort"},frame={level="2",addr="0x1000029c",func="UartPort"}]
440,277 (gdb)
440,277 26-interpreter-exec console "mon info,all"
440,297 26^done
440,297 (gdb)
440,549 27-data-list-register-names
440,557 27^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","r11","r12",\
"sp","lr","pc","","","","","","","","","","xpsr","","","","","","","","","","","","","","","","","",\
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\
","","","","","","","","","","","","","","","cycles"]
440,557 (gdb)
440,559 28-data-evaluate-expression --thread-group i1 "sizeof (void*)"
440,570 29-list-thread-groups
440,570 30-thread-info 1
440,593 28^done,value="4"
440,593 (gdb)
440,594 31-interpreter-exec --thread-group i1 console "show endian"
440,603 29^done,groups=[{id="i1",type="process",pid="42000",executable="E:\\0540_Projekte\\K6 Robote\
rmodul iRIO\\LPC_Workspace\\iRIO\\Debug\\iRIO.axf"}]
440,603 (gdb)
440,603 30^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x10000112",func="\
InterruptEnabled",args=[]},state="stopped"}]
440,603 (gdb)
440,603 ~"The target endianness is set automatically (currently little endian)\n"
440,603 31^done
440,603 (gdb)
440,606 32-break-insert --thread-group i1 -t -f main
440,669 32^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x1a001d5c",func="ma\
in",file="../src/main.c",fullname="E:\\0540_Projekte\\K6 Robotermodul iRIO\\LPC_Workspace\\iRIO\\src\
\\main.c",line="27",thread-groups=["i1"],times="0",original-location="main"}
440,669 (gdb)
440,671 33-exec-continue --thread-group i1
440,679 ~"Note: automatically using hardware breakpoints for read-only addresses.\n"
440,699 33^running
440,699 *running,thread-id="all"
440,699 (gdb)
440,739 *stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",frame={add\
r="0x10000112",func="InterruptEnabled",args=[]},thread-id="1",stopped-threads="all"
440,739 (gdb)
440,750 34-stack-info-depth --thread 1 2
440,761 35-list-thread-groups
440,770 36-stack-info-depth --thread 1 11
441,109 34^done,depth="2"
441,109 (gdb)
441,109 35^done,groups=[{id="i1",type="process",pid="42000",executable="E:\\0540_Projekte\\K6 Robote\
rmodul iRIO\\LPC_Workspace\\iRIO\\Debug\\iRIO.axf"}]
441,109 (gdb)
441,109 37-thread-info 1
441,439 36^done,depth="3"
441,439 (gdb)
441,444 38-stack-list-frames --thread 1
441,444 39-stack-list-frames --thread 1 0 2
441,449 37^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x10000112",func="\
InterruptEnabled",args=[]},state="stopped"}]
441,449 (gdb)
441,449 38^done,stack=[frame={level="0",addr="0x10000112",func="InterruptEnabled"},frame={level="1",\
addr="0x1000029c",func="UartPort"},frame={level="2",addr="0x1000029c",func="UartPort"}]
441,449 (gdb)
441,449 39^done,stack=[frame={level="0",addr="0x10000112",func="InterruptEnabled"},frame={level="1",\
addr="0x1000029c",func="UartPort"},frame={level="2",addr="0x1000029c",func="UartPort"}]
441,449 (gdb)
638,619 40-gdb-exit
638,624 40^exit
638,634 =thread-exited,id="1",group-id="i1"
638,634 =thread-group-exited,id="i1"
638,647 41-list-thread-groups i1
638,649 42-list-thread-groups
638,660 43-list-thread-groups
Thanks
Thomas