You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

293 lines
11 KiB

  1. // This file is part of the Doyxgen Developer Manual
  2. /** @page tasks Pending and Open Tasks
  3. This page lists pending and open tasks being considered or worked upon
  4. by the OpenOCD community.
  5. @section thelist The List
  6. Most items are open for the taking, but please post to the mailing list
  7. before spending much time working on anything lists here. The community
  8. may have evolved an idea since it was added here.
  9. Feel free to send patches to add or clarify items on this list, too.
  10. @section thelisttcl TCL
  11. This section provides possible things to improve with OpenOCD's TCL support.
  12. - Fix problem with incorrect line numbers reported for a syntax
  13. error in a reset init event.
  14. - organize the TCL configurations:
  15. - provide more directory structure for boards/targets?
  16. - factor configurations into layers (encapsulation and re-use)
  17. - Isolate all TCL command support:
  18. - Pure C CLI implementations using --disable-builtin-tcl.
  19. - Allow developers to build new dongles using OpenOCD's JTAG core.
  20. - At first, provide only low-level JTAG support; target layer and
  21. above rely heavily on scripting event mechanisms.
  22. - Allow full TCL support? add --with-tcl=/path/to/installed/tcl
  23. - Move TCL support out of foo.[ch] and into foo_tcl.[ch] (other ideas?)
  24. - See src/jtag/core.c and src/jtag/tcl.c for an example.
  25. - allow some of these TCL command modules to be dynamically loadable?
  26. @section thelistjtag JTAG
  27. This section list issues that need to be resolved in the JTAG layer.
  28. @subsection thelistjtagcore JTAG Core
  29. The following tasks have been suggested for cleaning up the JTAG layer:
  30. - use tap_set_state everywhere to allow logging TAP state transitions
  31. - rename other tap_states to use standard JTAG names (suggested by ML)
  32. - Encapsulate cmd_queue_cur_state and related varaible handling.
  33. - add slick 32 bit versions of jtag_add_xxx_scan() that avoids
  34. buf_set_u32() calls and other evidence of poor impedance match between
  35. API and calling code. New API should cut down # of lines in calling
  36. code by 100's and make things clearer. Also potentially be supported
  37. directly in minidriver API for better embedded host performance.
  38. The following tasks have been suggested for adding new core JTAG support:
  39. - autodetect devices present on the scan chain
  40. - implement 'discover_taps' command
  41. - SPI/UART emulation:
  42. - (ab)use bit-banging JTAG interfaces to emulate SPI/UART
  43. - allow SPI to program flash, MCUs, etc.
  44. @subsection thelistjtaginterfaces JTAG Interfaces
  45. The following tasks have been suggeted for improving OpenOCD's JTAG
  46. interface support:
  47. - rework USB communication to be more robust. Two possible options are:
  48. -# use libusb-1.0.1 with libusb-compat-0.1.1 (non-blocking I/O wrapper)
  49. -# rewrite implementation to use non-blocking I/O
  50. - J-Link driver:
  51. - fix to work with long scan chains, such as R.Doss's svf test.
  52. - FT2232 (libftdi):
  53. - make performance comparable to alternatives
  54. - make usability comparable to alternatives
  55. The following tasks have been suggested for adding new JTAG interfaces:
  56. - TCP driver: allow client/server for remote JTAG interface control.
  57. @section thelistswd Serial Wire Debug
  58. - implement Serial Wire Debug interface
  59. @section thelistbs Boundary Scan Support
  60. - add STAPL support?
  61. - add BSDL support?
  62. A few possible options for the above:
  63. -# Fake a TCL equivalent?
  64. -# Integrate an existing library?
  65. -# Write a new C implementation a la Jim?
  66. Once the above are completed:
  67. - add support for programming flash using boundary scan techniques
  68. - add integration with a modified gerber view program:
  69. - provide means to view the PCB and select pins and traces
  70. - allow use-cases such as the following:
  71. - @b Stimulus
  72. -# Double-click on a pin (or trace) with the mouse.
  73. - @b Effects
  74. -# The trace starts blinking, and
  75. -# OpenOCD toggles the pin(s) 0/1.
  76. @section thelisttargets Target Support
  77. - general layer cleanup: @par
  78. https://lists.berlios.de/pipermail/openocd-development/2009-May/006590.html
  79. - regression: xscale does not place debug_handler.bin into the right spot. workaround:
  80. use -s option on command line to place xscale/debug_handler.bin in search path @par
  81. https://lists.berlios.de/pipermail/openocd-development/2009-July/009338.html
  82. - bug: either USBprog is broken with new tms sequence or there is a general
  83. problem with XScale and the new tms sequence. Workaround: use "tms_sequence long"
  84. @par
  85. https://lists.berlios.de/pipermail/openocd-development/2009-July/009426.html
  86. - regression: "reset halt" between 729(works) and 788(fails): @par
  87. https://lists.berlios.de/pipermail/openocd-development/2009-July/009206.html
  88. - ARM923EJS:
  89. - reset run/halt/step is not robust; needs testing to map out problems.
  90. - ARM11 improvements (MB?)
  91. - fix single stepping (reported by ØH). Need to automatically
  92. use hardware stepping if available.
  93. - hunt down and add timeouts to all infinite loops, e.g. arm11_run_instr_no_data would
  94. lock up in infinite loop if e.g. an "mdh" command tries to read memory from invalid memory location.
  95. Try mdh 0x40000000 on i.MX31 PDK
  96. - mdb can return garbage data if read byte operation fails for
  97. a memory region(16 & 32 byte access modes may be supported). Is this
  98. a bug in the .MX31 PDK init script? Try on i.MX31 PDK:
  99. mdw 0xb80005f0 0x8, mdh 0xb80005f0 0x10, mdb 0xb80005f0 0x20. mdb returns
  100. garabage.
  101. - implement missing functionality (grep FNC_INFO_NOTIMPLEMENTED ...)
  102. - thumb support is missing: ISTR ARMv6 requires Thumb.
  103. ARM1156 has Thumb2; ARM1136 doesn't.
  104. - Cortex A8 support (ML)
  105. - add target implementation (ML)
  106. - MC1322x support (JW/DE?)
  107. - integrate and test support from JW (and DE?)
  108. - get working with a known good interface (i.e. not today's jlink)
  109. - AT91SAM92xx:
  110. - improvements for unknown-board-atmel-at91sam9260.cfg (RD)
  111. - STR9x: (ZW)
  112. - improvements to str912.cfg to be more general purpose
  113. - AVR: (SQ)
  114. - independently verify implementation
  115. - incrementally improve working prototype in trunk. (SQ)
  116. - work out how to debug this target
  117. - AVR debugging protocol.
  118. - FPGA:
  119. - Altera Nios Soft-CPU support
  120. - Coldfire (suggested by NC)
  121. - can we draw from the BDM project? @par
  122. http://bdm.sourceforge.net/
  123. or the OSBDM package @par
  124. http://forums.freescale.com/freescale/board/message?board.id=OSBDM08&thread.id=422
  125. @section thelistsvf SVF/XSVF
  126. - develop SVF unit tests
  127. - develop XSVF unit tests
  128. @section thelistflash Flash Support
  129. - finish documentation for the following flash drivers:
  130. - avr
  131. - ecosflash
  132. - pic32mx
  133. - ocl
  134. - str9xpec
  135. @subsection thelistflashcfi CFI
  136. - finish implementing bus width/chip width handling (suggested by NC)
  137. - factor vendor-specific code into separate source files
  138. - add new callback interface for vendor-specific code
  139. - investigate/implement "thin wrapper" to use eCos CFI drivers (ØH)
  140. @section thelistdebug Debugger Support
  141. - breakpoints can get lost in some circumstances: @par
  142. https://lists.berlios.de/pipermail/openocd-development/2009-June/008853.html
  143. - integrate Keil AGDI interface to OpenOCD? (submitted by Dario Vecchio)
  144. @section thelisttesting Testing Suite
  145. This section includes several related groups of ideas:
  146. - @ref thelistunittests
  147. - @ref thelistsmoketests
  148. - @ref thelisttestreports
  149. - @ref thelisttestgenerichw
  150. @subsection thelistunittests Unit Tests
  151. - add testing skeleton to provide frameworks for adding tests
  152. - implement server unit tests
  153. - implement JTAG core unit tests
  154. - implement JTAG interface unit tests
  155. - implement flash unit tests
  156. - implement target unit tests
  157. @subsection thelistsmoketests Smoke Test Tools
  158. -# extend 'make check' with a smoketest app
  159. - checks for OOCD_TEST_CONFIG, etc. in environment (or config file)
  160. - if properly set, runs the smoke test with specified parameters
  161. - openocd -f ${OOCD_TEST_CONFIG}
  162. - implies a modular test suite (see below)
  163. - should be able to run some minimal tests with dummy interface:
  164. - compare results of baseline sanity checks with expected results
  165. -# builds a more complete test suite:
  166. - existing testing/examples/ look like a great start
  167. - all targets should be tested fully and for all capabilities
  168. - we do NOT want a "lowest common denominator" test suite
  169. - ... but can we start with one to get going?
  170. - probably requires one test configuration file per board/target
  171. - modularization can occur here, just like with targets/boards/chips
  172. - coverage can increase over time, building up bundles of tests
  173. -# add new 'smoketest' Makefile target:
  174. - calls 'make check' (and the smoketest app)
  175. - gather inputs and output into a report file
  176. @subsection thelisttestreports Test Feedback Tools
  177. These ideas were first introduced here: @par
  178. https://lists.berlios.de/pipermail/openocd-development/2009-May/006358.html
  179. - provide report submission scripts for e-mail and web forms
  180. - add new Makefile targets to post the report:
  181. - 'checkreportsend' -- send to list via e-mail (via sendmail)
  182. - 'checkreportpost' -- send web form (via curl or other script)
  183. @subsection thelisttestgenerichw Generic Hardware Tester
  184. - implement VHDL to use for FPGA-based JTAG TAP testing device
  185. - develop test suite that utilizes this testing device
  186. @section thelistautotools Autotools Build System
  187. - make entire configure process require less user consideration:
  188. - automatically detect the features that are available, unless
  189. options were specifically provided to configure
  190. - provide a report of the drivers that will be build at the end of
  191. running configure, so the users can verify which driverswill be
  192. built during 'make' (and their options) .
  193. - eliminate sources of confusion in @c bootstrap script:
  194. -# Make @c bootstrap call 'configure --enable-maintainer-mode \<opts\>'?
  195. -# Add @c buildstrap script to assist with boostrap and configure steps.
  196. - automatically build tool-chains required for cross-compiling
  197. - produce mingw32, arm-elf, others using in-tree scripts
  198. - build all required target code from sources
  199. - make JTAG and USB debug output a run-time configuration option
  200. @section thelistarchitecture Architectural Tasks
  201. The following architectural tasks need to be accomplished and should be
  202. fairly easy to complete:
  203. - clean-up code to match style guides
  204. - factor code to eliminate duplicated functionality
  205. - rewrite code that uses casts to access 16-bit and larger types
  206. from unaligned memory addresses
  207. - libopenocd support: @par
  208. https://lists.berlios.de/pipermail/openocd-development/2009-May/006405.html
  209. - review and clean up interface/target/flash APIs
  210. The following strategic tasks will require ambition, knowledge, and time
  211. to complete:
  212. - overhaul use of types to improve 32/64-bit portability
  213. - types for both host and target word sizes?
  214. - can we use GDB's CORE_TYPE support?
  215. - Allow N:M:P mapping of servers, targets, and interfaces
  216. - loadable module support for interface/target/flash drivers and commands
  217. - support both static and dynamic modules.
  218. - should probably use libltdl for dynamic library handing.
  219. @section thelistadmin Documentation Tasks
  220. - Develop milestone and release guidelines, processes, and scripts.
  221. - Develop "style" guidelines (and scripts) for maintainers:
  222. - reviewing patches
  223. - committing to Subversion
  224. - Review The Guide for OpenOCD Users for documentation errors or omissions
  225. - Update The Manual for OpenOCD Developerrs:
  226. - Add documentation describing the architecture of each module
  227. - Provide more Technical Primers to bootstrap contributor knowledge
  228. */
  229. /** @file
  230. This file contains the @ref thelist page.
  231. */