LPCXpresso 8.1.x debug problems (Ubuntu)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPCXpresso 8.1.x debug problems (Ubuntu)

1,252 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by djlegge on Mon Mar 21 03:09:29 MST 2016
Hi,

I have been using LPCXpresso on Ubuntu 14.04 for a couple of years but have hit debug problems with 8.1.2 and 8.1.4 (I did not try 8.1.0). I am using an OM13000 LPCXpresso LPC1769 board as a debug probe to my target (it is an LPC1768). The probe identifies as LPC-Link Probe v1.3 (LinkServer) on 8.1.4.

The problem is that setting breakpoints usually (not always) fails with a 'cannot access memory at...' type error. Also, reading the values of variables is very unreliable - usually you just get nothing. After a few (sometimes just one) single steps with the debugger, I end up with the debugger stopping with : No source available for "0xffffffff" in the code window and "Program received signal SIGSTOP, Stopped (signal). 0xffffffff in ?? ()" in the console.

Going back to LPCXpresso 8.0.0 I have no issues what so ever. The debug probe identifies as LPC-Link v1.1 LPC-Link Driver linux32 v1.1 and debugging works fine.

For now I can just use 8.0.0 (as I have both versions installed) but it would be nice to be able to use the latest version.

Any ideas ? Thanks.
0 Kudos
Reply
5 Replies

1,098 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos
Reply

1,098 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Mar 23 01:37:17 MST 2016
OK, glad to hear you are back up and working. Thanks for letting us know.

Regards,
LPCXpresso Support
0 Kudos
Reply

1,098 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by djlegge on Tue Mar 22 05:24:51 MST 2016
I just copied my project into a new workspace and it seems to work fine now. I'll post back if it stops working again.
0 Kudos
Reply

1,098 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by djlegge on Tue Mar 22 03:24:39 MST 2016
No Problem. Debug log :
LPCXpresso RedlinkMulti Driver v8.1 (Mar 11 2016 13:35:29 - crt_emu_cm_redlink build 672)
Found chip XML file in /home/darren/6000_mini_lcd/ETC6066_Display/Debug/LPC1768.xml
(  5) Remote configuration complete
Probe Firmware: LPC-Link Probe v1.3 (NXP - LPC-Link)
Serial Number:  WIN64HS12
VID:PID:  1FC9:0009
USB Path:
Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC230. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
inspected v.2 On-chip Flash Memory /usr/local/lpcxpresso_8.1.4_606/lpcxpresso/bin/Flash/LPC175x_6x_512.cfx
image 'LPC175x_6x (512K) Feb 16 2016 09:18:52'
NXP: LPC1768  Part ID: 0x00000000
( 65) Chip Setup Complete
Connected: was_reset=true. was_stopped=false
LPCXpresso Free License - Download limit is 256K
Writing 198888 bytes to address 0x00008000 in Flash
Erased/Wrote page  8-21 with 198888 bytes in 6714msec
Flash Write Done
Flash Program Summary: 198888 bytes in 6.71 seconds (28.93 KB/sec)
Stopped (Was Reset)  [Reset from Unknown]
Stopped: Breakpoint #3
Stopped: Step (Halt)
Stopped: Breakpoint #5
Stopped: Step (Halt)
Stopped: Step (Halt)
Stopped: Step (Halt)
Stopped: Step (Halt)
Stopped: Step (Halt)
Stopped: Step (Halt)
Stopped: Breakpoint #3
Stopped: Locked-up, Sleeping, In-reset (Was Reset)  [Reset from Unknown]: VectorCatch:IRQ47 (PC unknown: stack=0xFFFFFFFF) (VectorCatch,Breakpoint,Watchpoint,EDBGRQ)


