AVRISP mkII clone

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

I have bought two such programmers (the first form Banggood and the 2nd from e-bay) and I ordered a 3rd one form e-bay. The first two can connect to my pc (win7) The red led mear USB socket  is constantly on. (I think there is only on led there, no green LED).

When I connect the target the other LED near flat cable flushes orange. The AVR studio connects (4.15) ok, but when I go to read the signature I get an error message that the reset line has no proper pull-up resistor or the connection of the target is not correct.

I tried a 10K resistor also a 100nF cap to ground, even so I get the same error. I think there is a bug in firmware. Since the pcb of this programmer is different that the original, I guess I cannot update firmware. I tried this and failed.

I wish I could find an original ATMEL AVRISP programmer, but I can't. Any advice please? Some one has similar problem? Where can I find a programmer that is warrantied to work?

Thank you

 

Stuck with assembler

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

Please don't cross post - you already started a discussion about this here:

 

https://www.avrfreaks.net/forum/avrisp-mkii-fix

 

As you have given more detail in this thread I will lock that other one (though there are already replies) and let the discussion continue here.

 

Moderator

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

Python341 wrote:
Some one has similar problem? Where can I find a programmer that is warrantied to work?
As I said in your first thread - most people looking to just do ISP would probably use a $2 USBAsp from ebay these days. On the PC side you drive it with avrdude.exe.

 

if using Atmel tools then the ATmel-ICE and the Snap are two of Microchip's most contemporary devices and they would be used with Studio 7 or MPLAB X (which is starting to gain AVR support).

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

Python341 wrote:
Any advice please?
Would STK500 work?

If yes then Pololu USB AVR Programmer v2.1

Python341 wrote:
Where can I find a programmer that is warrantied to work?
LUFA isn't warrantied though should work; IIRC, there's instructions for LUFA wrt USB drivers (AVR Studio 4, Atmel Studio 7)

Four Walled Cubicle - AVRISP-MKII Clone

 

P.S.

Python341 wrote:
I wish I could find an original ATMEL AVRISP programmer, but I can't.
Likewise though Ewing Components is showing some (am uncertain, would inquire)

https://www.ewinginc.com/stack?part=ATAVRISP2

 


Pololu - 5.3. AVR programming using AVR Studio 4

https://octopart.com/search?q=ATAVRISP2

 

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

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

Python341 wrote:
The AVR studio connects (4.15) ok

 

Python341 wrote:
Where can I find a programmer that is warrantied to work?

You have severely limited your options by using Studio 4.15.  CLiffs suggestions are not compatible with AS4.1x.

 

I have used the knock off units with hit or miss results as well.  Then I simply bit the bullet and purchased the proper tools and my aspirin consumption reduced significantly.  YMMV

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

Dear jgmdesign. Thank you. Actually I have the version 4,18 of AVR studio. I would pay as much as it is required to have the right tools. I use ISP with AVR Studio and I would like to continues like that. As I said I paid 3 times of about $25 each time and bought 3 AVRISP mkII close, not original ATMEL because I cannot find them now. Do you advice to download AS5 6 or 7; Will this work? AS7 is too heavy, but if it works then it is fine.

 

Stuck with assembler

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

clawson wrote:

Python341 wrote:
Some one has similar problem? Where can I find a programmer that is warrantied to work?
As I said in your first thread - most people looking to just do ISP would probably use a $2 USBAsp from ebay these days. On the PC side you drive it with avrdude.exe.

 

if using Atmel tools then the ATmel-ICE and the Snap are two of Microchip's most contemporary devices and they would be used with Studio 7 or MPLAB X (which is starting to gain AVR support).

Dear Clawson, I paid 3 * $24 and bought 3 closes of AVRISP mkII (from e-bay, you can check) It is not a matter of money.

I need to use a programmer for AVR Studio and ISP.

Thank you

 

Stuck with assembler

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

gchapman wrote:

