trouble getting avr studio 5.1 and usb-to-serial working

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

Hi All,

            Got my old STK500 powered up, with the MPU that came in the box.  Seems to run ok, the program on the mcu lights LEDs when buttons are pressed.

 

Started AVR studio 5.1, it can't see the device.   I checked the device driver install and there's an error "The drivers for this device are not installed. (Code 28)".   I re-installed from the installer that came with the cable, then found another installer on Tom's hardware web site, but get same problem. 

 

After some searching, didn't find a solution.    Anyone have any tips on getting the usb to serial drivers installed on old XP?     

 

Thanks,

Mike

This topic has a solution.

I smell burning bakelite!

Last Edited: Wed. Jul 11, 2018 - 02:08 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

AS5.x is trash, dump it and get the latest AS7!

 

Click Link: Get Free Stock: Retire early!

share.robinhood.com/jamesc3274

 

 

 

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

burningwires2 wrote:
Started AVR studio 5.1,
burningwires2 wrote:
on old XP?
Are you living in a time warp? I understand that XP ties you to older versions of Studio but 5.1? Really?

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

burningwires2 wrote:
I re-installed from the installer that came with the cable, then found another installer on Tom's hardware web site, but get same problem. After some searching, didn't find a solution. Anyone have any tips on getting the usb to serial drivers installed on old XP?

 

The STK500 is irrelevant.

You have a USB to RS232 cable that is not recognized by the computer running XP - is that right?

 

Do you know the make and model of the cable?

If it uses an FTDI chip, you can download a driver for XP (LINK).

 

Try testing the cable alone - not connected to the STK500.

 

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

As it's XP, does the computer not have a real RS232 port?

 

Maybe you can find an ISA card to plug in ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If using XP...try installing studio4...quick, simple  (<100meg install!), foolproof & plenty good.

 

Lotsa serial cables have lots problems, but you can get more variety to try on ebay for $3.

 

There are a lot of articles about getting these cable running

 

http://www.totalcardiagnostics.com/support/Knowledgebase/Article/View/92/20/prolific-usb-to-serial-fix-official-solution-to-code-10-error

 

https://www.campbellsci.com/blog/usb-rs-232-adapter-cable-issues

When in the dark remember-the future looks brighter than ever.

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

Thanks everyone.  Well, I used my last ISA card to prop up the leg no a wobbly table.  ;)  

 

I tried avr studio 4 and 5.1, had several newer versions installed as well.

 

Yeah, thanks I think that either the cable/converter is junk (got it cheap on Ebay) or maybe the RS232 port is toast on the STK500 board.   Tried a few drivers, incl the one that came with the cables. 

 

Dang, used to have a huuuge box of RS232 cables, connectors adapters etc, threw them out I think during the Reagan administration, no maybe Clinton. :) 

 

Thanks for the articles, reading now...

I smell burning bakelite!

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

burningwires2 wrote:
 Well, I used my last ISA card to prop up the leg no a wobbly table.  ;)  

and I use my last XP computer as a door-stop.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 maybe the RS232 port is toast on the STK500 board

It goes without saying that there are two rs232 ports on the stk500 & you must be connected to the one in the middle of the board edge...don't find out you've been using the wrong one a week later (not that that has ever happened :). 

 

One of my stks500s was heavily used for 5+years & the connector developed some PCB opens...resoldered the pins and all was new.   

 

try this:

Take only your USB cable & jumper the RS232 TX & RX Pins together (pins 2 &3)...use BRAYS' terminal to type some messages & watch that they (hopefully) echo right back to the terminal..If that doesn't work,neither will the stk500 connection.

If needed, as you type, look at the scope to see chars being spit out (hold down a key to machine-gun it).  Some drivers will spit out chars, but not rcv them...no good for the stk500 protocol.

 

GO TO your devices manager & for the UART ports, under advanced settings , you can adjust the buffering...sometimes fioxes things that are slightly out of kilter (usually sporadic operation).

 

 

 

 

When in the dark remember-the future looks brighter than ever.

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