gdb traces :
761,908 2-gdb-version
761,909 ~"GNU gdb (GNU Tools for ARM Embedded Processors) 7.10.1.20151217-cvs-LPCXpresso001\n"
761,910 ~"Copyright (C) 2015 Free Software Foundation, Inc.\n"
761,910 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\
e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\
ed by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
761,910 ~"This GDB was configured as \"--host=i686-linux-gnu --target=arm-none-eabi\".\nType \"show \
configuration\" for configuration details."
761,910 ~"\nFor bug reporting instructions, please see:\n"
761,910 ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
761,910 ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/soft\
ware/gdb/documentation/>.\n"
761,910 ~"For help, type \"help\".\n"
761,910 ~"Type \"apropos word\" to search for commands related to \"word\".\n"
761,910 2^done
761,911 (gdb) 
761,913 3-environment-cd /home/darren/6000_mini_lcd/ETC6066_Display
761,913 3^done
761,913 (gdb) 
761,914 4-gdb-set breakpoint pending on
761,914 4^done
761,914 (gdb) 
761,922 5-enable-pretty-printing
761,922 5^done
761,922 (gdb) 
761,924 6-gdb-set python print-stack none
761,924 6^done
761,924 (gdb) 
761,925 7-gdb-set print object on
761,925 7^done
761,925 (gdb) 
761,926 8-gdb-set print sevenbit-strings on
761,927 8^done
761,927 (gdb) 
761,927 9-gdb-set charset ISO-8859-1
761,928 9^done
761,929 (gdb) 
761,930 10-gdb-set auto-solib-add on
761,930 10^done
761,930 (gdb) 
761,938 11-file-exec-and-symbols --thread-group i1 /home/darren/6000_mini_lcd/ETC6066_Display/Debug/\
ETC6066_Display.axf
761,956 11^done
761,956 (gdb) 
761,963 12-interpreter-exec console "set remotetimeout 60000"
761,963 =cmd-param-changed,param="remotetimeout",value="60000"
761,963 12^done
761,963 (gdb) 
762,314 13-target-select extended-remote | crt_emu_cm_redlink -msg-port=60227 -g -mi -2 -pLPC1768 -v\
endor=NXP -reset=VECTRESET -ProbeHandle=1 -CoreIndex=0 -flash-driver=LPC175x_6x_512.cfx -x /home/dar\
ren/6000_mini_lcd/ETC6066_Display/Debug
762,455 =thread-group-started,id="i1",pid="42000"
762,456 =thread-created,id="1",group-id="i1"
762,458 14-list-thread-groups --available
762,478 ~"0x0001a684 in vuIP_Task (pvParameters=<error reading variable: Cannot access memory at add\
ress 0xa5a5a5a9>) at ../src/UIP/uIP_Task.c:305\n"
762,479 ~"305\t\t\t\t\t\tif( timer_expired( &arp_timer ) )\n"
762,479 *stopped,frame={addr="0x0001a684",func="vuIP_Task",args=[{name="pvParameters",value="<error \
reading variable: Cannot access memory at address 0xa5a5a5a9>"}],file="../src/UIP/uIP_Task.c",fullna\
me="/home/darren/6000_mini_lcd/ETC6066_Display/src/UIP/uIP_Task.c",line="305"},thread-id="1",stopped\
-threads="all"
762,479 13^connected
762,479 (gdb) 
762,479 14^error,msg="Can not fetch data now."
762,480 (gdb) 
762,486 15-interpreter-exec console "set mem inaccessible-by-default off"
762,486 =cmd-param-changed,param="mem inaccessible-by-default",value="off"
762,486 15^done
762,486 (gdb) 
762,487 16-interpreter-exec console "mon ondisconnect cont"
762,487 16^done
762,487 (gdb) 
762,488 17-interpreter-exec console "set arm force-mode thumb"
762,488 =cmd-param-changed,param="arm force-mode",value="thumb"
762,488 17^done
762,488 (gdb) 
762,491 18-interpreter-exec console "mon capabilities"
762,492 18^done
762,492 (gdb) 
762,493 19-interpreter-exec console "set remote hardware-breakpoint-limit 6"
762,494 =cmd-param-changed,param="remote hardware-breakpoint-limit",value="6"
762,494 19^done
762,494 (gdb) 
762,495 20-interpreter-exec console "mon semihost enable"
762,496 20^done
762,496 (gdb) 
762,498 21-interpreter-exec console "mon info,all"
762,498 21^done
762,501 (gdb) 
762,662 22-data-list-register-names
762,663 22^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","r11","r12",\
"sp","lr","pc","","","","","","","","","","xpsr","","","","","","","","","","","","","","","","","",\
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\
","","","","","","","","","","","","","","","cycles"]
762,663 (gdb) 
762,665 23-target-download
762,666 23+download,{section=".text",section-size="196524",total-size="1029709"}
762,666 23+download,{section=".text",section-sent="16048",section-size="196524",total-sent="16048",t\
otal-size="1029709"}
762,670 23+download,{section=".data_RAM3",section-size="1716",total-size="1029709"}
762,670 23+download,{section=".data",section-size="648",total-size="1029709"}
763,472 24-list-thread-groups
769,687 23^done,address="0x8198",load-size="198888",transfer-rate="227816",write-rate="11699"
769,688 (gdb) 
769,688 24^done,groups=[{id="i1",type="process",pid="42000",executable="/home/darren/6000_mini_lcd/E\
TC6066_Display/Debug/ETC6066_Display.axf"}]
769,690 (gdb) 
769,696 25-gdb-show --thread-group i1 language
769,697 25^done,value="auto"
769,697 (gdb) 
769,698 26-gdb-set --thread-group i1 language c
769,698 26^done
769,698 (gdb) 
769,700 27-interpreter-exec --thread-group i1 console "p/x (char)-1"
769,701 ~"$1 = 0xff\n"
769,701 27^done
769,701 (gdb) 
769,704 28-data-evaluate-expression --thread-group i1 "sizeof (void*)"
769,705 28^done,value="4"
769,705 (gdb) 
769,706 29-gdb-set --thread-group i1 language auto
769,706 29^done
769,706 (gdb) 
769,709 30-interpreter-exec --thread-group i1 console "show endian"
769,709 ~"The target endianness is set automatically (currently little endian)\n"
769,709 30^done
769,709 (gdb) 
769,716 31-list-thread-groups i1
769,716 31^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x00008198",func="\
ResetISR",args=[],file="../src/cr_startup_lpc17.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Disp\
lay/src/cr_startup_lpc17.c",line="255"},state="stopped"}]
769,717 (gdb) 
769,751 32-stack-info-depth --thread 1 11
769,751 32^done,depth="1"
769,751 (gdb) 
769,753 33-break-insert -f /home/darren/6000_mini_lcd/USB_Host/src/Host/usbhost_lpc17xx.c:453
769,753 34-break-insert -f /home/darren/6000_mini_lcd/ETC6066_Display/src/USB/usbhost_main.c:73
769,753 35-break-insert -f /home/darren/6000_mini_lcd/USB_Host/src/Host/usbhost_lpc17xx.c:385
769,753 36-break-insert -f /home/darren/6000_mini_lcd/ETC6066_Display/src/cr_startup_lpc17.c:322
769,764 33^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0002f108",func="H\
ost_CtrlRecv",file="../src/Host/usbhost_lpc17xx.c",fullname="/home/darren/6000_mini_lcd/USB_Host/src\
/Host/usbhost_lpc17xx.c",line="453",thread-groups=["i1"],times="0",original-location="/home/darren/6\
000_mini_lcd/USB_Host/src/Host/usbhost_lpc17xx.c:453"}
769,765 (gdb) 
769,775 34^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00017586",func="i\
nstall_files",file="../src/USB/usbhost_main.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Display/\
src/USB/usbhost_main.c",line="73",thread-groups=["i1"],times="0",original-location="/home/darren/600\
0_mini_lcd/ETC6066_Display/src/USB/usbhost_main.c:73"}
769,775 (gdb) 
769,787 35^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x0002ef6c",func="H\
ost_EnumDev",file="../src/Host/usbhost_lpc17xx.c",fullname="/home/darren/6000_mini_lcd/USB_Host/src/\
Host/usbhost_lpc17xx.c",line="385",thread-groups=["i1"],times="0",original-location="/home/darren/60\
00_mini_lcd/USB_Host/src/Host/usbhost_lpc17xx.c:385"}
769,788 (gdb) 
769,795 36^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x0000821c",func="H\
ardFault_Handler",file="../src/cr_startup_lpc17.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Disp\
lay/src/cr_startup_lpc17.c",line="322",thread-groups=["i1"],times="0",original-location="/home/darre\
n/6000_mini_lcd/ETC6066_Display/src/cr_startup_lpc17.c:322"}
769,796 (gdb) 
769,803 37-break-insert -t -f main
769,815 37^done,bkpt={number="5",type="breakpoint",disp="del",enabled="y",addr="0x00029fc2",func="ma\
in",file="../src/main.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Display/src/main.c",line="81",\
thread-groups=["i1"],times="0",original-location="main"}
769,815 (gdb) 
769,825 38-exec-continue --thread-group i1
769,825 ~"Note: automatically using hardware breakpoints for read-only addresses.\n"
769,849 38^running
769,849 *running,thread-id="all"
769,850 (gdb) 
771,074 =breakpoint-modified,bkpt={number="5",type="breakpoint",disp="del",enabled="y",addr="0x00029\
fc2",func="main",file="../src/main.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Display/src/main.\
c",line="81",thread-groups=["i1"],times="1",original-location="main"}
771,098 ~"\nTemporary breakpoint "
771,099 ~"5, main () at ../src/main.c:81\n"
771,099 ~"81\t\tif (WDT_ReadTimeOutFlag()) {\n"
771,099 *stopped,reason="breakpoint-hit",disp="del",bkptno="5",frame={addr="0x00029fc2",func="main",\
args=[],file="../src/main.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Display/src/main.c",line="\
81"},thread-id="1",stopped-threads="all"
771,099 =breakpoint-deleted,id="5"
771,099 (gdb) 
771,115 39-stack-info-depth --thread 1 11
771,115 39^done,depth="1"
771,116 (gdb) 
771,118 40-stack-info-depth --thread 1
771,119 40^done,depth="1"
771,119 (gdb) 
771,133 41-var-create --thread 1 --frame 0 - * TDHead
771,139 41^done,name="var1",numchild="4",value="0x0",type="volatile HCTD *",has_more="0"
771,140 (gdb) 
771,146 42-thread-info 1
771,146 42^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x00029fc2",func="\
main",args=[],file="../src/main.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Display/src/main.c",\
line="81"},state="stopped"}]
771,147 (gdb) 
771,149 43-var-set-format var1 hexadecimal
771,149 43^done,format="hexadecimal",value="0x0"
771,149 (gdb) 
771,152 44-var-set-format var1 natural
771,152 44^done,format="natural",value="0x0"
771,152 (gdb) 
774,065 45-exec-next --thread 1 1
774,084 45^running
774,084 *running,thread-id="all"
774,084 (gdb) 
774,412 *stopped,reason="end-stepping-range",frame={addr="0x00029fd8",func="main",args=[],file="../s\
rc/main.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Display/src/main.c",line="86"},thread-id="1"\
,stopped-threads="all"
774,413 (gdb) 
774,442 46-stack-info-depth --thread 1 11
774,443 46^done,depth="1"
774,443 (gdb) 
774,470 47-var-update 1 var1
774,474 47^done,changelist=[]
774,475 (gdb) 
774,480 48-thread-info 1
774,482 48^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x00029fd8",func="\
main",args=[],file="../src/main.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Display/src/main.c",\
line="86"},state="stopped"}]
774,483 (gdb) 
775,198 49-exec-next --thread 1 1
775,216 49^running
775,216 *running,thread-id="all"
775,216 (gdb) 
775,387 *stopped,reason="end-stepping-range",frame={addr="0x00029fde",func="main",args=[],file="../s\
rc/main.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Display/src/main.c",line="98"},thread-id="1"\
,stopped-threads="all"
775,388 (gdb) 
775,431 50-stack-info-depth --thread 1 11
775,431 50^done,depth="1"
775,431 (gdb) 
775,455 51-var-update 1 var1
775,459 51^done,changelist=[]
775,459 (gdb) 
775,469 52-thread-info 1
775,470 52^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x00029fde",func="\
main",args=[],file="../src/main.c",fullname="/home/darren/6000_mini_lcd/ETC6066_Display/src/main.c",\
line="98"},state="stopped"}]
775,470 (gdb) 
777,753 53-data-evaluate-expression --thread 1 --frame 0 init_leds_and_relays
777,763 53^done,value="{void (void)} 0x29e80 <init_leds_and_relays>"
777,763 (gdb) 
777,817 54-var-create --thread 1 --frame 0 - * init_leds_and_relays
777,822 54^done,name="var2",numchild="0",value="{void (void)} 0x29e80 <init_leds_and_relays>",type="\
void (void)",has_more="0"
777,822 (gdb) 
777,823 55-var-set-format var2 hexadecimal
777,823 55^done,format="hexadecimal",value="<error reading variable>"
777,823 (gdb) 
777,824 56-var-set-format var2 natural
777,824 56^done,format="natural",value="{void (void)} 0x29e80 <init_leds_and_relays>"
777,824 (gdb) 
777,950 57-var-set-format var2 octal
777,950 57^done,format="octal",value="<error reading variable>"
777,950 (gdb) 
777,950 58-var-set-format var2 natural
777,951 58^done,format="natural",value="{void (void)} 0x29e80 <init_leds_and_relays>"
777,951 (gdb) 
777,951 59-var-set-format var2 decimal
777,952 59^done,format="decimal",value="<error reading variable>"
777,952 (gdb) 
777,952 60-var-set-format var2 natural
777,953 60^done,format="natural",value="{void (void)} 0x29e80 <init_leds_and_relays>"
777,953 (gdb) 
777,954 61-var-set-format var2 binary
777,954 61^done,format="binary",value="<error reading variable>"
777,954 (gdb) 
777,955 62-var-set-format var2 natural
777,955 62^done,format="natural",value="{void (void)} 0x29e80 <init_leds_and_relays>"
777,955 (gdb) 
781,179 63-exec-continue --thread 1
781,198 63^running
781,198 *running,thread-id="all"
781,198 (gdb) 
781,397 @"xFlashRate 250   portTICK_RATE_MS 1 \n"
783,519 @"Got IP address 192.168.0.96\n"
783,590 @"Got netmask 255.255.255.0\n"
783,657 @"Got DNS server 192.168.0.93\n"
783,720 @"Got default router 192.168.0.93\n"
783,790 @"Lease expires in 86413 seconds\n"
816,854 =breakpoint-modified,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x0002\
ef6c",func="Host_EnumDev",file="../src/Host/usbhost_lpc17xx.c",fullname="/home/darren/6000_mini_lcd/\
USB_Host/src/Host/usbhost_lpc17xx.c",line="385",thread-groups=["i1"],times="1",original-location="/h\
ome/darren/6000_mini_lcd/USB_Host/src/Host/usbhost_lpc17xx.c:385"}
816,874 ~"\nBreakpoint "
816,875 ~"3, Host_EnumDev () at ../src/Host/usbhost_lpc17xx.c:385\n"
816,875 ~"385\t    rc = HOST_GET_DESCRIPTOR(USB_DESCRIPTOR_TYPE_DEVICE, 0, TDBuffer, 8);\n"
816,875 *stopped,reason="breakpoint-hit",disp="keep",bkptno="3",frame={addr="0x0002ef6c",func="Host_\
EnumDev",args=[],file="../src/Host/usbhost_lpc17xx.c",fullname="/home/darren/6000_mini_lcd/USB_Host/\
src/Host/usbhost_lpc17xx.c",line="385"},thread-id="1",stopped-threads="all"
816,875 (gdb) 
816,885 64-stack-info-depth --thread 1 11
816,970 64^done,depth="3"
816,971 (gdb) 
816,985 65-thread-info 1
816,986 65^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0x0002ef6c",func="\
Host_EnumDev",args=[],file="../src/Host/usbhost_lpc17xx.c",fullname="/home/darren/6000_mini_lcd/USB_\
Host/src/Host/usbhost_lpc17xx.c",line="385"},state="stopped"}]
816,986 (gdb) 
817,459 66-stack-list-frames --thread 1
817,460 66^done,stack=[frame={level="0",addr="0x0002ef6c",func="Host_EnumDev",file="../src/Host/usbh\
ost_lpc17xx.c",fullname="/home/darren/6000_mini_lcd/USB_Host/src/Host/usbhost_lpc17xx.c",line="385"}\
,frame={level="1",addr="0x00017924",func="vUSBTask",file="../src/USB/usbhost_main.c",fullname="/home\
/darren/6000_mini_lcd/ETC6066_Display/src/USB/usbhost_main.c",line="250"},frame={level="2",addr="0x0\
0000000",func="??"}]
817,460 (gdb) 
821,344 67-exec-next --thread 1 1
821,357 67^running
821,357 *running,thread-id="all"
821,358 (gdb) 
821,444 ~"\nProgram received signal "
821,445 ~"SIGSTOP, Stopped (signal).\n"
821,452 ~"0xffffffff in ?? ()\n"
821,452 *stopped,reason="signal-received",signal-name="SIGSTOP",signal-meaning="Stopped (signal)",fr\
ame={addr="0xffffffff",func="??",args=[]},thread-id="1",stopped-threads="all"
821,452 (gdb) 
821,461 68-stack-info-depth --thread 1 11
821,462 68^done,depth="1"
821,462 (gdb) 
821,477 69-thread-info 1
821,482 69^done,threads=[{id="1",target-id="Thread <main>",frame={level="0",addr="0xffffffff",func="\
??",args=[]},state="stopped"}]
821,482 (gdb) 
0 Kudos
Reply

1,098 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Mar 22 02:01:12 MST 2016
We have not seen any such issues here on Ubuntu.

In the first place, can you please post your debug log and gdb traces log from the console view:

https://www.lpcware.com/content/faq/lpcxpresso/debug-log

Regards,
LPCXpresso Support
0 Kudos
Reply