This is a manual to use the PonyProg 2000 and avrdude to program the microcontrollers in our boards .
It is possible to use scripts for Ponyprog, so it can be started by a Batch-File or Makefile (more).
The
LPT or COM-Ports are usable to program the chips.
DT-006 (parallel)
This is the simplest interface for ISP-Programming with only 4 resistors.
We developed a small PCB to make it even easier to build a ISP-Adator.
As shown on the picture, the Crimp-Connector can be placed on one side of the cable and the other side is directly soldered onto the board
This is a (not so simple) ISP-Adaptor for the serial PC-Interface
A small PCB can look like this:
The configuration in PonyProg here would be::
Note: If you use CodeVision: The inbuild serial Terminal-program needs a different COM-Port than the Serial ISP-Adaptor!
Now you can program the Chips with PonyProg.
Scriptfiles
The script files have the ending *.e2s in PonyProg. You'll find a HTML-File in the Ponyprog main folder for further informations. This is the script-File for the ACR-Ctrl PCBs:
##########################################
# PonyProg-Scriptfile for
# AVR-Ctrl
#
# http://www.mikrocontroller.com
########################################## #SELECTDEVICE "AVR Auto" SELECTDEVICE at90s8535
LOAD-PROG main.hex
# Write without Verify
WRITE-ALL
# Write with Verify
#WRITE&VERIFY-ALL
Shortly:
'#' = comments.
The Chip is selected (here the 90S8535), than load the Hex-File(main.hex) and programming (without Verify).
How to implement this in CodeVision?
Select the script under "after make":
The command-Line is: start {Scriptname}
Example:
start C:\cvavr\bin\at90s8535.e2s
Is that also possible in the makefile ?
Yes, here:
ISPEXE = c:/programme/ponyprog2000/ponyprog2000.exe
MCU = at90s8535
TRG = myapp