Likewise though Ewing Components is showing some (am uncertain, would inquire)

Thank you. I visited it but has no specs. I asked for them and I am waiting

 

Stuck with assembler

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

Well its your choice. In theory any "Atmel programmer" with a USB interface should work as well with AS7 as it did with AS4 but it kind of depends on how close a clone of AVRISPmkII they really are.

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

clawson wrote:

Well its your choice. In theory any "Atmel programmer" with a USB interface should work as well with AS7 as it did with AS4 but it kind of depends on how close a clone of AVRISPmkII they really are.

Thank you, but I cannot find any original ISP programmer available. All links that are proposed here are out of stock.

Thanks any way

 

Stuck with assembler

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

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

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

Python341 wrote:
Thank you, but I cannot find any original ISP programmer available

 

Ok, then you wrote earlier:

Python341 wrote:
I would pay as much as it is required to have the right tools.

 

CLiff suggested:

clawson wrote:
if using Atmel tools then the ATmel-ICE.....

 

THats the latest animal that gives you the biggest bang for your buck.  It will not work with Old versions of Studio, but it will work with Studio7.

 

So, if $$ is not an issue to get things done properly, I would then follow my piece of advice and:

jgmdesign wrote:
I simply bit the bullet and purchased the proper tools and my aspirin consumption reduced significantly.

 

Unless you have a specific reason to use the old version of Studio and old model tools.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

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

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

I would guess that Chinese "AVRISP-2" clone programmers fall into two categories:

 

1.  STK500 clones that appear as COM ports in the Device Manager.

2.  Appears as an USB device called "AVRISP-mkII" in Device Manager.

 

(1) Call it STK500 and it should work just fine in AS4 or AS7.   Just add it as a STK500 with the appropriate COM#

(2) will probably be using Dean Camera's firmware and should be ok with the Windows USB drivers.

 

It is always wise to post a link to the actual device you have bought.   e.g. the Ebay sale.

Compare all photos on the link with the item on your desk.   Describe any differences.

 

Please note that I am typing directly from my crystal ball.   I do not own any AVRISP-2 clone.

 

David.

 

p.s.  never attempt to "upgrade" a clone.   It is unlikely to work with non-genuine firmware.

Last Edited: Mon. Apr 1, 2019 - 03:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:

Python341 wrote:

Well, I did the upgrade and now the avrstudio does not even "see" the programmer. Obviously this procedure is for original programmers, not clones!!! The unit is out now!

 

WaveShare | eBay Stores - AVR - Programmers/Debuggers

AVR Studio 4 Firmware Upgrade : https://www.waveshare.com/w/upload/DVD_AVR8_EN/data/product/USB_AVR_ISP_XPII_PG-3-1.htm

via USB AVRISP XPII - Waveshare Wiki

 

 

Stuck with assembler

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

you can order one of these for $10 & away you go with studio7...isp programmer (and debugger) built-in.  Note this has a 3.3v regulator on-board

 

https://www.digikey.com/products/en/development-boards-kits-programmers/evaluation-boards-embedded-mcu-dsp/786?k=atmega328pb

 

You could perhaps remove the AVR & tap into the ISP header to program other 3.3v AVr's (NOT sure if that would work) see 4.3.4

http://ww1.microchip.com/downloads/en/devicedoc/50002660a.pdf

 

 

 

 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

I bought two Chinese AVRISP MKii's when my original Atmel device finally died, and they both work fine with AS7.  I messed with the ribbon cable on the first one I paid $22 for on eBay that is no longer listed and thought it had gone bad so I got a second one for $13 from AliExpress and it works fine.  I put a new connector on the first one and now it works fine too.  I probably should have gotten the $2 USBAsp from eBay Cliff suggested, but I didn't know about them.  If and when my two clones die that is what I will go for. They both worked fine with no complaints from AS7 about firmware.  I just plugged them in and they worked.

 

