Society of Robots - Robot Forum

Software => Software => Topic started by: galannthegreat on December 04, 2009, 08:37:18 PM

Title: I'm having problems programming my MEGA168
Post by: galannthegreat on December 04, 2009, 08:37:18 PM
I've made my own board based on the $50 dollar robot board and when I try programming it with my USBtiny in AVRdude it just gives me an error. But the funny thing is when I swap out the MEGA168 for a MEGA8 it works. I've tried this with multiple MEGA168's and even a MEGA328P.

Anyone know what I should do?
Title: Re: I'm having problems programming my MEGA168
Post by: Joker94 on December 05, 2009, 01:15:00 AM
A few qestions

1) I asume your using a 28 pin MEAG168 as you talked about swapping them.
2) Is it source code or your own code- i ask this as if it is source it may have some Mega8 relevant stuff in the code
Title: Re: I'm having problems programming my MEGA168
Post by: galannthegreat on December 06, 2009, 01:40:25 AM
No, the programmer isn't even recognizing that they are even there. Well to be more specific AVRdude isn't even connecting to them, just the MEGA8.
Title: Re: I'm having problems programming my MEGA168
Post by: Joker94 on December 06, 2009, 03:19:10 AM
hmmm....

it could be that something is needed in the code to be able to program, or to register that the MCU is there?

is it your code?
Title: Re: I'm having problems programming my MEGA168
Post by: Webbot on December 06, 2009, 12:10:32 PM
Not familiar with AVRdude but AVRISP needs you to tell it which processor you are trying to connect to. It checks that the signature read back from the chip is correct for what you have told it to expect. ie each ATmel device has a unique signature so it can be identified.