Go Down

Topic: what is the recommended isp for general use? (328 and 2560) (Read 3371 times) previous topic - next topic

winner10920

What do most people use for isp? I know there's a couple, so what's the easiest to use with the ide and works with most devices?

spycatcher2k

I use a usbTINY, usbasp & Arduino as ISP - I have found the usbTINY to be the best (Most reliable, and fastest) - then Arduino as ISP - then last (due to speed) the usbasp.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

udoklein

AVRISPmkII. It's the standard. It is reliable. And it can vary its clock speed as well as measure the target voltage.
Check out my experiments http://blog.blinkenlight.net

winner10920

Where is a good online store to buy it from? I usually get my stuff from ebay, but the usbasp I got I used on a bricked mega2560 and at first it said error cannot set sck period then I turned on verbose upload so I could figure out what command to put in avrdude to do it myself on watever speed works and suddenly it said it was working,
weird part is I think the 8u2 on the board is also burnt as it says it doesn't respond, and when I burn the bootloader in the mega I get pin 13 blinking erratically but in a pattern, and when I upload a sketch to blink 13 nothing happens
so idk if I trust it with a good board, id rather buy something legit I know will work
also do you know any good gui's to use the programmer to set the fuses? I know it can be done with avrdude but I really am clueless on how to use that

CrossRoads

AVRISPmkII needs board/chip to be powered externally.
AVR Studio 5.1 is good for setting fuses wth MKii as well.

Mouser.com has them for $33 if I recall.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

westfw

I've heard, however, that AVRISPmkII needs different firmware depending on whether you're using Atmel tools or OSSW tools (Avrdude.)   USBTiny doesn't do 2560 :-(

The ISP programmer confusion is one of the reasons that Arduino uses a bootloader...

xl97

I have always used my Arduino as ISP.. and now recently with recommendation from Crossroads and a few others.. I use Arduino with Optiloader on it..

westfw

Note that ArduinoISP also does not program 2560s...

madworm


AVRISPmkII. It's the standard. [...]


Got any numbers for write/read speed in kb/s ?

winner10920


westfw

Quote
Why can't arduino isp work with the 2560?

The STK500v1 protocol used by ArduinoISP does not support uploads of more than 128kbytes.
(now, it DOES support "random SPI command", so in theory, the right host-side software could program the second 128k bytes VERY SLOWLY (~6 bytes serial traffic per byte programmed, vs ~1 byte)

winner10920

Even if its a small sketch it wouldn't work? Where does the 128kbs size apply to?

westfw

Small sketches should work.   But you can't, for example, use ArduinoISP to program the MEGA bootloader, because that is loaded at the end up memory.

The actual limit is on the address of the "page" of flash memory to be loaded.  Addresses are defined to be in instruction words, and a page is typically 32 or 64 bytes, so you can easily load 128k bytes (64k words.)

SirNickity

Interesting.  Is there a project in the works to update the Arduino sketch to STK v2 (assuming that fixes the address limit)?

westfw

Quote
Is there a project in the works to update the Arduino sketch to STK v2 (assuming that fixes the address limit)?

Yes, stk500v2 fixes the addressing limit, and yes, I have been "experimenting" with porting stk500v2 (the implementation from the 2560 bootloader, actually) to an ArduinoISP-like application.  It seems to be going OK, but it is probably premature to say that there is an update "in the works."  (at best, I'd expect ArduinoSTKv2 to get added, rather than replacing the existing ArduinoISP.)

Testing is a bear.  Mostly because I like tiny programs, and have trouble even imagining working on a sketch/program longer than 128k.  (so for example, I don't have a MEGA2560, and only have a MEGA1280 because I was kindly given one (and I haven't figured out what to do with it.))

Maybe I should leverage that Cryptography class I'm trying to take, and my networking background, and work on a fully secure SSH/SSL networking example.  That should fill up memory pretty dang fast.

Go Up