For debugging with debugWire and JTAG I use an Atmel ICE, which was only around $50 when I got it.  Now they are twice that.

 

I am using Atmel Studio 7, but I actually like AS6 better.  I never ran into any of the bugs that were fixed with AS7, but then I am not a very sophisticated user.  If AS7 is too huge for you, you could try AS6.  It will probably work with your Chinese AVRISP mkII.  AS4 is pretty old.

 

This one was $13 when I got it a couple of months ago:   https://www.aliexpress.com/item/Atmel-AT-AVRISP-mkII-AVR-ISP-mk2-USB-AVRISP-XPII-In-System-Programmer-Supports-AVR-Studio/2034861580.html?spm=a2g0s.9042311.0.0.27424c4dkJO0ri

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

Why is it all of these cheapo units come with a 10 pin ISPhookup, rather than the much more standard 6 pin?

I know some do include an adapter for 10-to-6, but the 6-pin ISP is the standard ISP.

The Atmel AVR ISP MKII they replace came with the 6 pin. 

 

why 10 & need an adapter???  

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

I presume that the 5x2 matches the STK500.   I think that the original AVRISP-1 used 5x2.    Mr Samperi will know.

 

The USBASP also uses 5x2.    I suspect you might find several programmers with 5x2.

 

Of course 5x2 IDC connectors are very common.    And 10-way ribbons are available from Distributors,  Ebay shops, ...

3x2 are unusual but are stocked by some shops.

 

Yes,   it seems very wise to use 3x2 for ISP, PDI, TPI, UPDI.   To differentiate from 5x2 JTAG.

 

David.

Last Edited: Mon. Apr 1, 2019 - 09:37 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
I presume that the 5x2 matches the STK500.

 

Both my STK500's have 2x3 pin headers.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

My STK500 has ISP6PIN and ISP10PIN next to each other.

 

The ISP10PIN matches the 5x2 on USBASP.

 

I Googled for the original (RS232)  AVRISP User Guide

It shows:

3.1.3 ISP Interface Cables AVRISP supports both the 6-pin header connector pinout, used by the Atmel AT90ISP
cable, and the 10-pin header connector used by the STK200 and STK300 development
boards. Figure 3-2 shows the pinouts for the 6-pin and 10-pin ISP connectors.
AVRISP is delivered with one 6-wire and one 10-wire ISP cable. Use the one that match
the pinout of the target ISP connector. However, note that only one cable should be connected,
and used, at any given time. By default the 10-pin header connector is mounted

I conclude that the 6-pin and 10-pin is historic.

 

David.

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

Interesting, I've never seen anyone use the 10 pin isp, so seems strange that they supply it that way--Atmel certainly supplies the 6 pin, but the clone is 10...strange.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

avrcandies wrote:

you can order one of these for $10 & away you go with studio7...isp programmer (and debugger) built-in.  Note this has a 3.3v regulator on-board

 

https://www.digikey.com/products/en/development-boards-kits-programmers/evaluation-boards-embedded-mcu-dsp/786?k=atmega328pb

 

You could perhaps remove the AVR & tap into the ISP header to program other 3.3v AVr's (NOT sure if that would work) see 4.3.4

http://ww1.microchip.com/downloads/en/devicedoc/50002660a.pdf

 

Thank you for the info, sounds interesting, but it looks like its an eval board only for ATmega328. I need to program several chips like ATtiny2313, ATmega8515, etc.

Stuck with assembler

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

They provide an adapter from 10 to 6. Yes strange

Stuck with assembler

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

Python341 wrote:

gchapman wrote:

Python341 wrote:

Well, I did the upgrade and now the avrstudio does not even "see" the programmer. Obviously this procedure is for original programmers, not clones!!! The unit is out now!

 

WaveShare | eBay Stores - AVR - Programmers/Debuggers

AVR Studio 4 Firmware Upgrade : https://www.waveshare.com/w/upload/DVD_AVR8_EN/data/product/USB_AVR_ISP_XPII_PG-3-1.htm