Chuck99 wrote:

burningwires2 wrote:
I re-installed from the installer that came with the cable, then found another installer on Tom's hardware web site, but get same problem. After some searching, didn't find a solution. Anyone have any tips on getting the usb to serial drivers installed on old XP?

 

The STK500 is irrelevant.

You have a USB to RS232 cable that is not recognized by the computer running XP - is that right?

 

Do you know the make and model of the cable?

If it uses an FTDI chip, you can download a driver for XP (LINK).

 

Try testing the cable alone - not connected to the STK500.

 

 

Hi Chuck, thanks.    I tried a bunch of drivers, and with one, it says "your hardware is ready to use" when I plug the USB end into the PC.   I powered the STK500 down, then back up again and the studio still can't see the board.    I downloaded and started up a freebie serial comm program.   WIth some settings I type a bunch of characters and numbers in and get some garbage back.  I powered down the STK500, disconnected the RS232 end, and when I send characters in, get nothing back.  

 

Not sure how to test the cable, since I've been pretty much serial free for a long time.      Also, wondering if maybe the serial port on the STK500 is toast.

I smell burning bakelite!

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

avrcandies wrote:

 maybe the RS232 port is toast on the STK500 board

It goes without saying that there are two rs232 ports on the stk500 & you must be connected to the one in the middle of the board edge...don't find out you've been using the wrong one a week later (not that that has ever happened :). 

 

One of my stks500s was heavily used for 5+years & the connector developed some PCB opens...resoldered the pins and all was new.   

 

try this:

Take only your USB cable & jumper the RS232 TX & RX Pins together (pins 2 &3)...use BRAYS' terminal to type some messages & watch that they (hopefully) echo right back to the terminal..If that doesn't work,neither will the stk500 connection.

If needed, as you type, look at the scope to see chars being spit out (hold down a key to machine-gun it).  Some drivers will spit out chars, but not rcv them...no good for the stk500 protocol.

 

GO TO your devices manager & for the UART ports, under advanced settings , you can adjust the buffering...sometimes fioxes things that are slightly out of kilter (usually sporadic operation).

 

 

 

 

 

Thanks for the tips and info. Yes, plugged into the right connector.   Thanks for the tip on testing the cable, by jumpering the pins.    I will try that when I get home.    Also, will look at the buffering settings. 

I smell burning bakelite!

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

Chuck,   re

Do you know the make and model of the cable?

If it uses an FTDI chip, you can download a driver for XP (LINK).

 

 

I don't know offhand the chipset, but its a no brand, cheapie cable from Ebay.  I think I went too cheap.   Not sure if that's the problem.     I have tried a whole bunch of driver downloads, will try yours, thanks.

 

Aside,

I had a huge box of  serial cables, breakout cables, adapters from my old machine software days, tossed them not that long ago. :(

I smell burning bakelite!

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

awneil wrote:

burningwires2 wrote:
 Well, I used my last ISA card to prop up the leg no a wobbly table.  ;)  

and I use my last XP computer as a door-stop.

 

Ahh geez, the computer is only 12 years old,  can't I get a few more computations out of it?    Of course, nothing but NOTHING runs on XP any more, from browsers, to tax software, circuit design software,  and latest AVR studios. Nothing.

I smell burning bakelite!

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

I looked up the part number on the cable, and found this one with the same number, bit it doesn't look like my cable:  https://www.usbgear.com/U232-P9....   So, I think some Chinese company copied the label, but put a cheap part together.  The cable wire itself looks much cheaper, and the case is slightly different.   The web site says its prolific chipset, and has a driver link.  

 

This part is discontinued on their site, so thinking about getting a better one they have listed as FTDI chipset.

 

Looking around for some tiny clips to try out the pin 2 and 3 (null modem) short test.   

 

Crossed fingers that the boards RS232 isn't toast.

I smell burning bakelite!

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

Tried shorting pins 2-3 on the DB9 side, ... works!  The characters echo back.  Thanks!  Disconnect the clip and stops echoing, so i think at least it works at some level.   Looking for settings for the com port...

