Author Topic: ($50) ATmega8 AVRISP reprogramming failure  (Read 3269 times)

0 Members and 1 Guest are viewing this topic.

Offline typoTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
($50) ATmega8 AVRISP reprogramming failure
« on: March 27, 2008, 02:08:06 PM »
I'm a total newbie to electronics and programming. The $50 robot was my first project, and, barring some soldering disasters it worked... fantastic. So I've gone back to bottom of the learning curve to try to figure out why and why it works.

However, I now seem totally unable to reprogram the chip. I've followed various tutorials, but the chip seems frozen with the $50 Robot software.

I'm using AVR Studio and the AVRISP Mk2 with the firmware upgrade. The programming comments tell me that the erase, writing, verification etc. is all OK. The AVRISP LEDs do everything they should, but as far as I can tell there is no change to the loaded program. Even the most basic instructions to set pins high do nothing. Using a LED to check the pins PD0 and PD1 flicker and PD4 is on, as I guess you would expect, and stay there in spite of reprogramming.

Assuming I'd done something to screw up the chip, (eg shorts, fuses etc.) I got a new one rebuilt the wiring and loaded a new program, and now that appears to be loaded with the $50 Robot code.

I've tried searching this site, AVRFREAKS and others and I cant find anything similar. I've run out of ideas.

I would really appreciate some advice here.

Thanks

Typo



Offline typoTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: ($50) ATmega8 AVRISP reprogramming failure
« Reply #1 on: March 28, 2008, 03:35:40 AM »
OK. I've got it. I was being really dumb.

AVR Studio 4 doesn't automatically change the hex file path to the current build, and hitting the erase button two or thee time looks like a good thing to do.

Happy now. I've got my stepper motor working.

Typo

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: ($50) ATmega8 AVRISP reprogramming failure
« Reply #2 on: March 30, 2008, 11:03:21 AM »
Don't forget to post pics/vids of your bot!

http://www.societyofrobots.com/robotforum/index.php?topic=1029.0

 


Get Your Ad Here

data_list