tring to use the STK200 dungle

Go To Last Post
19 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Freaks
I have a major problem with ISP proggramming
I tried to load the software through the STK200 dunle but i keep on getting a missing device ( i used the VRISP program )
I must mention that the 8515 is working properly
On the STK20 it worksfine
But whn i tried to loadt the SW through theis Dongle i get a missing device (altoug there is one)

Please tellme why it doesnt work properlly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is it a genuine Kanda STK200 dongle? I have an STK200-like dongle, but AVRISP will fail to detect it. PonyProg will also fail to detect it, but it won't refuse to program. AVRISP refuses.

Anyway, if you have a similar kind of dongle like me, you can opt to use avrdude or PonyProg for programming. avrdude is highly recommended. Once you set your PATH variable to point to it, perhaps prepare a couple of batch files that suit your usual needs, you will see how much quicker and easier it is to program with 'dude.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

AVR-ISP is not the STK200 style dongle. The STk200 is just a simple parallel port. AVR-ISP is Atmel's $30 Programmer that uses the serial port and has all the smarts built into the dongle. There is no support in AVR Studio for any parallel port programmer.

-Colin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

c_oflynn wrote:
Hi,

AVR-ISP is not the STK200 style dongle. The STk200 is just a simple parallel port. AVR-ISP is Atmel's $30 Programmer that uses the serial port and has all the smarts built into the dongle. There is no support in AVR Studio for any parallel port programmer.

-Colin

We know that, Colin, but the program that the original poster mentioned is in fact called AVRISP. I know why you might not know that: it has been a long time since it has been released, and then PonyProg has relegated it to history. In fact, the latest stable version of AVRISP won't even work on Win2K or WinXP.

Here is the AVRISP the original poster (and I) was talking about:

http://www.avrfreaks.com/Tools/s...

I actually still like the tool more than PonyProg, as I can nicely keep the EEPROM and the Flash data in separate windows, something that PonyProg still doesn't do, for whatever reason.
However, as I wrote in my reply, AVRISP will only work with a genuine STK200 dongle (or a copy of the genuine design).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gianmario wrote:

We know that, Colin, but the program that the original poster mentioned is in fact called AVRISP. I know why you might not know that: it has been a long time since it has been released, and then PonyProg has relegated it to history. In fact, the latest stable version of AVRISP won't even work on Win2K or WinXP.

Humm odd I use the version of this program that came with my STK300 under Windows XP and have had no problems with it. What exactly is not supposed to work ? I'm using both the genuine Kanda supplied dongle and a clone that I built muself on a piece of stripboard :)

gianmario wrote:

Here is the AVRISP the original poster (and I) was talking about:

http://www.avrfreaks.com/Tools/s...

I actually still like the tool more than PonyProg, as I can nicely keep the EEPROM and the Flash data in separate windows, something that PonyProg still doesn't do, for whatever reason.
However, as I wrote in my reply, AVRISP will only work with a genuine STK200 dongle (or a copy of the genuine design).

And the fact that during development I can compile/assemble my code point it at the hex file and set the auto program options to reload from file
reprogram and run. So I assemble in AVR studio ALT-TAB, hit F5 to auto program and don't have the hastle of manual reload-program-run.

Ok Ponyprog can prolly do that too (not tried it so don't know ).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi freaks
Thank you for your replaies.
I wanted to log in to the AVR forum but it looks like it fell down for a few days.

The Dongle that i have is the original part of the Kanada STK200 .
I dont really know what is the word genuine so i dont want to give you dissinformation and i would be glad to know what it means.

As for the AVRISP with the XP...It looks like ther is no problem using it altough it didnt let nme burn the 8515 via the ISP nor tnhe PONY PROG.
I will try to use the AVRDUDE accordding to what gianmario sujjested .

I am not so familier with the command lines and i would appriciate that very much if you cann send me an example of how to write the first line in order to see if it works or not

What i mean is ....If you can supply me with a command line that will earase and then burn ahex file calle test ( made by Code Vision) and i am working with the AT90S8515 via the LPT1 .

Colin.......It is nice to hear from you again :wink:
Thank you all

Wating.........

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

tzif wrote:
Hi freaks

The Dongle that i have is the original part of the Kanada STK200 .
I dont really know what is the word genuine so i dont want to give you dissinformation and i would be glad to know what it means.

I will try to use the AVRDUDE accordding to what gianmario sujjested .

I am not so familier with the command lines and i would appriciate that very much if you cann send me an example of how to write the first line in order to see if it works or not

What i mean is ....If you can supply me with a command line that will earase and then burn ahex file calle test ( made by Code Vision) and i am working with the AT90S8515 via the LPT1 .

First of all, I object at being called "freak", but I guess you meant it in a humorous way (btw, only now I noticed that this thread is about a "dungle" :D )

Avrdude: I would suggest that you use the native win32 port (which is not quite officially released but works excellently):

http://www.siwawi.arubi.uni-kl.d...

Docs and stuff regarding avrdude usage can be found from the project homepage:

http://savannah.nongnu.org/proje...

Finally, how to use it effectively? This is what I do: I have the binary for avrdude in my PATH. Say, for example, that avrdude.exe is in c:\avrdude then I would put c:\avrdude in the PATH and reboot, of course.

Next thing, for each project I am working on, I prepare a .BAT file with the commands I need. For example, for my 90S2313-based project, my .BAT file looks like this:

avrdude -p 2313 -c stk200 -U flash:w:7seg-display.hex
pause
avrdude -p 2313 -c stk200 -U eeprom:w:7seg-display.eep

For a 90S8515, replace "2313" with "8515", duh. With avrdude.exe there's a configuration file where you can see all the devices and all the programmers listed.

And finally, what do I mean about "genuine stk200 dongle, or a copy of it"? Well, I know that there are available stk200-like dongles around, (I bought one on eBay.de, for example) which are not compatible with AVRISP, but work fine both with PonyProg and with avrdude. For these programmers, the "pony-stk200" programmer definition is to be used.

However, you say that you have the original stk200 dongle, so you should use "stk200" after the -c.

I suggest you have a quick look at the .pdf file included within the .zip that contains the native win32 port of avrdude.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi gianmario
Thank you again for your replay
I was going through the PDF manual of the DUDE but i am not sure that i understood how to define the Parallel LPT1 port.

I would like to ask you some thing and i hope that you wont consider that as an impertinence request.

After all i am a very newee in this commandlines....
Can you send me th command line example of the command line that loades a hex file via the LPT1 port using the STK200 Dongle?

Thank you in advance

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

LPT1 is the default. In fact, it's what I use, too.

If you want to program the Flash RAM of an 8515 with an STK200 dongle connected to LPT1, your command should be

avrdude -p 8515 -c stk200 -P LPT1 -U flash:w:YourFile.hex:i

The ":i" can be omitted as 'dude will easily detect the hex format, but I put it there for completeness. The same is true for "-P LPT1".

YourFile.hex is your file, duuuhh....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

The Kanda ISP is still being made, along with the dongle, stk200 and stk300 products. Kanda's products were bought by us at Embedded results ltd.

The latest software release of the Kanda AVRISP is available to buy here... https://www.kanda.com/browse.php...

The software that is shipped with all new stk200+ and stk300 kits support 95,98,ME,2000 and XP. v2.65 is way way way too old to be bothered with, and the link on this site really should be removed as the product is not obsolete as it states, so if the webmaster reads this, do us a favour and point people at the real link please.

The reasons for is being called AVRISP and the confusion this causes, Kanda made the original AVRISP along with the original STK kits. Atmel decided that they would swap to doing their own versions in house. They named their products AVRISP and STK500.

We will be announcing in the next few weeks lots of new additions to our AVR range so keep an eye out for them.

Bryan (Embedded Results Ltd)

Kanda

Kanda Embedded Tools
https://www.kanda.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

BryanW wrote:
Hi All,

The Kanda ISP is still being made, along with the dongle, stk200 and stk300 products. Kanda's products were bought by us at Embedded results ltd.

The latest software release of the Kanda AVRISP is available to buy here... https://www.kanda.com/browse.php...

The software that is shipped with all new stk200+ and stk300 kits support 95,98,ME,2000 and XP. v2.65 is way way way too old to be bothered with, and the link on this site really should be removed as the product is not obsolete as it states, so if the webmaster reads this, do us a favour and point people at the real link please.

The reasons for is being called AVRISP and the confusion this causes, Kanda made the original AVRISP along with the original STK kits. Atmel decided that they would swap to doing their own versions in house. They named their products AVRISP and STK500.

We will be announcing in the next few weeks lots of new additions to our AVR range so keep an eye out for them.

Bryan (Embedded Results Ltd)

Hey, it's nice that you bothered to communicate us this bit of info. Also, it's nice to hear that you are still selling STK200 and 300.

That said, I think it's slightly unethical for you to ask the webmaster to remove a link to a free product while at the same time pitching your own, US$15 software that does the same thing as the free one, albeit better. Nothing personal, man, but this just stunk.

So I urge the webmaster not to remove the lreference to the original AVRISP, but rather, to add a link to your software. Let people decide if they want to pay you for the programmer.

And finally, said all that, it's pretty difficult to get money for an AVR programmer software nowadays, when alternatives like avrdude or PonyProg (needs improvments, but it will get there one day) exist. Such a product should have some I-have-no-clue-what comelling feature for people to part with their money.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What I was saying was that the stuff that says that the Kanda AVRISP is obsolete should be removed. The ponyprog link can stay just remove the above.

Bryan

Kanda

Kanda Embedded Tools
https://www.kanda.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys
I need your advise again.....
I connected the STK200 to the LPT1 port and i wrote the command line that gianmario gave me and i cant load the file to the 8515 .
I am lost !!!!!
this is the massages that i keep on getting.

avrdude: can't open device "giveio"
avrdude: failed to open parallel port "lpt1"

This is the command line that i wrote:
avrdude -p 8515 -c stk200 -P LPT1 -U flash :w:led.hex

The AVRDUDE is in the BIN directory and so is the file led.hex

Please advise

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey, you typed the command correctly. You didn't do any mistake, but there's one thing you should know and which I forgot to tell you: on WindowsNT and Windows2000, you need to load a driver called giveio.sys, which allows avrdude to directly communicate with the parallel port.

It should be included with the avrdude package you downloaded, together with a program called instdrv.exe and a .bat file used to load it and some instructions included there. Open that .bat file with an editor, I believe there's some info in there, too.

If the giveio stuff is too much bother, you might just use PonyProg. It doesn't support as many programmers for the AVR as avrdude, but it supports STK200 fine.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

tzif wrote:
Hi gianmario
I was going through the PDF manual of the DUDE ...

...this is the massages that i keep on getting.

avrdude: can't open device "giveio"
avrdude: failed to open parallel port "lpt1" ...

Apparently your DUDE manual doesn't have this section, which I located by searching the .PDF for "giveio" since that is what is in your error message:

    A.2.4.1 Windows NT/2K/XP
    On Windows NT, 2000, and XP user applications cannot directly access the parallel port.
    However, kernel mode drivers can access the parallel port. giveio.sys is a driver that can
    allow user applications to set the state of the parallel port pins.
    Before using AVRDUDE, the giveio.sys driver must be loaded. The accompanying
    command-line program, loaddrv.exe, can do just that.
    To make things even easier there are 3 batch files that are also included:
    1. install giveio.bat Install and start the giveio driver.
    2. status giveio.bat Check on the status of the giveio driver.
    3. remove giveio.bat Stop and remove the giveio driver from memory.
    These 3 batch files calls the loaddrv program with various options to install, start, stop,
    and remove the driver.
    When you first execute install giveio.bat, loaddrv.exe and giveio.sys must be in the
    current directory. When install giveio.bat is executed it will copy giveio.sys from your
    current directory to your Windows directory. It will then load the driver from the Windows
    directory. This means that after the first time install giveio is executed, you should be able
    to subsequently execute the batch file from any directory and have it successfully start the
    driver.
    Note that you must have administrator privilege to load the giveio driver.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi again
I am sorry but it looks like i need some more help if you dont mind.

First of all thank you gianmario and theusch your mail did help.

Now here is what is going on..........
I managed to load a file to my 8515 using the STK200 board and the STK20 dongle using the AVRDUDE!!!

That means that the LPT1 is activ and kicking!!! :P

now i would like todo the same thing out of the STK200 board but using the ST200 Dongle.
I have built a smallminimum system that works fine on my board and i connected all the ISP lines correctly ( believe me i have double checked that morethen twice)

But i cannot load any file to it.......

So I wrote the same command line and look waht I got as a replay:

AVRDUDE:DEVISE IS NOT RESPONDING
AVRDUDE:INITIALIZATION FAILED, RC=-1
DOUBLE CHECK CONNECTION AND TRY AGAIN OR USE THE -F
TO OVERRIDE THIS CHECK.

I tried to use the -F in the command line and got a lot of errores
I didnt quite understood how can i use it and what exactly it is doing and why my 8515 doesnt response...After all it works fine.
And what is rc=-1

Please dont think that i didnt try to understand that by my self but you must forgive me for i am a neweie and affraied to do any thing stupid.
The main problem is that my project is on hold because of that i cant break through that

Please advise

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You probably don't have a proper clock source and/or reset circuit on your target board. The STK200 was probably providing those services for the chip you had mounted.

You might try the information at www.avrbeginners.net .
Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There isn't much more that we could add to what avrdude displayed: you have some problem with the connection to the ISP pins or the reset. RC -1 is only a simple error code (return code) that suggests there's an error somewhere.

For your information: for the in-system programming to work, you need MOSI, MISO, SCK and Reset signals, and you also need Vcc (5 volts) and GND, because the dongle doesn't get the power from the PC but from the targed circuit.

You also should put a pull-up resistor of at least 10K on the Reset pin. This will not fix our programming, but it will certainly help the normal functioning of the AVR after programming finished.

Lee mentuoned the clock/oscillator issue: make sure it's working (I hope you have some oscilloscope to check that).

Double check your schematic and contrast it with what you implemented, perhaps ask your brother/sister/friend/wife/anyone to help you find the problem. Usually while you describe he issue, you find it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys
Well i am sorry but it i cant operate it :cry:

Thank you all for your help

I will try to start a new topic in order to try to get to more people and i will try to rephrase the question

Thank you .