Created
June 5, 2017 19:32
-
-
Save acassis/47451d2d7fecca49f44fc3126a230308 to your computer and use it in GitHub Desktop.
debug_bambinolpc4330_jlink.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ arm-none-eabi-gdb nuttx.elf | |
GNU gdb (GNU Tools for ARM Embedded Processors) 7.12.0.20161204-git | |
Copyright (C) 2016 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-none-eabi". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>. | |
Find the GDB manual and other documentation resources online at: | |
<http://www.gnu.org/software/gdb/documentation/>. | |
For help, type "help". | |
Type "apropos word" to search for commands related to "word"... | |
Reading symbols from nuttx.elf...done. | |
(gdb) target remote localhost:2331 | |
Remote debugging using localhost:2331 | |
up_idle () at chip/lpc43_idle.c:185 | |
185 } | |
(gdb) monitor reset | |
Resetting target | |
(gdb) load | |
Loading section .text, size 0x1f2a0 lma 0x14000000 | |
Loading section .ARM.exidx, size 0x8 lma 0x1401f2a0 | |
Loading section .data, size 0xec lma 0x1401f2a8 | |
Start address 0x14000138, load size 127892 | |
Transfer rate: 17842 KB/sec, 12789 bytes/write. | |
(gdb) b __start | |
Breakpoint 1 at 0x1400013e: file chip/lpc43_start.c, line 287. | |
(gdb) step | |
Breakpoint 1, __start () at chip/lpc43_start.c:287 | |
287 lpc43_setbootrom(); | |
(gdb) | |
Program received signal SIGTRAP, Trace/breakpoint trap. | |
0xfffffffe in ?? () | |
(gdb) | |
This is the messages in the JLink GDB Server side: | |
$ sudo JLinkGDBServer -device LPC4330_M4 -interface JTAG | |
SEGGER J-Link GDB Server V6.14h Command Line Version | |
JLinkARM.dll V6.14h (DLL compiled May 10 2017 18:39:37) | |
WARNING: Unknown command line parameter -interface found. | |
WARNING: Unknown command line parameter JTAG found. | |
-----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: yes | |
Generate logfile: off | |
Verify download: off | |
Init regs on start: off | |
Silent mode: off | |
Single run mode: off | |
Target connection timeout: 0 ms | |
------J-Link related settings------ | |
J-Link Host interface: USB | |
J-Link script: none | |
J-Link settings file: none | |
------Target related settings------ | |
Target device: LPC4330_M4 | |
Target interface: JTAG | |
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: 268006167 | |
OEM: SEGGER-EDU | |
Feature(s): FlashBP, GDB | |
Checking target voltage... | |
Target voltage: 3.26 V | |
Listening on TCP/IP port 2331 | |
Connecting to target... | |
J-Link found 2 JTAG devices, Total IRLen = 8 | |
JTAG ID: 0x4BA00477 (Cortex-M4) | |
Connected to target | |
Waiting for GDB connection...Connected to 127.0.0.1 | |
Reading all registers | |
Read 4 bytes @ address 0x14005ACA (Data = 0x46BDBF00) | |
Resetting target | |
Downloading 16192 bytes @ address 0x14000000 | |
Downloading 16208 bytes @ address 0x14003F40 | |
Downloading 16080 bytes @ address 0x14007E90 | |
Downloading 16080 bytes @ address 0x1400BD60 | |
Downloading 16160 bytes @ address 0x1400FC30 | |
Downloading 16144 bytes @ address 0x14013B50 | |
Downloading 16064 bytes @ address 0x14017A60 | |
Downloading 14720 bytes @ address 0x1401B920 | |
Downloading 8 bytes @ address 0x1401F2A0 | |
Downloading 236 bytes @ address 0x1401F2A8 | |
Writing register (PC = 0x38010014) | |
Read 4 bytes @ address 0x14000138 (Data = 0xB082B580) | |
Read 2 bytes @ address 0x1400013E (Data = 0xF7FF) | |
Read 2 bytes @ address 0x1400013E (Data = 0xF7FF) | |
Read 2 bytes @ address 0x1400013E (Data = 0xF7FF) | |
Setting breakpoint @ address 0x1400013E, Size = 2, BPHandle = 0x0001 | |
Performing single step... | |
...Breakpoint reached @ address 0x1400013A | |
Reading all registers | |
Read 4 bytes @ address 0x1400013A (Data = 0xAF00B082) | |
Performing single step... | |
...Breakpoint reached @ address 0x1400013C | |
Reading all registers | |
Read 4 bytes @ address 0x1400013C (Data = 0xF7FFAF00) | |
Performing single step... | |
...Breakpoint reached @ address 0x1400013E | |
Reading all registers | |
Read 4 bytes @ address 0x1400013E (Data = 0xFFE9F7FF) | |
Removing breakpoint @ address 0x1400013E, Size = 2 | |
Performing single step... | |
...Breakpoint reached @ address 0x14000114 | |
Reading all registers | |
Read 4 bytes @ address 0x14000114 (Data = 0xAF00B480) | |
Read 4 bytes @ address 0x14000142 (Data = 0xFA77F000) | |
Read 2 bytes @ address 0x14000118 (Data = 0x4B05) | |
Read 4 bytes @ address 0x14000130 (Data = 0x40043100) | |
Read 2 bytes @ address 0x14000118 (Data = 0x4B05) | |
Setting breakpoint @ address 0x14000118, Size = 2, BPHandle = 0x0002 | |
Setting breakpoint @ address 0x1400013E, Size = 2, BPHandle = 0x0003 | |
Starting target CPU... | |
...Target halted (DBGRQ, PC = 0xFFFFFFFE) | |
Reading all registers | |
WARNING: Failed to read memory @ address 0xFFFFFFFE | |
Removing breakpoint @ address 0x14000118, Size = 2 | |
Removing breakpoint @ address 0x1400013E, Size = 2 | |
^CRestoring target state and closing J-Link connection... | |
Shutting down... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment