Changes between Version 2 and Version 3 of Hardware/jCM/cCM2/bDev
- Timestamp:
- Jul 30, 2008, 6:57:43 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hardware/jCM/cCM2/bDev
v2 v3 18 18 The 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. 19 19 20 The daemon is started with: 21 22 {{{ 23 openocd -f openocd.cfg 24 }}} 25 26 It is listening for gdb connections on default port 3333. 27 20 28 == Cross-compiler == 21 29 … … 26 34 27 35 You 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 39 Use [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 }}}