2010年4月23日 星期五

Eclipse CDT + OpenOCD + OpenJTAG

Eclipse CDT + OpenOCD + OpenJTAG for ARM Debug ENV SoftWare: IDE : Eclipse CDT Debug: OpenOCD GNU/ cross compiler(ARM)... Ref: OpenOCD : http://www.yagarto.de/index.html Eclipse : http://www.eclipse.org/ 安裝下載 YAGARTO GNU ARM toolchain, YAGARTO Tools , Integrated Development Environment 請記得把 bin, include, lib 加入Windows 的path 中 Check all install is ok % openocd -version % arm-elf-gcc --version %make -v HardWare: OpenJTAG http://funningboy.blogspot.com/2010/04/openjtag.html
Design flow:
Hardware
ID(4). openJTG (usb 2 JTAG) Software ID(1). OpenOCD : 為 ID(4)OpenJTAG(FTD2xx) Driver, name xxx.dll ID(2). ARM-ELF-GDB (cross compiler), compile code 2 ARM Based Env ID(3) IDE(Design Env) TCP connect (Remote Debuge) http://funningboy.blogspot.com/2010/02/gdb-debug.html

Detail Flow : 利用 Cross Compiler 做出Arm code 的bin檔, 假設現在我們要存取在記憶體區段 0x2006D4 的Data.利用GDB做斷點分析, 單步, Run...來做 Remote Debug. 透過OpenOCD Lib 轉成USB Protocol 的Series Data . USB control http://funningboy.blogspot.com/2010/03/usb-device.html OpenJTAG 內會把 Series Data Parse 成 Parallel Data, TDI, TDO, TMS.... JTAG methodology http://funningboy.blogspot.com/2010/02/jtag.html All pic ref: Using Open Source Tools for AT91SAM7S Cross Development 除了用usb 2 JTAG 之外, 也可以用 Print Port 2 JTAG 做 Parallel Debug Ref : http://funningboy.blogspot.com/2010/02/print-port-control.html 或者你可以選擇更簡單的模擬環境 UrJTAG http://urjtag.sourceforge.net/ 裡面有需多開發好的套件跟Lib Flow: Detect Cable Device Detect Target Device Shift IR Shift DR .... GDB Debug...interrupt, go ....

2 則留言:

  1. CPLD-based JTAG Programmer Project

    http://www.modularcircuits.com/programmer.htm

    回覆刪除
  2. OpenOCD + Eclipse + Linux

    http://blog.chinaunix.net/u1/34474/showart_2089040.html

    回覆刪除