Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => AVRDude => Topic started by: rwgast on October 31, 2012, 09:10:24 am

Title: STK500v2 not working in AVR Studio
Post by: rwgast on October 31, 2012, 09:10:24 am
Ok so I am trying to build this

http://www.ikalogic.com/scanalogic-the-beginning/ (http://www.ikalogic.com/scanalogic-the-beginning/)

the schematic is there showing how the ISP connection is wired to the chip. I wanted to try the STK500 firmware becuase I thought it would be nice to program my chip straight through AVRStudio and elminate AVRDude, flashing the BP back and forth as needed is no skin of my back, I hate USBAsp and I hate AVRDude so this STK500 firmware is really cool for someone like me. Anyways I flashed the STK500v2 Hi-Z package (im guessing this is what I needed since im not working with 3.3v) and then connected my bus pirate to the ISP on the schematic above using the Bus pirate programming connections table found here

http://dangerousprototypes.com/docs/Bus ... rogramming (http://dangerousprototypes.com/docs/Bus_Pirate_AVR_Programming)

I left my board unplugged and then connected the BPs +5 and GRND to the ISP header. I opened AVRStudio and then selected add new STK500 on com10, then selected Atmega16A and ISP, when I hit apply I AVR Studio tells me it can not communicate with an STK500 on com10, Im positive this com port is right .

Can someone tell me why I cant get this working, im kind of bumed out :/. Im not sure if this makes any difference but once ive loaded the firmware for the STK500 the vreg light stays on and I can no longer log in with putty I have to manually jump the board to get it back in to bootloader mode.
Title: Re: STK500v2 not working in AVR Studio
Post by: rwgast on October 31, 2012, 09:18:42 am
Here is the exact problem

Timestamp:   2012-10-31 01:17:57.015
Severity:      ERROR
ComponentId:   20100
StatusCode:   1
ModuleName:   TCF (TCF command: Tool:connect failed.)

Failed to open COM10. Error 0x2.
Title: Re: STK500v2 not working in AVR Studio
Post by: ian on November 06, 2012, 12:03:05 pm
Hi rwgast,

It looks like the com port is not opening on windows side. Make sure any terminals, bootloaders, or other programs aren't using it at the same time. You can also try opening the port with a terminal, just to make sure the FTDI chip is working on the bus pirate. Finally, you might try changing the com port to a number lower than 10 in windows settings, some apps don't handle that well.

What version of AVR Studio are you using? V6 required a new reply from the programmer. After you get around this hurdle, you may be confronted with that issue. An updated firmware is here:
viewtopic.php?f=28&t=3441&p=43424&hilit=stk500v2#p43424 (http://dangerousprototypes.com/forum/viewtopic.php?f=28&t=3441&p=43424&hilit=stk500v2#p43424)

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00912058504session_write_close ( )...(null):0
20.00942190096ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00942190872Database_MySQL->query( ).../DatabaseHandler.php:119
40.05372329608Database_MySQL->error( ).../Db-mysql.class.php:273