Quick question to decide, whether I got a borken AVR-ISP500 (Olimex)

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I tried different ISPs (Arduino as ISP, USBisp, USBprog, Buspirate) and each have had its problem:

not able to read the whole flash of a ATmega2506 (two byte/three byte problem), fixed voltage, etc...

Therefore I decided to buy an AVR-ISP500 by Olimex.

But:

Does this programmer really need about 8 minutes to read the complete flash of an ATmega2560???

Really???

On Linux I did this:

avrdude -C/usr/local/arduino-1.8.3/hardware/tools/avr/etc/avrdude.conf -v -pm2560 -c stk500v2 -P /dev/ttyACM0 -Uflash:r:FlashContent.hex:i

I experimented with different -B/-b settings...no change.

By the way: The target was powered so the Olimex could probe the voltage...

The output of avrdude was quite normal...no errors...but it was THAT slow....

In this regard (and presumably I did nothing wrong) : Is the AVRISP-MKII more speedy?

Is it difficult to patch the firmware to be able to talk to avrdude?

 

Thanks a lot for any help in advance!

Cheers

mcc

 

 

This topic has a solution.
Last Edited: Sun. Sep 17, 2017 - 02:51 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is the AVRISP-MKII more speedy?

The real unit has not been made by Atmel for many years, serious new developers should use the Atmel ICE.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can buy an AVR-ISP-MKII made by Olimex. As far as I know, the schematics

are OpenHardware, the firmware is still maintained by Microship/ATMEL and is

running on this device.

 

Is the AVRISP-MKII more speedy?

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mcc wrote:
... the firmware is still maintained by Microship/ATMEL ...
LUFA AVRISP maintained by its creator, Dean Camera, and signed by Atmel.

www.olimex.com

Olimex

AVR-ISP-MK2

https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/open-source-hardware

...

Does the firmware of AVR-ISP-MK2 differ from the original Atmel firmware?

The firmware of AVR-ISP-MK2 is based on the LUFA project by Dean Camera. It is a constant work-in-progress.

...

Four Walled Cubicle

AVRISP-MKII Clone (2010)

http://www.fourwalledcubicle.com/AVRISP.php

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi gchapman,

 

ok, I see...my informations were wrong.

 

Still a question remains:

 

Is the AVRISP-MKII more speedy?

 

Cheers

mcc

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If this is an Olimex product that your purchased, surely you should be asking Olimex.

 

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi valusoft,

 

thank you for your reply.

 

Let me explain it this way:

Is there any evidence on that one could argue, that -- based on the way an AVR-ISP-MKII is talking to an AVR-chip in comparison

to the way an AVR-ISP500 tries to acchieve the same thing -- one could tend to the opinion that one is generally faster than

the other one?

And: Which of the both is -- as the conclusion made on the base what I tried to explain above -- is faster/

 

Thanks a lot for any useable answer in advance!

Cheers

mcc

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So... you appear to be expecting that someone here will have both products and have conducted some comparative speed tests. Personally I doubt it. But again, if anyone has, surely it would be Olimex...

 

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mcc wrote:

...based on the way an AVR-ISP-MKII is talking to an AVR-chip in comparison to the way an AVR-ISP500 tries to acchieve the same thing ...

 

As both products will talk to the chip in the same way, because that's what in the datasheet, any speed differences will be down to any of the following...

 

1) lack of 'processing power' in the programmer

2) speed variation on the USB link

3) the driver software

4) the operating system

 

With the exception of 4) these are all under the control of the manufacturer of the programmer.

'This forum helps those who help themselves.'

 

pragmatic  adjective dealing with things sensibly and realistically in a way that is based on practical rather than theoretical consideration.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I can't be bothered to investigate the documentation.

I will just guess that the AVR-ISP500 behaves like a RS232 STK500 just with the RS232 being over a USB bridge.

And the AVR-ISP-mk2 uses regular USB just like the Atmel AVRISP-mk2

 

The ISP time for a 256kB chip depends on the comms traffic between PC and programmer,   the time to send the SPI bytes to the AVR,  the time for the AVR to actually program a Page of Flash memory.

 

An RS232 is limited to 115200 baud for the PC comms.  An USB is limited to the USB speed.

Both styles of programmer will have the same SPI traffic and Page Write time.

 

From memory,   the SPI + Page time will be about 15 seconds for 256kB.

The RS232 data is sent in packets.   But the overhead is trivial.   It will take at least 23 seconds for the packets on RS232.

 

So I would estimate that you would be lucky to achieve anything better than 60 seconds for Program and Verify.

 

If you are programming 1000s of AVRs,  you will buy suitable programmers and software.

 

For a hobbyist,  a Chinese USBASP should be perfectly good.   Or a genuine Atmel AVRISP-mk2

 

David.

 

p.s.   I bet your AVR-ISP500 can achieve 60 seconds with stk500.exe (or even avrdude.exe) if you give it the correct commands.

Last Edited: Sun. Sep 17, 2017 - 03:38 PM