How to get started using LPC1830-Xplorer with LPC-Link2 and LPCXpresso 7.0 IDE?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to get started using LPC1830-Xplorer with LPC-Link2 and LPCXpresso 7.0 IDE?

1,111件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by waltwallach on Fri Feb 28 15:35:24 MST 2014
Maybe I am a little slow, but I am on a very tight schedule, and I cannot find any clear instructions for configuring the IDE and Link2 to download and debug code (LPCXpresso v7.0.0 [Build 92] [2014-02-20]) on Windows 7).

I have run the built-in USB demo on the board.

The boards are connected as described in LPC1930-Xplorer Quick Start Guide (J7 on the Link2 connected via the 10-pin ribbon cable to the 1830 board, JP2 closed to power the 1830 board from the Link2). BTW, flashing the factory default board test binary as described in the Quick Start does not work: you provide a .bin file, but the 7.0 IDE is looking for a .axf file).

Built the blinky demo, then click "Debug 'freertos_blinky' [Debug]".

RedLink Server console output is:

[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>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

The freertos_blinky Debug messages are:

LPCXpresso RedlinkMulti Driver v6.0 (Feb 19 2014 23:01:47 - crt_emu_cm_redlink build 33)
Found chip XML file in C:/lpcopen_2_04_lpcxpresso_ngx_xplorer_1830/freertos_blinky/Debug/LPC1830.xml
Emu(0): Conn&Reset. DpID: 2BA01477. CpuID: 410FC230. Info: (null)
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Loaded LPC18_43_SPIFI_4MB_64KB.cfx: LPC18/43 4MB(64KB) SPIFI @0x14000000 (Oct 10 2013 14:07:26)  External Flash Device on SPI
Connected: was_reset=false. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
Writing 19336 bytes to 14000000 in Flash (assumed clock: unknown)
Erased/Wrote page  0-0 with 19336 bytes in 3281msec
Flash write Done
============= SCRIPT: LPC18LPC43ExternalFLASHBootResetscript.scp =============
Boot from FLASH image pc/sp reset script
PC = 0x14001031
SP = 0x10018000
XPSR = 0x61000000
VTOR = 0x00000000
============= END SCRIPT =====================================================

Stopped: VectorCatch:HardF (PC unknown: stack=0x10017FE0) (VectorCatch)
(crt_emu_cm_redlink) terminating due to request from GDB

The gdb traces are:

991,141 2-environment-cd C:/lpcopen_2_04_lpcxpresso_ngx_xplorer_1830/freertos_blinky
991,157 2^done
991,157 (gdb)
991,157 3-gdb-set breakpoint pending on
991,172 3^done
991,172 (gdb)
991,172 4-enable-pretty-printing
991,172 4^done
991,172 (gdb)
991,172 5maintenance set python print-stack off
991,172 &"maintenance set python print-stack off\n"
991,172 &"Undefined maintenance set command: \"python print-stack off\".  Try \"help maintenance set\
\".\n"
991,172 5^error,msg="Undefined maintenance set command: \"python print-stack off\".  Try \"help main\
tenance set\"."
991,172 (gdb)
991,172 6-gdb-set print object on
991,172 6^done
991,172 (gdb)
991,172 7-gdb-set print sevenbit-strings on
991,172 7^done
991,172 (gdb)
991,172 8-gdb-set charset ISO-8859-1
991,172 8^done
991,172 (gdb)
991,172 9-gdb-set auto-solib-add on
991,172 9^done
991,172 (gdb)
991,188 10-file-exec-and-symbols --thread-group i1 C:/lpcopen_2_04_lpcxpresso_ngx_xplorer_1830/freer\
tos_blinky/Debug/freertos_blinky.axf
991,188 10^done
991,188 (gdb)
991,204 11set remotetimeout 60000
991,219 &"set remotetimeout 60000\n"
991,219 =cmd-param-changed,param="remotetimeout",value="60000"
991,219 11^done
991,219 (gdb)
991,297 12-target-select extended-remote | crt_emu_cm_redlink -msg-port=49663 -g -mi -2 -pLPC1830 -v\
endor=NXP -ResetScript=LPC18LPC43ExternalFLASHBootResetscript.scp -reset= -ProbeHandle=1 -CoreIndex=\
0 -flash-driver=LPC18_43_SPIFI_4MB_64KB.cfx -x C:/lpcopen_2_04_lpcxpresso_ngx_xplorer_1830/freertos_\
blinky/Debug
991,734 =thread-group-started,id="i1",pid="42000"
991,750 =thread-created,id="1",group-id="i1"
991,750 13-list-thread-groups --available
991,796 *stopped,frame={addr="0x1a000210",func="??",args=[]},thread-id="1",stopped-threads="all"
991,796 12^connected
991,796 (gdb)
991,796 14set mem inaccessible-by-default off
991,796 13^error,msg="Can not fetch data now."
991,796 (gdb)
991,796 &"set mem inaccessible-by-default off\n"
991,796 =cmd-param-changed,param="mem inaccessible-by-default",value="off"
991,796 14^done
991,796 (gdb)
991,796 15mon ondisconnect cont
991,812 &"mon ondisconnect cont\n"
991,812 15^done
991,812 (gdb)
991,812 16set arm force-mode thumb
991,812 &"set arm force-mode thumb\n"
991,812 =cmd-param-changed,param="arm force-mode",value="thumb"
991,812 16^done
991,812 (gdb)
991,812 17-target-download
991,812 17+download,{section=".text",section-size="19328",total-size="227926"}
991,812 17+download,{section=".text",section-sent="16080",section-size="19328",total-sent="16080",to\
tal-size="227926"}
991,812 17+download,{section=".data",section-size="8",total-size="227926"}
992,046 18-list-thread-groups
999,288 17^done,address="0x14001030",load-size="19336",transfer-rate="20816",write-rate="6445"
999,288 (gdb)
999,288 19-interpreter-exec console "mon capabilities"
999,304 18^done,groups=[{id="i1",type="process",pid="42000",executable="C:\\lpcopen_2_04_lpcxpresso_\
ngx_xplorer_1830\\freertos_blinky\\Debug\\freertos_blinky.axf"}]
999,304 (gdb)
999,304 19^done
999,304 (gdb)
999,304 20-interpreter-exec console "mon semihost enable"
999,304 20^done
999,304 (gdb)
999,304 21-interpreter-exec console "mon info,all"
999,304 21^done
999,304 (gdb)
999,600 22-data-list-register-names
999,616 22^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","r11","r12",\
"sp","lr","pc","","","","","","","","","","xpsr","","","","","","","","","","","","","","","","","",\
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\
","","","","","","","","","","","","","","","cycles"]
999,616 (gdb)
999,616 23-data-evaluate-expression --thread-group i1 "sizeof (void*)"
999,616 23^done,value="4"
999,616 (gdb)
999,616 24-interpreter-exec --thread-group i1 console "show endian"
999,616 ~"The target endianness is set automatically (currently little endian)\n"
999,616 24^done
999,616 (gdb)
999,632 25-list-thread-groups i1
999,632 26-break-insert --thread-group i1 -t -f main
999,647 25^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x14001030",func="\
ResetISR",args=[],file="../example/src/cr_startup_lpc18xx43xx.c",fullname="C:\\lpcopen_2_04_lpcxpres\
so_ngx_xplorer_1830\\freertos_blinky\\example\\src\\cr_startup_lpc18xx43xx.c",line="284"},state="sto\
pped"}]
999,647 (gdb)
999,664 27-stack-info-depth --thread 1 11
999,695 26^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x1400113e",func="ma\
in",file="../example/src/freertos_blinky.c",fullname="C:\\lpcopen_2_04_lpcxpresso_ngx_xplorer_1830\\\
freertos_blinky\\example\\src\\freertos_blinky.c",line="107",thread-groups=["i1"],times="0",original\
-location="main"}
999,695 (gdb)
999,695 27^done,depth="1"
999,695 (gdb)
999,695 28-exec-continue --thread-group i1
999,711 ~"Note: automatically using hardware breakpoints for read-only addresses.\n"
999,726 29-stack-list-frames --thread 1
999,773 28^running
999,773 *running,thread-id="all"
999,773 (gdb)
999,882 *stopped,reason="signal-received",signal-name="SIGSTOP",signal-meaning="Stopped (signal)",fr\
ame={addr="0x1a000210",func="??",args=[]},thread-id="1",stopped-threads="all"
999,882 (gdb)
999,960 &"Cannot access memory at address 0x10017ffc\n"
000,008 29^error,msg="Cannot access memory at address 0x10017ff8"
000,008 (gdb)
000,055 30-thread-info 1
000,055 31-list-thread-groups
000,070 32-stack-info-depth --thread 1 11
000,086 30^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x1a000210",func="\
??",args=[]},state="stopped"}]
000,086 (gdb)
000,102 31^done,groups=[{id="i1",type="process",pid="42000",executable="C:\\lpcopen_2_04_lpcxpresso_\
ngx_xplorer_1830\\freertos_blinky\\Debug\\freertos_blinky.axf"}]
000,102 (gdb)
000,148 32^error,msg="Cannot access memory at address 0x10017ff8"
000,148 (gdb)
000,148 33-stack-info-depth --thread 1 1
000,164 33^done,depth="1"
000,164 (gdb)
000,258 34-stack-info-depth --thread 1 2
000,273 34^done,depth="2"
000,273 (gdb)
000,336 35-data-disassemble --thread 1 -s 436208144 -e 436208284 -- 1
000,382 36-stack-list-frames --thread 1 0 1
001,459 35^done,asm_insns=[{address="0x1a000210",inst="push\t{r7}"},{address="0x1a000212",inst="add\\
tr7, sp, #0"},{address="0x1a000214",inst="b.n\t0x1a000214"},{address="0x1a000216",inst="nop"},{addre\
ss="0x1a000218",inst="push\t{r7}"},{address="0x1a00021a",inst="add\tr7, sp, #0"},{address="0x1a00021\
c",inst="b.n\t0x1a00021c"},{address="0x1a00021e",inst="nop"},{address="0x1a000220",inst="push\t{r7}"\
},{address="0x1a000222",inst="add\tr7, sp, #0"},{address="0x1a000224",inst="b.n\t0x1a000224"},{addre\
ss="0x1a000226",inst="nop"},{address="0x1a000228",inst="push\t{r7}"},{address="0x1a00022a",inst="add\
\tr7, sp, #0"},{address="0x1a00022c",inst="b.n\t0x1a00022c"},{address="0x1a00022e",inst="nop"},{addr\
ess="0x1a000230",inst="push\t{r7}"},{address="0x1a000232",inst="add\tr7, sp, #0"},{address="0x1a0002\
34",inst="b.n\t0x1a000234"},{address="0x1a000236",inst="nop"},{address="0x1a000238",inst="push\t{r7}\
"},{address="0x1a00023a",inst="add\tr7, sp, #0"},{address="0x1a00023c",inst="b.n\t0x1a00023c"},{addr\
ess="0x1a00023e",inst="nop"},{address="0x1a000240",inst="push\t{r7}"},{address="0x1a000242",inst="ad\
d\tr7, sp, #0"},{address="0x1a000244",inst="b.n\t0x1a000244"},{address="0x1a000246",inst="nop"},{add\
ress="0x1a000248",inst="push\t{r7}"},{address="0x1a00024a",inst="add\tr7, sp, #0"},{address="0x1a000\
24c",inst="b.n\t0x1a00024c"},{address="0x1a00024e",inst="nop"},{address="0x1a000250",inst="push\t{r7\
}"},{address="0x1a000252",inst="add\tr7, sp, #0"},{address="0x1a000254",inst="b.n\t0x1a000254"},{add\
ress="0x1a000256",inst="nop"},{address="0x1a000258",inst="push\t{r7}"},{address="0x1a00025a",inst="s\
ub\tsp, #12"},{address="0x1a00025c",inst="add\tr7, sp, #0"},{address="0x1a00025e",inst="str\tr0, [r7\
, #4]"},{address="0x1a000260",inst="ldr\tr3, [r7, #4]"},{address="0x1a000262",inst="ldr\tr3, [r3, #1\
2]"},{address="0x1a000264",inst="mov\tr0, r3"},{address="0x1a000266",inst="add.w\tr7, r7, #12"},{add\
ress="0x1a00026a",inst="mov\tsp, r7"},{address="0x1a00026c",inst="pop\t{r7}"},{address="0x1a00026e",\
inst="bx\tlr"},{address="0x1a000270",inst="push\t{r7, lr}"},{address="0x1a000272",inst="sub\tsp, #8"\
},{address="0x1a000274",inst="add\tr7, sp, #0"},{address="0x1a000276",inst="str\tr0, [r7, #4]"},{add\
ress="0x1a000278",inst="ldr\tr0, [r7, #4]"},{address="0x1a00027a",inst="bl\t0x1a000258"},{address="0\
x1a00027e",inst="mov\tr3, r0"},{address="0x1a000280",inst="mov\tr0, r3"},{address="0x1a000282",inst=\
"add.w\tr7, r7, #8"},{address="0x1a000286",inst="mov\tsp, r7"},{address="0x1a000288",inst="pop\t{r7,\
pc}"},{address="0x1a00028a",inst="nop"},{address="0x1a00028c",inst="push\t{r7, lr}"},{address="0x1a\
00028e",inst="sub\tsp, #16"},{address="0x1a000290",inst="add\tr7, sp, #0"},{address="0x1a000292",ins\
t="str\tr0, [r7, #4]"},{address="0x1a000294",inst="str\tr1, [r7, #0]"},{address="0x1a000296",inst="m\
ov.w\tr0, #0"},{address="0x1a00029a",inst="movt\tr0, #16396\t; 0x400c"}]
001,490 (gdb)
001,490 36^done,stack=[frame={level="0",addr="0x1a000210",func="??"},frame={level="1",addr="0xffffff\
f9",func="<signal handler called>"}]
001,490 (gdb)
001,506 37-data-disassemble --thread 1 -s 436208144 -e 436208284 -- 0
002,629 37^done,asm_insns=[{address="0x1a000210",inst="push\t{r7}"},{address="0x1a000212",inst="add\\
tr7, sp, #0"},{address="0x1a000214",inst="b.n\t0x1a000214"},{address="0x1a000216",inst="nop"},{addre\
ss="0x1a000218",inst="push\t{r7}"},{address="0x1a00021a",inst="add\tr7, sp, #0"},{address="0x1a00021\
c",inst="b.n\t0x1a00021c"},{address="0x1a00021e",inst="nop"},{address="0x1a000220",inst="push\t{r7}"\
},{address="0x1a000222",inst="add\tr7, sp, #0"},{address="0x1a000224",inst="b.n\t0x1a000224"},{addre\
ss="0x1a000226",inst="nop"},{address="0x1a000228",inst="push\t{r7}"},{address="0x1a00022a",inst="add\
\tr7, sp, #0"},{address="0x1a00022c",inst="b.n\t0x1a00022c"},{address="0x1a00022e",inst="nop"},{addr\
ess="0x1a000230",inst="push\t{r7}"},{address="0x1a000232",inst="add\tr7, sp, #0"},{address="0x1a0002\
34",inst="b.n\t0x1a000234"},{address="0x1a000236",inst="nop"},{address="0x1a000238",inst="push\t{r7}\
"},{address="0x1a00023a",inst="add\tr7, sp, #0"},{address="0x1a00023c",inst="b.n\t0x1a00023c"},{addr\
ess="0x1a00023e",inst="nop"},{address="0x1a000240",inst="push\t{r7}"},{address="0x1a000242",inst="ad\
d\tr7, sp, #0"},{address="0x1a000244",inst="b.n\t0x1a000244"},{address="0x1a000246",inst="nop"},{add\
ress="0x1a000248",inst="push\t{r7}"},{address="0x1a00024a",inst="add\tr7, sp, #0"},{address="0x1a000\
24c",inst="b.n\t0x1a00024c"},{address="0x1a00024e",inst="nop"},{address="0x1a000250",inst="push\t{r7\
}"},{address="0x1a000252",inst="add\tr7, sp, #0"},{address="0x1a000254",inst="b.n\t0x1a000254"},{add\
ress="0x1a000256",inst="nop"},{address="0x1a000258",inst="push\t{r7}"},{address="0x1a00025a",inst="s\
ub\tsp, #12"},{address="0x1a00025c",inst="add\tr7, sp, #0"},{address="0x1a00025e",inst="str\tr0, [r7\
, #4]"},{address="0x1a000260",inst="ldr\tr3, [r7, #4]"},{address="0x1a000262",inst="ldr\tr3, [r3, #1\
2]"},{address="0x1a000264",inst="mov\tr0, r3"},{address="0x1a000266",inst="add.w\tr7, r7, #12"},{add\
ress="0x1a00026a",inst="mov\tsp, r7"},{address="0x1a00026c",inst="pop\t{r7}"},{address="0x1a00026e",\
inst="bx\tlr"},{address="0x1a000270",inst="push\t{r7, lr}"},{address="0x1a000272",inst="sub\tsp, #8"\
},{address="0x1a000274",inst="add\tr7, sp, #0"},{address="0x1a000276",inst="str\tr0, [r7, #4]"},{add\
ress="0x1a000278",inst="ldr\tr0, [r7, #4]"},{address="0x1a00027a",inst="bl\t0x1a000258"},{address="0\
x1a00027e",inst="mov\tr3, r0"},{address="0x1a000280",inst="mov\tr0, r3"},{address="0x1a000282",inst=\
"add.w\tr7, r7, #8"},{address="0x1a000286",inst="mov\tsp, r7"},{address="0x1a000288",inst="pop\t{r7,\
pc}"},{address="0x1a00028a",inst="nop"},{address="0x1a00028c",inst="push\t{r7, lr}"},{address="0x1a\
00028e",inst="sub\tsp, #16"},{address="0x1a000290",inst="add\tr7, sp, #0"},{address="0x1a000292",ins\
t="str\tr0, [r7, #4]"},{address="0x1a000294",inst="str\tr1, [r7, #0]"},{address="0x1a000296",inst="m\
ov.w\tr0, #0"},{address="0x1a00029a",inst="movt\tr0, #16396\t; 0x400c"}]
002,644 (gdb)
758,512 38-interpreter-exec --thread-group i1 console kill
758,528 ~"Kill the program being debugged? (y or n) [answered Y; input not from terminal]\n"
758,544 =thread-exited,id="1",group-id="i1"
758,544 =thread-group-exited,id="i1"
758,544 39-gdb-exit
758,544 38^done
758,544 (gdb)
758,544 39^exit
758,576 40-list-thread-groups
758,577 41-list-thread-groups

