Friday, November 12, 2010

Nov.11 JTAG,openocd, arm-elf-insight revisted

Details so can change to use with forte not in 1 place or copy to a common place.

JTAG - the picture shows the connections best. Note the black line goes toward the outside.
openocd - FLASH.bat is hard coded to a specific directory with forte and forte.bin
uses
C:\openocd\trunk3\testing\examples\SAM7S256Test\prj\SAM7S256_flash.cfg  is also hardcoded to a specific directory.
Note: multiple openocd's installed so notice trunk3 is the version used!


arm-elf-insight from cygwin 
openocd.bat  must be running before arm-elf-forte is started.


In a cygwin window:
1. cd to directory with forte and forte.bin
2.  enter arm-elf-insight forte

     The gnu debugger opens
3. Connect to the device (run-->connect to device) using ethernet / localhost / 3333
4. Open console (view-->console) and enter:
  •      monitor reset
  •      monitor halt 
    • stop  button if want to restart this process later]
5. Set breakpoints  (view-->breakpoints)
- at most 2 breakpoints are allowed
- at most 1 breakpoint if you want to examine variables
6. Continue to start debugging




No comments:

Post a Comment