4.11 will not see stk500 via usb-2-rs232

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

Well it looks like I have shot myself in the foot. After using my STK500 through a USB to RS232 converter for the last year with no problems I just installed 4.11 over 4.10 and now I can't connect to the STK500 unless I go through a standard serial port. The lights blink on the USB 232 device but studio doesn't see it. My guess is that studio 4.11 doesnt wait long enough for a reply from the STK500 serial port as USB devices sometimes take a short while to flush the data through. I've got all the latest drivers BTW.

Has anyone else had a connection problem with studio 4.11 and USB-232 connections? I'll repeat that everything was working fine up until the second I installed 4.11 over 4.10. Ive tried reinstalling 4.10 but that doesnt help either, something must have been permanently overwritten in the windows system files. Any suggestions from the dev team?

Shaun.

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

I tried connecting my ICE200 through exacty the same USB-232 adapter and studio 4.11 can connect to that perfectly, yet it still can't see my STK500. I guess its over to the development team to work that one out.....

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

Browse to your AVR-Studio installation folder. (ie. C:\Atmel\AVR Tools\STK500)
Open the STK500.ini file. You will find an TimeOut setting there. Try to change this to a higher value.
I'm not sure if AVR-Studio uses this ini file because most of the settings are stored inside the registry. But it's a try worth.

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

Interesting idea Michael, but still no luck. The timeout is set to 2.5sec standard which is more that enough for even the slowest USB device to get around to sending off its data cache. Its weird the way the ICE 200 is happy as a clam on the USB to 232 adapter with 4.11 but the STK500 isnt. I suspect you are right when you said that the real setting are buried in the registry. I bet its something along the lines of the code/driver that runs the STK500 not waiting long enough for a CTS from USB device which can be very slow compared to a standard port. USB devices can be a little stange with control lines due to the system overhead.

I guess the code that runs the ICE200 and the STK500 dont share the same port access routines.

Shaun.

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

Your ICE200 will work like a charm with an Unreal serial port like an USB to RS232 adatptor but it will not wotk with Studio 4 reliably with a real serial port. Just found this by accident last week after a year of complains to Atmel. They could not replicate my problem and I could not get any of the Studio 4.xx to work with the ICE200 reliably. In fact even studio 3.56 will work better with an unreal port. I didn't even get one dreaded disassembly window!!

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly