Using PonyProg to download the HEX file

back to main tutorial page

Dr Nathan Scott & Dr Hiroyuki Kagawa · July 2002

ICCAVRIDE.exe has a good "In System Programmer" which uses the parallel port on the host PC. If that is not working for you, here is another way to download your compiled HEX file.


PonyProg

PonyProg is free software available on the internet. It seems to be able to communicate with many different microcontroller types.

  • You will need an SIProg cable (9 pin serial, female). There are instructions on how to make this cable at the end of this document.
  • Click here to get an installer for PonyProg. Save it on your hard disk.
  • Run the installer.
  • Run PonyProg. You should see something like Figure 1.
  • Select our AVR from the device select menus.

Hexファイルを転送するためのPonyProgの使い方

戻る

ネーサン・スコット(訳:香川博之)  · 20027

ICCAVRIDE.exe」はパソコンのパラレルポートを利用するユーザーにとって便利である。ここでは,このソフトでHexファイルを転送できないときのための別方法について示す。


PonyProg

PonyProgはインターネットで手に入れることができるフリーソフトである。これは,多くの種類のマイクロコントローラに利用できるようである。

  • You will need an SIProg cable (9 pin serial, female). There are instructions on how to make this cable at the end of this document.
  • PonyProgをインストールするためにここをクリックする。ハードディスクに保存する。
  • インストーラを起動する。
  • PonyProgを実行すると,図1のような表示が現れる。
  • 下図のように利用するAVRを選択する。

Figure 1 Initial appearance of PonyProg

  • Select "Interface Setup..." from the Setup menu

·         Setup」メニューから「Interface Setup...」を選択する。

Figure 2 Interface Setup menu item

Figure 3 Settings for use with the SI Prog (serial 9 pin) cable

  • Select "Calibration" from the Setup menu

·         Setup」メニューから「Calibration」を選択する。

Figure 2 Calibration

The Calibration is an internal timing test which PonyProg uses to ensure that it sends accurately timed data to the AVR.

  • Now open a "device file" (meaning a HEX file).

 

PonyProgで実行する「Calibration」はAVRに同期したデータを正しく転送できることを保証するため内部テストである。

  • device file」(Hexファイルのこと)を開く。

Figure 4 Open Device File menu item

Figure 5 You will have to select files of type *.hex

Note that initially your HEX file will not appear in the list of files. You must select "Files of type *.hex" in the Open dialog box (see Figure 5).

The HEX data will be displayed on the screen as shown in Figure 6.

はじめはリストにHexファイルが表示されないことに注意が必要である。Openダイアログボックス(図5)で「Files of type *.hex」を選択しなければならない。

図6のようにHEXデータが画面上に表示される。

Figure 6: HEX file on screen, ready to download

Figure 7: Select Write All from the Command menu. If all is well you will see...

Figure 8 PonyProg writing data to the AVR

I am sorry that you may have to use PonyProg, it would have been simpler to use just ICCAVR. However this does illustrate two important principles in microelectronics:

  1. There is usually more than one way to do something! and
  2. These fundamental things - such as how to download the HEX file - are the main barrier to learning. If you can get the technology to work for a simple "hello" program, you can get it to work for a much longer, more complex program.

Is your LED flashing? If not, seek help to get it flashing.

If it is flashing, congratulations, you are now in the Debug Loop.

PonyProg」を利用しなければならないことは残念である。ICCAVRを使うだけのほうが簡単である。.しかし,マイクロコントローラの重要な二つの原理を例証することができる。

  1. 何かをするために普通は2つ以上の方法がある。
  2. 例えばHEXファイルの転送方法のような基本的なことが学習上の主な生涯になる。もし「hello」プログラムのような簡単な動作させる技術を身に付けていれば,もっと長い複雑なプログラムを動作せることができる。

LEDが点滅するか?もし点滅しなかったらヘルプを参照する。

もし点滅したら,おめでとう。デバッグループに入っている。

 


Appendix: how to make an SIProg cable

The SIProg web site has detailed instructions for many different cables. I used those instructions to develop the following simplified version which only works with the AVR series. The transistor and resistor are an inverter, which is a circuit that takes a digital “0” and converts it to a “1” or vice-versa.

[Dr Kagawa, when you have time, please add a Japanese translation here]


Figure 9: Simplified SIProg cable for AVR series

It is important that the RESET pin on the AVR must have a 10kohm pull-up resistor as shown in the first exercise.

[Dr Kagawa, when you have time, please add a Japanese translation here]

 

Dr Nathan Scott · nscott@mech.uwa.edu.au