Author Topic: Problem programming with avr isp mkII! Urgent!  (Read 3596 times)

0 Members and 1 Guest are viewing this topic.

Offline garriwilsonTopic starter

  • Supreme Robot
  • *****
  • Posts: 345
  • Helpful? 0
Problem programming with avr isp mkII! Urgent!
« on: July 27, 2007, 02:27:14 PM »
Please reply and don't look at how long the post is.  :-[

1. First, I want to check if I made the header on my circuit board for my robot right. Ok this is the top view.
. . .
. . .     dots represent pins. Ok which one is pin 1 on the prgrammer cable that you plug in to your robot???
            this is the cable 
                                                                                                                                    v = arrow here
                top view   (v is the arrow)  This is when you look to see the holes  which are dots  . . .
                  | v    |                                                                                            ______  . . .
                                                                                                                      red cable
is pin 1 the one on top with the arrow or the one on the bottow with the red cable?

2. When I plug in the programmer to robot and computer everything is ok. I click the connect button in AVR Studio and it works the first time. Then I click program and it fails when entering and exiting programming mode. When I change the ISP freq to 8 or 4 or 2 or 1 mhz, it puts itself back to 51.10 hz or something. It doesn't listen to me when I tell it to change it always goes the lowest it can.

3. Then I close the programming window and try to open it again but it says could not contact programmer.

4. And also it says the isp freq has to be 1/4 or less than oscilator clock which is gray and BLANK for me so how am I supposed to know what 1/4 of 0 is or blank? I'm kind of disappointed because I wanted everything to go smoothly since I got  a very expensive programmer!
 
Thank you and sorry that this post is so long.

Offline elixier

  • Jr. Member
  • **
  • Posts: 20
  • Helpful? 0
  • http://www.techiesworld.org
Re: Problem programming with avr isp mkII! Urgent!
« Reply #1 on: July 27, 2007, 02:40:31 PM »
First of all there a large no of programmers available in the market. Now being specific to what you have bought go on for fist studying ur users mannual guide again. as the connector which u have tried to show is pretty same for all  but there might be having some specifications for ur programmer.

i think being panic is worthless and have a cool mind in going through the manual once more.
http://www.techiesworld.org
  Techies Rules The World

Offline garriwilsonTopic starter

  • Supreme Robot
  • *****
  • Posts: 345
  • Helpful? 0
Re: Problem programming with avr isp mkII! Urgent!
« Reply #2 on: July 27, 2007, 06:32:52 PM »
OK first of all I already told you in the title.

IF you have a problem or something (no offense) then its AVRISP mkII. The more expensive programmer on the list for the 50$ robot tutorial.

Offline ninja

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
Re: Problem programming with avr isp mkII! Urgent!
« Reply #3 on: August 03, 2007, 06:08:31 PM »

2. When I plug in the programmer to robot and computer everything is ok. I click the connect button in AVR Studio and it works the first time. Then I click program and it fails when entering and exiting programming mode. When I change the ISP freq to 8 or 4 or 2 or 1 mhz, it puts itself back to 51.10 hz or something. It doesn't listen to me when I tell it to change it always goes the lowest it can.

3. Then I close the programming window and try to open it again but it says could not contact programmer.

4. And also it says the isp freq has to be 1/4 or less than oscilator clock which is gray and BLANK for me so how am I supposed to know what 1/4 of 0 is or blank? I'm kind of disappointed because I wanted everything to go smoothly since I got  a very expensive programmer!
 

I had a similar problem to this. After guessing different ISP frequency numbers I was able to get it working. After connecting to the AVRISPmkII, go to the "board" tab, select "125.0 kHz", and choose "Write." If all goes well, pressing on the "Read" button above it would give you "Attainable: 125.0 kHz"

Also, try doing "Read Voltages" to make sure it's not a circuit problem.

Hope that helps.
 

Offline garriwilsonTopic starter

  • Supreme Robot
  • *****
  • Posts: 345
  • Helpful? 0
Re: Problem programming with avr isp mkII! Urgent!
« Reply #4 on: August 03, 2007, 06:49:26 PM »
Ok I got it working!

 


Get Your Ad Here

data_list