Society of Robots - Robot Forum
Software => Software => Topic started by: Weee on March 07, 2009, 01:27:26 PM
-
Hi
I'm totaly beginer in robotic (but i have engenier degree in electricity).
Now i start with 50$ robot and stop on 4 ster - programming.
My computer dont have serial ports, so i order AVR ISP MKII programmer with USB interface. (it was in tutorial required parts list)
Now i trying to programm my ATmega8, but Ponyprog supports only serial and Parallel ports... How i can programm my microcontroler? Maybe i need use diferent programm (not ponyprog?)
Pleeease help!
-
If you are using the AVR ISP MKII, you do not need ponyprog. In AVR Studio 4 there should be a button on the top toolbar that you click to program.
-
Yes, there is button Programm, but it do not connecting, it shows Connect failed - Select AVR Programmer.
Where can be problem?
-
If you are using AVR Studio 4, there is a connect button on the lower menu bar.... it may ask you to choose a programmer then it will bring up a window which you can use to choose your atmega8 or whatever chip you are using. Remember to select 'board' in order to set your write speed (be sure to click on 'write' after choosing speed) at 125.0 kHZ for the atmega8.
If you don't have AVR Studio 4 installed, use the disk that came with the controller to install the software as specified in the tutorial.
-
If you are using AVR Studio 4, there is a connect button on the lower menu bar.... it may ask you to choose a programmer then it will bring up a window which you can use to choose your atmega8 or whatever chip you are using. Remember to select 'board' in order to set your write speed (be sure to click on 'write' after choosing speed) at 125.0 kHZ for the atmega8.
If you don't have AVR Studio 4 installed, use the disk that came with the controller to install the software as specified in the tutorial.
When i clik connect and chose programmer, computer is thinking abaut two minutes and then shows window - "Connect failed-chose AVR programmer"...
-
To use the AVR ISP MKII you need the newest version of AVR Studio (Found that out the hard way) and to select you programmer do this
Tools>Program AVR>Connect
Then select AVRISP mkII and then press connect
-
To use the AVR ISP MKII you need the newest version of AVR Studio (Found that out the hard way) and to select you programmer do this
Tools>Program AVR>Connect
Then select AVRISP mkII and then press connect
Version i use is - AVR Studio 4.13.571 Service Pack 2
I follow steps you whrite, but when i press "Connect" button, computer is thinking two minutes and then shows - Connect failed - Select AVR Programmer
-
try it is win avr see if it works...but i gues winavr doesnt suppport usb connection
-
USB is supported.
On the second tool bar (the lower one), to the right of the text window, there are three black clickable items, click on the one marked 'con' and you should get a window which will enable you to choose your programmer. Choose the avr isp mkII and then you will get a window with menu tabs marked 'program', 'fuses', 'lockbits', 'lockbits', 'board' & 'auto'
The 'program' tab will let you select your device, and the 'board' tab will let you select your speed. Remember to click on 'write' after selecting your speed. Then go back to the 'board' tab, in the box marked 'flash', to select the file you wish to upload and click on program to upload it.
-
I found that is new version 4.14, and now it's connecting, but when i try to programm, it shows:
Setting mode and device parameters.. OK!
Entering programming mode.. FAILED!
Leaving programming mode.. FAILED!
What can be wrong?
-
Did you set the clock speed from the 'board' menu tab?
-
Did you set the clock speed from the 'board' menu tab?
No, i did not. How can i do it?
-
You can check with hyperterminal, whem you connect a device with USB an extra COM-port will be created , use that COM-port (like COM7, but not 1 or 2) for WInAvr
-
Did you set the clock speed from the 'board' menu tab?
No, i did not. How can i do it?
Before you try to upload the program, look at the menu tabs and select the one marked 'board'. Then set your ISP Freq to 125.0 kHz. Be sure to click on 'write' afterwards.
Also, you might want to check out the AVR tutorial. I found it helpful.
Good luck.
-
(http://www.societyofrobots.com/Users/aivarskrumkalns/Desktop/Picture 5.JPG)
I already set 125 kHz, but problem still exist... see red narked
-
Finaly i found problem - there was mistake i solder some wires in reverse.
Thank you all for support in problem rsolving