蓝点工坊(http://www.bluedrum.cn) 创始人,App和嵌入式产品开发。同时也做相应培训和外包工作。 详细介绍 http://pan.baidu.com/s/1y2g88
全部博文(311)
分类: 嵌入式
2010-11-25 17:37:40
C:\Documents and Settings\hxy>arm-none-eabi-gdb
GNU gdb (CodeSourcery Sourcery G++ Lite 2007q1-3) 6.6.50.20070320-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-mingw32 --target=arm-none-eabi".
For bug reporting instructions, please see:
(gdb)
|
(gdb) target remote 127.0.0.1:2331 Remote debugging using 127.0.0.1:2331 0x00000000 in ?? () (gdb) load e:/tmp/mini6410-led.axf Loading section ER_RO, size 0x8dc lma 0x50000000 Start address 0x5000039c, load size 2268 Transfer rate: 18144 bits in <1 sec, 2268 bytes/write. (gdb) file e:/tmp/mini6410-led.axf A program is being debugged already. Are you sure you want to change the file? (y or n) y warning: unknown ARM EABI version 0x2000000 Reading symbols from e:/tmp/mini6410-led.axf...done. |
(gdb) jump 5000039c Function "5000039c" not defined. (gdb) monitor reg r13 = (0x50000000) Failed to read memory from address 0x50000000 (gdb) monitor reg pc = (0x5000039c) Failed to read memory from address 0x5000039C |
# connect to the J-Link gdb server target remote localhost:2331 # Set JTAG speed to 30 kHz monitor endian little monitor speed 30 # Reset the target monitor reset monitor sleep 10 # # CPU core initialization (to be done by user) # # Set the processor mode monitor reg cpsr = 0xd3 #config MMU #flush v3/v4 cache monitor cp15 7, 7, 0, 0 = 0x0 #/* flush v4 TLB */ monitor cp15 8, 7, 0, 0 = 0x0 #disable MMU stuff and caches monitor cp15 1, 0, 0, 0 =0x1002 #Peri port setup monitor cp15 15, 2, 0, 4 = 0x70000013 #disable watchdog monitor MemU32 0x7e004000 = 0x00000000 monitor sleep 10 #disable interrupt monitor MemU32 0x71200014 = 0x00000000 monitor MemU32 0x71300014 = 0x00000000 monitor MemU32 0x7120000C = 0x00000000 monitor MemU32 0x7130000C = 0x00000000 monitor MemU32 0x71200F00 = 0x00000000 monitor MemU32 0x71300F00 = 0x00000000 #set clock monitor MemU32 0x7e00f900 = 0x0000801e monitor MemU32 0x7e00f000 = 0x0000ffff monitor MemU32 0x7e00f004 = 0x0000ffff monitor MemU32 0x7e00f020 = 0x01043310 monitor MemU32 0x7e00f00C = 0xc2150601 monitor MemU32 0x7e00f010 = 0xc2150601 monitor MemU32 0x7e00f024 = 0x00000003 monitor MemU32 0x7e00f014 = 0x00200102 monitor MemU32 0x7e00f018 = 0x00000000 monitor MemU32 0x7e00f01C = 0x14000007 #config sdram monitor MemU32 0x7e00f120 = 0x00000008 monitor MemU32 0x7e001004 = 0x00000004 monitor MemU32 0x7e001010 = 0x0000040f monitor MemU32 0x7e001014 = 0x00000006 monitor MemU32 0x7e001018 = 0x00000001 monitor MemU32 0x7e00101c = 0x00000002 monitor MemU32 0x7e001020 = 0x00000006 monitor MemU32 0x7e001024 = 0x0000000a monitor MemU32 0x7e001028 = 0x0000000c monitor MemU32 0x7e00102c = 0x0000018f monitor MemU32 0x7e001030 = 0x0000000c monitor MemU32 0x7e001034 = 0x00000002 monitor MemU32 0x7e001038 = 0x00000002 monitor MemU32 0x7e00103c = 0x00000002 monitor MemU32 0x7e001040 = 0x00000002 monitor MemU32 0x7e001044 = 0x00000013 monitor MemU32 0x7e001048 = 0x00000013 monitor MemU32 0x7e00100C = 0x00010012 monitor MemU32 0x7e00104C = 0x00000b45 monitor MemU32 0x7e001200 = 0x000150f8 monitor MemU32 0x7e001304 = 0x00000000 monitor MemU32 0x7e001008 = 0x000c0000 monitor MemU32 0x7e001008 = 0x00000000 monitor MemU32 0x7e001008 = 0x00040000 monitor MemU32 0x7e001008 = 0x00040000 monitor MemU32 0x7e001008 = 0x000a0000 monitor MemU32 0x7e001008 = 0x00080032 monitor MemU32 0x7e001004 = 0x00000000 # Setup GDB for faster downloads #set remote memory-write-packet-size 1024 set remote memory-write-packet-size 4096 set remote memory-write-packet-size fixed monitor speed 12000 |