I smell burning bakelite!

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

Characters go back and forth with pins shorted but AVR studio 5.1 still doesn't see the STK500.  AVR studio 7 won't install on my old PC

 

Tried looking in config settings in AVR studio for serial port setup,  e.g. bits, stop, parity all that jazz, can't find it.   How does AVR studio configure the port?  

I smell burning bakelite!

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

How does AVR studio configure the port?

See the hardware manager & look for your serial usb adapter, under advanced settings--there are some buffer speed adjustment...(see where I posted earlier)...try those. 

 

e.g. bits, stop, parity all that jazz, can't find it

You won't see any settings in studio, though perhaps it might change the baud from what you see in the PC hardware manager (com ports).

 

Try studio 4...5 is horrific & will cause you to throw yourself through a wall.

 

I assume you know for RS-232 programmers, they are no longer initially auto detected by studio (they are in studio 4).

In studio 6, you need to tell Studio of their existence...use TOOLS/ADD TARGET

 

 

Once you get it working you'll get your eXPert badge & hat from MS.

 

 

 

When in the dark remember-the future looks brighter than ever.

Last Edited: Sat. Jul 14, 2018 - 07:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ah but which version of AS5 was the STK500 support added in? I remember when AS5 first came out most STK500 using regulars here were horrified to find it did not support non-USB interfaces and the serial based STK500 in particular. After a lot of negative feedback Atmel finally added support using that select/add COM port dialog but was that in 5.1 or 5.2 or even later?

Last Edited: Sat. Jul 14, 2018 - 07:53 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

avrcandies wrote:

How does AVR studio configure the port?

See the hardware manager & look for your serial usb adapter, under advanced settings--there are some buffer speed adjustment...(see where I posted earlier)...try those. 

 

e.g. bits, stop, parity all that jazz, can't find it

You won't see any settings in studio, though perhaps it might change the baud from what you see in the PC hardware manager (com ports).

 

Try studio 4...5 is horrific & will cause you to throw yourself through a wall.

 

I assume you know for RS-232 programmers, they are no longer initially auto detected by studio (they are in studio 4).

In studio 6, you need to tell Studio of their existence...use TOOLS/ADD TARGET

 

 

Once you get it working you'll get your eXPert badge & hat from MS.

 

 

 

 

Thanks, did that (what you posted earlier, re hardware manager in dreadful old XP) I set the speed lower,  also, uninstalled, reinstalled the drivers.  I *think* XP sees the chip, and is sending data back and forth, since I can echo data in a com program with pins2 and 3 jumpered. 

 

Yes, found that dialog in AVRS5.2, didn't know 5.X was a dud.   Thanks for the tip.   I have 4 installed and also found that 6.2 installed and runs on XP.   Found the dialog to select the STK500 on comX.    Still get the message 'no tool found, refresh' ....     Dang, wish I hadn't thrown out all those serial cables and sniffer software, I could at least see what the AVR studio is sending out.  

 

