go_away

Author Topic: I'm having problems programming my MEGA168  (Read 986 times)

0 Members and 1 Guest are viewing this topic.

Offline galannthegreatTopic starter

  • Supreme Robot
  • *****
  • Posts: 615
  • Helpful? 4
  • Blue-Lensed Blue LEDs?! What?! Impossible!!
I'm having problems programming my MEGA168
« 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?
Kurt

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: I'm having problems programming my MEGA168
« Reply #1 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

Offline galannthegreatTopic starter

  • Supreme Robot
  • *****
  • Posts: 615
  • Helpful? 4
  • Blue-Lensed Blue LEDs?! What?! Impossible!!
Re: I'm having problems programming my MEGA168
« Reply #2 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.
Kurt

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: I'm having problems programming my MEGA168
« Reply #3 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?

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,152
  • Helpful? 110
Re: I'm having problems programming my MEGA168
« Reply #4 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.

Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here

data_list