I see:

999,882 *stopped,reason="signal-received",signal-name="SIGSTOP",signal-meaning="Stopped (signal)",fr\
ame={addr="0x1a000210",func="??",args=[]},thread-id="1",stopped-threads="all"
999,882 (gdb)
999,960 &"Cannot access memory at address 0x10017ffc\n"
000,008 29^error,msg="Cannot access memory at address 0x10017ff8"

I searched the forum and can only find a post indicating you don't support the Link2 in the IDE version 5. I assume, because you shipped the Link2 with the Xplorer board, that you do support the 1830 board and the Link2 with the version 7 IDE (the latest available as of Bef\ruary 2014).

I need some guidance quickly.

Thank you in advance.




0 件の賞賛
返信
2 返答(返信)

1,061件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by waltwallach on Fri Feb 28 19:27:22 MST 2014
I don't see anything there relevant to what I am seeing. As far as I can tell, I have things setup correctly (at least things are setup as described in the FAQs). I am either building the project wrong, or the connection to the Link2 is not configured correctly. I have found nothing that specifically talks about IDE version 7, the LPC2830-Xplorer board and the Link2.

If anyone has successfully used LPCXpresso 7 with the LPC21830-xplorer, please let me know how you configured things.
0 件の賞賛
返信

1,061件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Feb 28 15:43:43 MST 2014
There is lots of information if you go to the FAQ section of this website and search for "lpc18"
0 件の賞賛
返信