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
CPLD-based JTAG Programmer Project
回覆刪除http://www.modularcircuits.com/programmer.htm
OpenOCD + Eclipse + Linux
回覆刪除http://blog.chinaunix.net/u1/34474/showart_2089040.html