DN_015.pdf
(
84 KB
)
Pobierz
D
ESIGN
N
OTE
#015
K
EYWORDS
:
STK100, AVR ISP 3.31, W
INDOWS
NT
®
, W
INDOWS
®
2000
This document is originally distrubuted by AVRfreaks.net, and may be distributed, reproduced, and modified
without restrictions. Updates and additional design notes can be found at: www.AVRfreaks.net
Getting Started with the STK100 under Windows
®
95/Windows 98 and
Windows NT
®
/Windows 2000
This document describes how to install the software requried for the AVR
®
devel-
opment board STK100. It also describes how to verify the installation, how to
upgrade the STK100 firmware, and finally how to test the programming of the
device.
The current programming software used with STK100 is AVR ISP 3.31. The latest firm-
ware is version 2.0, and the latest hardware version of the STK100 is A.2.
Software Installation
To be able to use the STK100 the programming software AVR ISP 3.31 must be
installed. If using Windows NT or Windows 2000, it is also requried to install a parallel
port driver. The procedures to install the software are described below.
Windows NT/Windows 2000
1. Login as Administrator or with Administrator rights.
2. Installed AVR ISP 3.31.
3. Re-boot PC with Administrator rights.
4. Locate file "Tvicport.inf" in installation directory.
5. Right click fiel "Tvicport.inf" and select install in appearing menu.
6. Re-boot PC (with Administrator rights).
Note:
It is very important to have Administrator rights because Windows NT/Windows 2000
otherwise will not allow you to install the driver correctly.
Windows 95/Windows 98
1.
Boot PC.
2.
Installed AVR ISP 3.31.
3.
Re-boot PC.
www.avrfreaks.net
1
Design Note #015 – Date: 02/02
Verifying Software
Installation
This section describes to verify th correct installation and start of the Parallel Port Driver.
Windows NT/Windows 2000
Device driver "Vicprt11.sys" should be located in directory c:\winnt\system32\drivers\
On Windows NT/Windows 2000 it is possible to check the device driver status by check-
ing the Settings -> Control Panel -> Devices. The VICPRT11 should be listed and
marked as started. It the driver is not started it has to be activated manually.
Checked the Registry settings. Found driver settings at (this settings can differ from
machine to machine):
HKEY_LOCAL_MACHINE
System
ControlSet001
ENUM
ROOT
LEGACY_VICPRT11
HKEY_LOCAL_MACHINE
System
ControlSet003
ENUM
ROOT
LEGACY_VICPRT11
HKEY_LOCAL_MACHINE
System
ControlSet003
SERVICES
VICPRT11
HKEY_LOCAL_MACHINE
System
CurrentControlSet
ENUM
ROOT
LEGACY_VICPRT11
Windows 95/Windows 98
Checked the Registry settings (Windows 98):
HKEY_LOCAL_MACHINE
System
CurrentControlSet
SERVICES
VICPRT11
2
www.avrfreaks.net
Design Note #015 – Date: 02/02
Check Correct BIOS
Settings
The BIOS/CMOS settings have to be checked for the LPT port mode (sometimes under
Peripheral set-up). The mode that really ought to work is EPP version 1.9. If this fails to
work, try bi-directional then standard mode until it achieves the desired effects.
Another possible cause of error is printer port monitoring software. Some manufacturers
(this mostly seen from Hewlett Packard) provide software which constantly polls the
printer port for activity, which means that you get to see what’s going on. Unfortunately
this conflicts with the AVR ISP software and should be disabled. Most software will let
you disable it by right-hand clicking on the icon in the system tray and select a disable
option.
Test-programming
Using the ATtiny15 as example test code and a detailed programming description are
available. Basic steps for programming ATtiny15 with STK100 are described in detail in
the file “Basic Steps for Programming ATtiny15 with STK100.pdf).
The file "Ledtest.zip" located in the
“STK100_ProgTest_InDetails.zip”
file contains the
assembler and hex file of the test code.
Because this code is very basic and accesses just registers which exists in all parts and
are located at the same addresses this code can be used to test the programming of all
ATtiny parts.
Firmware Update
Updating the firmware of the STK100 means to re-program the Flash memory of the
AT90S8515 which is located on the board itself. Prior to the upgrade of the STK100
firmware the file STK100_update _inDetails.zip should be extracted. In STK100_update
_inDetails.zip the following files should be found:
update.zip
STK100_RevA2.pdf
update.txt
The following five files should be present in the update.zip file:
Clear1.bat
go.bat
Avrload.com
Eep.hex
Stk100.hex
www.avrfreaks.net
Design Note #015 – Date: 02/02
3
To perform the update of the STK100 Firmware, the steps below must be followed:
1. Verify that the STK100 is plugged into the PC.
2. Verify that the STK100 is powered.
3. In a DOS command line navigate to the directory where update.zip was
extracted to.
4. Execute CLEAR.
5. This will unlock the STK100 ready for re-programming.
6. If after running clear the Device ID = 00 00 00 then your device has failed to
erase please contact support for further instructions.
7. When this is complete the message "Press any key to continue" will appear.
8. Execute PROG.
9. Check that the words Programmed and Verified appear in the message as
below, if this does not appear then the board has failed.
AVRLOAD: Device id code: 1E 93 01.
AVRLOAD: Manufacturer is Atmel.
AVRLOAD: Device: 90S8515, Fsize = 8192 Esize = 512.
AVRLOAD: Device erased!
AVRLOAD: Base address is 0000.
AVRLOAD: 2193 bytes loaded, Image size is 2193.
AVRLOAD: Programmed and verified.
AVRLOAD: Base address is 0000.
AVRLOAD: 128 bytes loaded, Image size is 128.
AVRLOAD: Programmed and verified.
10. Also check that the words Lock bits written appear in the second block if this
does not appear then the board has failed regardless of step 9.
AVRLOAD: Device id code: 1E 93 01.
AVRLOAD: Manufacturer is Atmel.
AVRLOAD: Device: 90S8515, Fsize = 8192 Esize = 512.
AVRLOAD: Lock bits written.
11. When this is complete the message "Press any key to continue" will appear.
12. If any of the above does not appear then the board has failed & you should reat-
tempt the pro
Note:
Updates of the Firmware of the STK100 have to be done on a PC running Windows 95/
Windows 98. Running the update on a PC running Windows NT/Windows 2000 will fail in
most cases.
4
www.avrfreaks.net
Design Note #015 – Date: 02/02
Plik z chomika:
TirNaNog
Inne pliki z tego folderu:
DN_010.pdf
(94 KB)
DN_001.pdf
(144 KB)
DN_002.pdf
(144 KB)
DN_003.pdf
(49 KB)
DN_004.pdf
(39 KB)
Inne foldery tego chomika:
ACE
AcornUser
AmigaComputing
AmigaFormat
AmigaShopper
Zgłoś jeśli
naruszono regulamin