Content originally posted in LPCWare by 1234567890 on Mon Dec 01 12:53:35 MST 2014
Hi,
after installing V4.94h on my Kubuntu 14.04 amd64 and customizing the Startup-Tab (device and so on) it works. I choose the 32-bit version of the pack.
***Edit***: Same behaviour with the 64-bit version.
But unfortunately the 'Peripherals' view is empty and so debugging is pretty impossible.
Therefore I installed the 'GNU ARM Eclipse SEGGER J-Link debugger plug-in' in hope of solving that issue. Without success:
SEGGER J-Link GDB Server V4.94h Command Line Version
JLinkARM.dll V4.94h (DLL compiled Nov 28 2014 17:54:16)
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: localhost only
Generate logfile: off
Verify download: on
Init regs on start: on
Silent mode: off
Single run mode: on
Target connection timeout: 5000 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: LPC1768
Target interface: SWD
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
Hardware: V8.00
S/N: 268000xxx
OEM: SEGGER-EDU
Feature(s): FlashBP
Checking target voltage...
Target voltage: 3.28 V
Listening on TCP/IP port 2331
Connecting to target...Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 1 bytes @ address 0x00000000 (Data = 0x00) <=========== PROBLEM starts
Read 1 bytes @ address 0x00000000 (Data = 0x00)
Reading 64 bytes @ address 0x00000000
Reading 8 bytes @ address 0x00000000
Reading 7 bytes @ address 0x00000000
Target interface speed set to 1000 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x00000170)
R0 = 00000000, R1 = 00000171, R2 = 00000000, R3 = 00000000
R4 = 3456ABCD, R5 = 3456ABCD, R6 = 12345678, R7 = 10007FE0
R8 = 6D9175DB, R9 = 54CE0464, R10= AD57C55A, R11= 3F3BE492
R12= 00000107, R13= 10008000, MSP= 10008000, PSP= F5A6BD00
R14(LR) = 1FFF0D5F, R15(PC) = 00000170
XPSR 61000000, APSR 60000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
WARNING: Failed to read memory @ address 0x6D9175DB
WARNING: Failed to read memory @ address 0x6D9175DB
Reading 8 bytes @ address 0x6D9175DB
WARNING: Failed to read memory @ address 0x6D9175DB
Reading 7 bytes @ address 0x6D9175DB
WARNING: Failed to read memory @ address 0x6D9175DB
Reading 64 bytes @ address 0x6D9175C0
WARNING: Failed to read memory @ address 0x6D9175C0
Select auto target interface speed (2000 kHz)
Flash breakpoints enabled
Semi-hosting enabled (VectorAddr = 0x08)
Semihosting I/O set to TELNET Client
SWO disabled succesfully.
SWO enabled succesfully.
WARNING: Failed to read memory @ address 0x6D9175DB
WARNING: Failed to read memory @ address 0x6D9175DB
Reading 8 bytes @ address 0x6D9175DB
WARNING: Failed to read memory @ address 0x6D9175DB
Reading 7 bytes @ address 0x6D9175DB
WARNING: Failed to read memory @ address 0x6D9175DB
Reading 64 bytes @ address 0x6D9175C0
WARNING: Failed to read memory @ address 0x6D9175C0
Downloading 2756 bytes @ address 0x00000000 - Verified OK
Writing register (R8 = 0x00000171)
WARNING: Unsupported register (-1)
Reading register (PRIMASK = 0x00000000)
GDB closed TCP/IP connection
Obviously it doesn't work at an early point directly after connection of the gdbserver.
(reading 0x00 @ address 0x00000000).
Any suggestions?
Full support of the J-Link would be a great pleasure; especially when using custom boards.
Seperating a LPC-Link 1 and use LPCXpresso with a custom board works also fine, but when there is a J-Link available...