Changes between Version 2 and Version 3 of Hardware/jCM/cCM2/bDev


Ignore:
Timestamp:
Jul 30, 2008, 6:57:43 PM (16 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Hardware/jCM/cCM2/bDev

    v2 v3  
    1818The file openocd.cfg, included in the source repository, has an appropriate configuration for programming the CM2 hardware, although you can experiment with different scripts to automate erasing the flash, verifying the image, and so forth.
    1919
     20The daemon is started with:
     21
     22{{{
     23  openocd -f openocd.cfg
     24}}}
     25
     26It is listening for gdb connections on default port 3333.
     27
    2028== Cross-compiler ==
    2129
     
    2634
    2735You can also get the latest version of gcc, binutils, and newlib, and compile these as {{{configure --target=arm-elf}}}.  Both the Makefile and the loader know (at least in theory) how to deal with ELF format CM2 images.  In this case tools are prefixed with "arm-elf", so for example an appropriate value for {{{CC}}} in the {{{Makefile}}} would be {{{CC=/usr/local/arm-elf-gcc}}}
     36
     37== Debugger ==
     38
     39Use [source:CM2/trunk/gdbinit gdb initialization file] to set it up to work with JTAG debugger; then, once you start the gdb session issu
     40
     41{{{
     42  load main.elf
     43}}}