AVR ???

hgmjr

Joined Jan 28, 2005
9,027
You do realize that you have to refresh/update the forum screen by clicking on "new post" from time to time, right? It does not automatically update with every new post.

hgmjr
 

hgmjr

Joined Jan 28, 2005
9,027
It is 3:48PM where I am located. Do you know when you will be back? How many hours?

I am a moderator so I am here most of the time.

hgmjr
 

hgmjr

Joined Jan 28, 2005
9,027
If you put your GMT offset in your location in your profile, it will be easy to figure out when you will be available tomorrow.

hgmjr
 

Thread Starter

Mathematics!

Joined Jul 21, 2008
1,036
Thanks alot for the help so far.
I am going right now be back tommarrow around 1pm hopefully

If it doesn't work out rest a sure I will post another thread again under this forum.

Later.
 

Thread Starter

Mathematics!

Joined Jul 21, 2008
1,036
Ok , I am back

I don't know if this could be the problem but
Somebody on another forum avrfreak told me I could have compiled the code for the wrong target machine.

But would that give me the wrong signature and not let me physical write to the chip?

How do I check and change this?
 

hgmjr

Joined Jan 28, 2005
9,027
I saw the suggestion in AVRFREAKS and I think there may be something to it.

Give me a second and I will get back with a suggestion.

hgmjr
 

hgmjr

Joined Jan 28, 2005
9,027
Ok, try this.

Go to the toolbar in the AVRSTUDIO4 and select the DEBUG drop down menu.

Near the bottom of the dropdown menu you will see "Select Platform and Device".

Click on this selection and you will be presented with a window where you can select the Platform and the Device. Select "AVR simulator" on the left side window and select your ATMEGA32 on the right side window. Then click on finish. That should get you closer to where you need to be. The AVR dragon indication at the bottom of the screen should now say AVR Simulator.

Perform this selection and then get back to me to let me know how it turned out.

hgmjr
 

Thread Starter

Mathematics!

Joined Jul 21, 2008
1,036
I have noticed if I keep clicking the verify button under the Main tab

I get the signature changing from 0x01 0x03 0x05
to different values 0x01 0x03 0x06 ,....etc

I have check the connections and no wire is touching any other wire.
So I am not getting any cross talk.
So I think it is safe to assume it is rigged up correctly.
 

Thread Starter

Mathematics!

Joined Jul 21, 2008
1,036
Ok when I connect and verify it still gives me the same problem.
When I hit program it gives me
Geting isp parameter 0x04 .. OK unable to open specified file

But in the message box it doesn't say that the mkII failed?

I check the hex file it is the correct one.
 

hgmjr

Joined Jan 28, 2005
9,027
Let's slow down the speed that you are using to talk to your target.

Click on the "MAIN" tab on the programming window and go down below the signature section and click on the "Settings" button. Change your ISP speed to 125KHz and then check your signature again. If that doesn't work, select the next lowest speed. Try all of the lower speeds to see if one of them works.

I believe the signature you are looking for is 0x1E 0x95 0x02.

Let me know what you find.

hgmjr
 

Thread Starter

Mathematics!

Joined Jul 21, 2008
1,036
Yes, signature matches selected device.
That what it say's with 0x1E 0x95 0x02 as you said.
But still cann't program it.
It still gives
Geting isp parameter SD=0x06 .. OK unable to open specified file
instead of
Geting isp parameter SD=0x04 .. OK unable to open specified file
 

hgmjr

Joined Jan 28, 2005
9,027
Have you recompiled your program since you made the change to the platform and got rid of the AVR DRAGON indication? If not recompile your program and see if that helps.

hgmjr
 

Thread Starter

Mathematics!

Joined Jul 21, 2008
1,036
I have noticed alot of werid stuff under the fuses and lockbit tab that I don't under stand and may have screwed up in the passed if this could be the cause.
 

hgmjr

Joined Jan 28, 2005
9,027
Yes, that could be a factor.

Do you know how to use the "PRINT SCREEN" key (assuming you are working from a PC) to capture your screen?

hgmjr
 
Top