via USB AVRISP XPII - Waveshare Wiki

 

 

This ... upgrade I did and the unit died for ... bad! The leds go on, but the pc does not see it at all!.

 

Stuck with assembler

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

Well, finally I ordered this programmer that they say that it works fine. We will see. Comes from Bulgaria.

https://www.olimex.com/Products/...

I thank every one for the interest

 

 

Stuck with assembler

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

Python341 wrote:
This ... upgrade I did and the unit died for ... bad!
Waveshare USB AVRISP XPII | 3.2 Manual Firmware Upgrade in AVR Studio 4.

 

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

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

The original AVRISP mkII I bought from Digi-Key 8 years ago only had the 2x3 connector on it.  The two clones I got recently also have the 2x5 connector.  One has both on the ribbon, and one has only the 2x5 and an adaptor that plugs into it

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

https://www.olimex.com/Products/...

I thank every one for the interest

A word of warning...the 6-pin cable they provide is NOT for ISP...I fell into that trap, when I desperately tried plugging it into my pcb.

For some foolish reason, they use a 10pin ISP (who uses that?) & they don't provide you a 20 cent adapter. 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/resources/AVR-ISP-MK2.pdf

(page 23)

5.1.1 10-pin ICSP

[third paragraph]

Depending on the target you might need https://www.olimex.com/Products/AVR/Programmers/AVR-ICSP/ since AVR-ISP-MK2 doesn't provide 6-pin ICSP connector. Note it is bought separately.

via AVR-ISP-MK2 - Open Source Hardware Board

 

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

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

Depending on the target you might need https://www.olimex.com/Products/AVR/Programmers/AVR-ICSP/ since AVR-ISP-MK2 doesn't provide 6-pin ICSP connector. Note it is bought separately.

Why didn't they simply make it 6 pin like everyone uses & sell a 10 pin adapter to anyone who uses that (nobody I have ever seen).  I feel like calling them to tell the headache they gave me a few years ago. We ordered one overnight from Digikey & couldn't use it!

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

Last Edited: Tue. Apr 2, 2019 - 09:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The two clones I got, one from eBay and one from AliExpress, both work fine with the 2x3 ISP header pins on my boards and the 6 pin connector on the AVRISP mkII.  Like I said in a previous post one has a 2x5 female header about 2 inches from the end of the ribbon, and a 2x3 female header at the end.  The other just has a 2x5 female on the end of the ribbon and an adaptor that plugs into it with a 2x3 female header that plugs into the ISP pins.  They both work great.  I can change fuses and download code from AS7.  I must just be lucky.  If I plug the 2x3 in backwards an LED blinks inside the mkII.  When I turn it around that LED stays on and everything is fine.  I dont understand why everyone is having so much trouble with these things.  Mine both worked fine out of the box.  No complaints from AS7 about firmware.  They just worked.

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

If you are using SPI for some other device do you have isolation resistors between the SPI pins and the device, and straight wires to the ISP six pin header?  That could cause you a problem.  330 ohm for 3.3V, 510 ohm for 5 V.

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

MarkThomas wrote:

If you are using SPI for some other device do you have isolation resistors between the SPI pins and the device, and straight wires to the ISP six pin header?  That could cause you a problem.  330 ohm for 3.3V, 510 ohm for 5 V.

Hi, first tell me please which version of windows are you using? Did you try previous versions of AVR studio?

I don't have resistors between programmer and target. I used the old version o AVRISP (rs232) without resistors and never had problem. I will try the resistors.

I installed the Atmel studio 7 on a win7 / 32bit pc, but I am completely lost. I know AVRSTUDIO 4,18 and now it is all different.

I want to use 8-bit AVRs like ATmega and ATtiny with assembler. What to study?

Can someone please tell where to start? Please!! I will appreciate it.

