readme.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. Prerequisites:
  3. The users of OpenOCD as well as computer programs interacting with OpenOCD are expecting that certain commands
  4. do the same thing across all the targets.
  5. Rules to follow when writing scripts:
  6. 1. The configuration script should be defined such as , for example, the following sequences are working:
  7. reset
  8. flash info <bank>
  9. and
  10. reset
  11. flash erase_address <start> <len>
  12. and
  13. reset init
  14. load
  15. In most cases this can be accomplished by specifying the default startup mode as reset_init (target command
  16. in the configuration file).
  17. 2. If the target is correctly configured, flash must be writable without any other helper commands. It is
  18. assumed that all write-protect mechanisms should be disabled.
  19. 3. The configuration scripts should be defined such as the binary that was written to flash verifies
  20. (turn off remapping, checksums, etc...)
  21. flash write_image [file] <parameters>
  22. verify_image [file] <parameters>
  23. 4. adapter speed sets the maximum speed (or alternatively RCLK). If invoked
  24. multiple times only the last setting is used.
  25. interface/xxx.cfg files are always executed *before* target/xxx.cfg
  26. files, so any adapter speed in interface/xxx.cfg will be overridden by
  27. target/xxx.cfg. adapter speed in interface/xxx.cfg would then, effectively,
  28. set the default JTAG speed.
  29. Note that a target/xxx.cfg file can invoke another target/yyy.cfg file,
  30. so one can create target subtype configurations where e.g. only
  31. amount of DRAM, oscillator speeds differ and having a single
  32. config file for the default/common settings.