openJTAG学习笔记一

安装软件
光盘Windows\install目录下的
01.OpenOCD with GUI setup.exe
02.yagarto-bu-2.18_gcc-4.2.2-c-c++_nl-1.16.0_gi-6.8.50_20080408.exe
03.yagarto-tools-20070303-setup.exe
jre7




使用eclipse调试led程序
1 导入光盘示例放入D:\c_porjects
2 新建工程
3 编译
4 调试
安装zylin
help-->install new software
http://opensource.zylin.com/zylincdt


1点击debug configurations-->c zylin embedded debug (native)
2debuggers标签的GDB command file设置为;
       D:\c_porjects\6410\s3c6410_gdb.init
3commands设置
  load
  break main
  c


openJTAG烧写第一个程序
1 进入应用目录D:\c_porjects\6410\1th_led,执行make命令编译程序
3 打开openODC程序指定开发板型号,设定工作目录,然后点击connect
  此时可能有很多警告提示,先设为SD卡启动(不需插SD卡),再点connect,正常后直接
  带电拔到NAND启动
4 点击tellnet,执行以下命令 


Open On-Chip Debugger
> halt
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000001d3 pc: 0x00000030
> nand probe 0
NAND flash device 'NAND 1GiB 3.3V 8-bit (Samsung)' found
> nand erase 0 0 0x20000
s3c2440_read_block_data: reading data: 00ed2818, 0022edc0, 6
erased blocks 0 to 0 on NAND flash device #0 'NAND 1GiB 3.3V 8-bit'
> nand write 0 led.bin 0
wrote file led.bin to NAND flash 0 up to offset 0x00000800 in 7.937500s (0.124 K
iB/s)
> reset
JTAG tap: s3c6410.etb tap/device found: 0x2b900f0f (mfg: 0x787, part: 0xb900, ve
r: 0x2)
JTAG tap: s3c6410.cpu tap/device found: 0x07b76f0f (mfg: 0x787, part: 0x7b76, ve
r: 0x0)
found ARM1176

你可能感兴趣的:(openJTAG学习笔记一)