I read that the drivers for AS4x are different than those for Atmel studio 7. ! :-(

 

Stuck with assembler

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

avrcandies wrote:
they use a 10pin ISP

I guess the use a 10-pin ISP since there are 4 wires for ground and thus provide better shielding. My AVRISP mkII from Bangood has a 10 to 6 adapter. It marked for ISP, but I cannot put it to work.

Stuck with assembler

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

Python341 wrote:
I don't have resistors between programmer and target. I used the old version o AVRISP (rs232) without resistors and never had problem. I will try the resistors

THere has been debate on this in the past.  For me, I put the resistors in series with the SPI components on the board....100 or 220 ohms, cannot remember exactly as its been a while.  I place my ISP port directly to the AVR pins.

 

Python341 wrote:
I installed the Atmel studio 7 on a win7 / 32bit pc, but I am completely lost. I know AVRSTUDIO 4,18 and now it is all different.

Yup, sure is!  Depending on the AVR's you want to use will dictate what version to use.  Only real thing I would stress is to STAY AWAY FROM STUDIO 5!  DO NOT EVER USE THAT VERSION!!!

 

Python341 wrote:
I want to use 8-bit AVRs like ATmega and ATtiny with assembler. What to study?

Why not C?  Of course you can use assembler, but once you C the light......cheeky

 

Python341 wrote:
I read that the drivers for AS4x are different than those for Atmel studio 7. ! :-(

Yes, they are hence you need to pick the AVR's you want to use and then pick your IDE.  Hint: AS7 support ALL the AVRs, AS4 does not.  Switching drivers can be a pain in the a$$.  I used to do this but gave up and went AS7.

 

Python341 wrote:
Can someone please tell where to start? Please!! I will appreciate it.

 

You have been given some good advice how, and where to start, but I think what you really need is a more stable foundation in which to build on.

 

SO, I went and looked and I found I had these:

 

 

A REAL AVR ISPMKII and an AVR Dragon.  YOu already know what the ISPMKII can do, the Dragon will give you the ability to do programming and debugging with a decent amount of AVRs.

I will confirm they both work and if you PM me your address I will put them in the USPS mail with the other boxes of goodies I have for some other freaks I am sending kit to as well.

 

So, if you want them they are yours.

 

Let me know as I am putting together goodie boxes today.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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


I am using AS7 with Win 7 on two 32 bit machines and one 64 bit machine. 

 

I dont know how to help you with going from AS4 to AS7.  I never used AS4.  I started with AS5, and had been using Visual Studio for my paying job, so it was an easy transition for me.  I think you start a new project,  enter your code and build it.  Then plug in your AVRISP mkII and click on the lightning bolt button up at the top of the screen.  Look around at what you can see from there.  You can look at fuse settings, and download code from memory

 

As for the isolation resistors, below is what App Note AVR042 shows.  It calls out 330 Ohm for 3.3 V and says to limit current to 10 mA.  Since I usually run at 5 V for the higher speed clock, I use 470 Ohm or 510 Ohm resistors to keep the current to 10 mA.  At one point I was using 4.7k resistors and that seemed to work fine too.  

 

Jim, you are such a nice person.  If you are giving away expensive items, I could use a heat gun that will melt lead solder for removing/salvaging chips from boards.  So far, the best way I have found is to use a little butane torch on the soldered pins and just pull the chip off.  It is pretty amazing how the torch will melt solder from 28 pins to the point I can just pull the chip off and the chip barely gets warm.  However, the board gets pretty burned up around where I worked and is useless for rework, and I have to do it with the garage door open or my wife starts asking me what I plugged 12 V into that should have been 3.3 from the smell getting upstairs.

 

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

Hey Jim,

Does that AVRISP mkII just have a 2x3 connector on the end of the ribbon?  That's how mine came 8 years ago.  None of the 2x5 business anywhere.

 

I give Jim a (+1) x 100 for really going way beyond the call of duty to help a confused Freak to get moving ahead on his project.  A dedicated teacher, for sure.  You are the best, Jim!

 

mark

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

MarkThomas wrote:
If you are giving away expensive items, I could use a heat gun that will melt lead solder for removing/salvaging chips from boards.

 

I use one of these:

https://www.ebay.com/itm/3-in-1-...

 

Mine does not have the power supply built in though.

 

MarkThomas wrote:
Does that AVRISP mkII just have a 2x3 connector on the end of the ribbon? 

Yes, thats all it has.

 

MarkThomas wrote:
A dedicated teacher, for sure.  You are the best, Jim!

Not really.  Just sharing the wealth someone shared with me.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

jgmdesign wrote:

Why not C?  Of course you can use assembler, but once you C the light......cheeky

The best language is the one that you know better. I can manage assembly and I find beauty in it. I know a little about arduino C.

 

jgmdesign wrote:

A REAL AVR ISPMKII and an AVR Dragon.  YOu already know what the ISPMKII can do, the Dragon will give you the ability to do programming and debugging with a decent amount of AVRs.

I will confirm they both work and if you PM me your address I will put them in the USPS mail with the other boxes of goodies I have for some other freaks I am sending kit to as well.

So, if you want them they are yours.

Let me know as I am putting together goodie boxes today.

Thank you, but for the time being I will try what I have. I've ordered 3 AVRISP MkII clones and also I recently bought AVRISP mk2 from Olimex which looks fine. I see that Dean Camera has developed it and I admire his knowledge. In case that I will ask you for those what will be the cost? I don't know what you mean "to PM you and what is USPS" sorry.

Thank you

Stuck with assembler

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

MarkThomas wrote:

I dont know how to help you with going from AS4 to AS7.  I never used AS4.  I started with AS5, and had been using Visual Studio for my paying job, so it was an easy transition for me.  I think you start a new project,  enter your code and build it.  Then plug in your AVRISP mkII and click on the lightning bolt button up at the top of the screen.  Look around at what you can see from there.  You can look at fuse settings, and download code from memory

 

As for the isolation resistors, below is what App Note AVR042 shows.  It calls out 330 Ohm for 3.3 V and says to limit current to 10 mA.  Since I usually run at 5 V for the higher speed clock, I use 470 Ohm or 510 Ohm resistors to keep the current to 10 mA.  At one point I was using 4.7k resistors and that seemed to work fine too.  

Thank you,

I understand that the right driver has to be installed, and I am trying to figure out if is it installed correctly.

Then I will try to load a previous assembly project from AS4 to Atmel Studio 7, and will see.

Thank you

Stuck with assembler

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

MarkThomas wrote:

 

 

Hi, something I had not noticed before: On the SPI bus, I understand that is the programmer's side (AVRISP) and at the side AVR is supposed to be target AVR. Correct?

I see that MOSI line of programmer is connected to MISO of target and MISO of programmer to line MOSI of target. I had never noticed that before and when programming with the old serial AVRISP I connected MOSI to MOSI and MISO to MISO and was ok!

Anyway, I tried both ways but no good result.

I attach pictures from winXP, AS4.18 If someone can say something

Thank you

Attachment(s): 

Stuck with assembler

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

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

Last Edited: Sat. Apr 6, 2019 - 04:47 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No, the top connections go to the programmer, the ones on the right are your SPI bus to other chips.

#1 This forum helps those that help themselves

#2 All grounds are not created equal

#3 How have you proved that your chip is running at xxMHz?

#4 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

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

Brian Fairchild wrote:
No, the top connections go to the programmer, the ones on the right are your SPI bus to other chips.

 

I guess it really isn't clear that the 4 lines going up with no resistors are the ones that go to the 6-pin ISP (In-System Programming) header for programming, which also gets Vcc and Gnd.  As Brian said the lines going to the right with the resistors are your SPI bus, and MOSI (Master Out Slave In) line will connect to the MISO (Master In Slave Out) pin on the external device, sort of like UART where Tx on the AVR connects to Rx on the external device, and visa versa.

 

I have attached App Note AVR042 for you.  It has lots of good stuff in it you might find interesting.

Attachment(s): 

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

As well as AVR042, this document is also worth keeping to hand...

 

 

Attachment(s): 

#1 This forum helps those that help themselves

#2 All grounds are not created equal

#3 How have you proved that your chip is running at xxMHz?

#4 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

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

Brian Fairchild wrote:

As well as AVR042, this document is also worth keeping to hand...

 

Dear Brian, The circuit that I posted above IS from AVR042.

I understand now

Thanks for your care

V

Stuck with assembler

Last Edited: Tue. Apr 9, 2019 - 03:25 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jgmdesign wrote:

 

 

 

A REAL AVR ISPMKII and an AVR Dragon.  YOu already know what the ISPMKII can do, the Dragon will give you the ability to do programming and debugging with a decent amount of AVRs.

I will confirm they both work and if you PM me your address I will put them in the USPS mail with the other boxes of goodies I have for some other freaks I am sending kit to as well.

 

So, if you want them they are yours.

 

Let me know as I am putting together goodie boxes today.

 

JIm

Dear Jim

Sorry for my English. Finally I managed the clone AVRISP mkII to work with ATMEL STUDIO 7. Too much trouble. I have to do several clicks until I can program the target.

What windows and what AV studio do you need for the dragon? Is that a RS232 connector that I see on the picture? If yes, then I can use it with AS4,19 that I used to work with before.

I feel lost in Atmel Studio 7. I wish I had an old programmer witch I could use with "old-fashioned" tools. Even winXP.

Still I don't know what do you mean " if you PM me your address I will put them in the USPS mail ". I am in Europe, so I don't know this.

Thanks a lot

Stuck with assembler

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

Python341 wrote:
Is that a RS232 connector that I see on the picture?

NO.

 

BOth the MKII and the Dragon are USB devices.  I know the MKII is compatible with Stidio 4.19.  I do not remember if the Dragon works with 4.19, you will have to do some homework on that unless another freak knows the answer.

 

Python341 wrote:
Still I don't know what do you mean " if you PM me your address I will put them in the USPS mail ". I am in Europe, so I don't know this.

I know you are in Europe.  PM = Private Message, USPS = United States Postal Service. 

 

So,

if you PM me your address I will put them in the USPS mail

If you were to send me a Private Message with your address I will put the units in a box and put the box in the Post Office Mail and send them to you.

 

But your reply was:

Python341 wrote:
Thank you, but for the time being I will try what I have. I've ordered 3 AVRISP MkII clones and also I recently bought AVRISP mk2 from Olimex which looks fine.

 

Which I understood as that you do not want them and would rather continue to buy more clones and knockoffs and fight with them rather than get two authentic units for free.  So I put them back up on the shelf.

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

jgmdesign wrote:

 

Which I understood as that you do not want them and would rather continue to buy more clones and knockoffs and fight with them rather than get two authentic units for free.  So I put them back up on the shelf.

Jim

Dear Jim

I appreciate your offer. But I can't accept something for free.  As I said I managed this clone to work. It is a clone but it works. I am not going to buy any more USB modules, since it will be too complicated to have two programmers and mess up with drivers. I would like to buy an old programmer that can work with AVR studio 4,18.

I do not plan to buy any more clones. All I want is to have something that works fine. This close seems to work ok, although I have big problem to operate the Atmel studio.

Again I appreciate your offer, thanks a lot.

Stuck with assembler

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

And I offered you a brand new unused REAL Atmel MKII for free and a debugger to go along with it. I offered it for free because thats what i do.....as well as other freaks around here....we give stuff away.

You wont accept something for free? Not a problem. I offered, cannot do more than that.

All the best on your quest.

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user