I ordered another (better?)  serial-usb dongle,  has FTDI chipset, hopefully that is the problem.   If not then Im starting to give in to the idea that teh serial chip on the board is damaged.    Its an SMT chip, should be a miserable job to remove :(  .

I smell burning bakelite!

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

clawson wrote:
Ah but which version of AS5 was the STK500 support added in? I remember when AS5 first came out most STK500 using regulars here were horrified to find it did not support non-USB interfaces and the serial based STK500 in particular. After a lot of negative feedback Atmel finally added support using that select/add COM port dialog but was that in 5.1 or 5.2 or even later?

 

Thanks, I have 5.2 and it does have the selector dialog.  

I smell burning bakelite!

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

Back in the day, way back,  I worked on machine software, lots of serial port stuff, I don't remember this much trouble getting a piece of hardware to talk to a serial port.  And this goes back even to the old ISA card days.

I smell burning bakelite!

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

Do yourself, and the rest of us a big favor and Get RID of AS5.x and use either AS$.19 OR AS6.2.  I myself connect my USB to serial directly to my STK500 and it works just fine.  Are you sure that your dongle is a true USB/232 and not a USB/TTL device?

 

 

JIm

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

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

Thanks.  Got 6.2 installed.     Not sure if the USB dongle is any good, its a real cheapie from ebay.  Seems like its doing something, but maybe AVR studio doesn't like it.     I ordered a 'good one', should be here in a couple of days, says FTDI chipset.    

 

The cheap one I have, that I haven't been able to get to work, looks just like this:   https://www.ebay.com/itm/Fahion-...    

 

I smell burning bakelite!

Last Edited: Tue. Jul 17, 2018 - 02:09 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It should work just fine if Windows sees it and you can loopback data through it.  Make sure you close your terminal programs before you start studio otherwise you might have an issue.

 

One other thing that could be the problem is your STK500 is mucked up.

 

JIm

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

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

 I ordered a 'good one'

Oh boy, that's probably the worst one...PL2303 has had  all kinds of  driver fails...but you might get lucky...if not, here's a fix...about half of my pl2303's work & the others collect ant droppings.

 

http://www.totalcardiagnostics.com/support/Knowledgebase/Article/View/92/20/prolific-usb-to-serial-fix-official-solution-to-code-10-error

 

Also remember to solder your RS-232 connector (I had at least one stk500 that had a solder stress failure) & adjust the uart buffer setting. 

 

Studio 4 is more likely to work on XP...put a copy on & try it ...a quick check

 

http://www.microchip.com/mplab/avr-support/avr-and-sam-downloads-archive

 

No that is not a misprint  studio 4.528 is only 73.8 meg, (not 738 meg)....I could almost just attach it here!

 

 

 

When in the dark remember-the future looks brighter than ever.

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

Thanks, hoping its not the board.    The  new cable came in today.  Will try that with a couple of versions of AVR studio.   5 is bad, is 6.2 ok?  

I smell burning bakelite!

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

6.2 is fine. I still use it

Jim

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

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

Sorry to keep posting bits on this thread, its getting a bit long.  But I had some unexpected success today.   I was about two seconds from giving up on this old ebay STK500 .... 

 

- Got a new USB dongle, FDTI chipset, installed that.

- tried 2 versions of AVR studio 6.2 and evil 5. All versions said could not find device.

- Restarted, powered down, etc. Nothing.

- Installed 4.19.   Tried 3 times, nothing.  shut down, restarted, re-installed USB drivers.  Still no good.

- Powered down the board, removed everything, all cables, restarted everything.

 

I tried a bunch of times, but when I hit the button to connect to teh board, I saw a flicker on the LED's on the USB/RS232 dongle, then the 

software said could not find board.

 

On this startup of 4.19, got an unexpected message "firmware 1.x found, upgrade to 2.x..." 

it gave instructions to power down, take all cables out, hold program button down, then power up.

 

I did that, then ...

 

the firmware upgrade ran to completion (two LED's in the dongle flickered the whole time), then the upgrade ran through verify.   

It seems like  now 4.19 and 6.2 can talk to the board.  I have an ancient  AT90S8515 that has that LED program on it.   Neither 

version  has the AT90, but I selected one close in numbers anyway, and it could read the device signature.  

 

Its awesome that it seems to be working, hope its not flaky.

 

Could it be that the firmware was so old, that newer AVR studios didn't know how to read?  This might be a very old board, have no idea.

 

Shut down, then started AVR6.2, and its communicating with the board.    Wahoo.

 

Thanks for all the help and answering my stoopid questions.  

 

 

 

 

 

 

 

I smell burning bakelite!

Last Edited: Thu. Jul 19, 2018 - 03:02 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

GREAT NEWS!!!

 

Thank you for sharing the information.

 

Jim

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

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

Very good, one STK500 saved from the heap!

When in the dark remember-the future looks brighter than ever.

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

Thanks again for all of the help.

I smell burning bakelite!