readme.txt 1.5 KB

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