Author Topic: boost AVR programming speed?  (Read 2420 times)

0 Members and 1 Guest are viewing this topic.

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,657
  • Helpful? 169
    • Society of Robots
boost AVR programming speed?
« on: June 22, 2007, 08:38:46 PM »
Im working with an ATmega168 and my program takes forever to upload making testing painfully slow . . .

Is there any mod I can do to make programs upload faster?


On my PICs I use a programmer and bootloader that only write to areas that have changed in my program. It makes programming way faster . . .

Offline JonHylands

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 562
  • Helpful? 3
  • Robot Builder/ Software Developer
Re: boost AVR programming speed?
« Reply #1 on: June 23, 2007, 04:34:48 AM »
Your problem is the programmer settings. Open the programmer window in AVR Studio, go to the "Board" tab, and Click the "Read" button for Oscillator and ISP Clock. Change the ISP Freq. to 125 kHz, and then "Write".

You should notice a small difference...

- Jon

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,657
  • Helpful? 169
    • Society of Robots
Re: boost AVR programming speed?
« Reply #2 on: June 23, 2007, 07:37:01 AM »
hmmmm it doesnt have 125khz . . .

but it does have:
921.6 kHz
230.4 kHz
57.6 kHz
28.8 kHz
4.00 kHz
603 Hz

I have it set to 4kHz and it says "Attainable: 3.955 kHz"

Which should I choose, meaning any reason I cant just use the highest number? I tried 28kHz and it went much faster :)

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,657
  • Helpful? 169
    • Society of Robots
Re: boost AVR programming speed?
« Reply #3 on: June 23, 2007, 07:50:56 AM »
nm it says "The ISP frequency must be less than 1/4 of the target clock"

Im running at 1MHz clock so its super fast at 230.4kHz :)

Offline iNFINITE

  • Jr. Member
  • **
  • Posts: 21
  • Helpful? 0
Re: boost AVR programming speed?
« Reply #4 on: June 29, 2007, 11:48:36 PM »
Try to use Avrdude. I have seen it programming+verify in half the time it takes in ponyprog.

 


Get Your Ad Here