收藏 设为首页
主页 > 搞笑段子 > 正文

Part 2

  For t娱乐皇冠体育the second part of our Tutorial it's assumed, that you have

皇冠体育在线文娱app皇冠体育在线文娱app

  successfully setup your hardware.

皇冠体育在线文娱app皇冠体育在线文娱app

  In order to get OpenOC娱乐皇冠体育CD up and running, we must configure the JTAG interface.

皇冠体育在线文娱app皇冠体育在线文娱app

  Without this, OpenOCD will start, print a few error messages and stop.

皇冠体育在线文娱app皇冠体育在线文娱app

  When started without any command line options, OpenOCD expects its

皇冠体育在线文娱app皇冠体育在线文娱app

  configuration in a file named openocd.cfg, located in the current

皇冠体育在线文娱app皇冠体育在线文娱app

  directory. Let's create this file, using a text editor.

皇冠体育在线文娱app皇冠体育在线文娱app

  The first thing we need to tell OpenOCD in this file is the name of

皇冠体育在线文娱app皇冠体育在线文娱app

  the interface. This depends on the JTAG adapter you are using. For most

皇冠体育在线文娱app皇冠体育在线文娱app

  USB JTAG adapters based on FTDI chips, this will be:

皇冠体育在线文娱app皇冠体育在线文娱app

  For the Turtelizer support package, this is slightly different:

皇冠体育在线文娱app皇冠体育在线文娱app

  You may run into a problem here. Some time ago the OpenOCD development team

皇冠体育在线文娱app皇冠体育在线文娱app

  decided not to provide any official binaries anymore. They offer the source code

皇冠体育在线文娱app皇冠体育在线文娱app

  only, expecting the vendor of the JTAG hardware to build the binaries. All

皇冠体育在线文娱app皇冠体育在线文娱app

  supported interfaces are optionally selected during this build stage and

皇冠体育在线文娱app皇冠体育在线文娱app

  therefore the binary you received from somewhere may not support your

皇冠体育在线文娱app皇冠体育在线文娱app

  specific JTAG hardware.

皇冠体育在线文娱app皇冠体育在线文娱app

  Luckily, if the specified interface is not supported, OpenOCD will list

皇冠体育在线文娱app皇冠体育在线文娱app

  all known interfaces

皇冠体育在线文娱app皇冠体育在线文娱app

  If your's is not included, ask your JTAG hardware vendor for the right binary.

皇冠体育在线文娱app皇冠体育在线文娱app

  Btw., the list above has been retrieved from the binary offered at

皇冠体育在线文娱app皇冠体育在线文娱app

  www.freddiechopin.info. Freddie's

皇冠体育在线文娱app皇冠体育在线文娱app

  binary distributions for Windows PCs are most complete and highly recommended.

皇冠体育在线文娱app皇冠体育在线文娱app

  Next, we must specify the interface layout. The reason is, that only