AVRISP MKII not shownig DebugWire Interface on Atmel Studio 7, W10

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

Hi there,

I got an AVRISP MKII, intending to use it on Atmel Studio 7, Windows 10, atmega328P target.

When I go into the projet properties on atmel studio, I can correctly configure and use the tool in ISP mode.

If I try to change the interface by setting project properties-> Tool , I only get ISP interface option: no Debugwire option is shownig. The debugger MKII is corretly showed.

 

 

How can I enable the DebugWire interface option?

 

Thank you

Regards

This topic has a solution.
Last Edited: Thu. Jan 30, 2020 - 11:04 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Unfortunately, AVRISP MKII does not have DebugWire function.

 

AVRISP MKII is a "writer", not a "debugger".

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

Thank you for your prompt reply!

Where can I find the list of tools compatible with debugwire, atmel studio 7 for atmega328p?

I know about Atmel ICE and Pickit4, right? Are there other availabe tools?

Is Olimex avr-isp-mk2 a good option?

 

At the moment I only intend to usi it with atmega328p targets.

 

Thank you

Regards

Last Edited: Thu. Jan 30, 2020 - 10:19 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Karles wrote:
Where can I find the list of tools compatible with debugwire, atmel studio 7 for atmega328p?

See the Product Page for the chip in question:

 

https://www.microchip.com/wwwproducts/en/ATmega328p

 

Go to the 'Development Environment' Tab;

 

Click the 'Emulators & Debuggers' button.

 

Please see Tip #1 in my signature (below; may not be visible on mobile) for how to do a screenshot from Windows!

 

And Tip #5.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

The supported HW tools are introduced on the device page.

 

https://www.microchip.com/wwwproducts/en/ATmega328P

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

kabasan wrote:
The supported HW tools are introduced on the device page.

In fact the Device Page - aka "Product Page" -  introduces all the resources for the chip - datasheet, application notes, examples, tools, etc, etc,

 

I really should be the first point of call for anything about the device!

 

And most other manufacturers have a similar arrangement.

 

See also: https://www.avrfreaks.net/commen...

 

#UseTheProductPage

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Fri. May 15, 2020 - 09:11 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you everyone!
 

Do you have experience with atmega328p and the debuggers shown into the product page and you have one to suggest me?

I need to perform debug wire and programming: I would go for MPLAB(R) Snap In-Circuit Debugger ( PG164100 ).

 

Does MPLAB(R) Snap In-Circuit Debugger ( PG164100 ) work fine on atmenl studio 7 and W10?

 

Regards

 

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

That's a new question!

 

it would be more helpful to post that in a new thread with a clear title - so that others with the same question would more quickly find it.

 

And don't forget to mark the solution on this one.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes,  SNAP works in AS7.0.2389

 

You might need to tick a box.   Or update the Packs.

 

Ask if you have a problem.

 

You need to supply your own USB and ribbon cable.

 

debugWIRE works 100%

PDI needs a small hardware mod on original SNAP pcb.    Please quote the SNAP Serial number.   They may have a pcb revision that has fixed it.

 

David.

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

Thank you David,

is there an application that let me build a connector adapter betweem SNAP 8x1 pins and ISP 3x2 pins?

 

Thank you

Regards

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

Personally,  I solder 8x1 angle header and 3x2 straight header to a tiny piece of scrap Protoboard.   Solder wire connections to match.

 

Hey Presto !   A custom Adapter.

 

The 8x1 plugs into the SNAP.   A 6-way ribbon plugs into 3x2 header on the target AVR board.    Mark pin#1 with a permanent marker.

 

Actually,  I also mount a 5x2 box header on the Adapter.   Wire it for JTAG.   This gives me reliable connection for ISP, PDI, UPDI, JTAG, debugWIRE, ...

It works with PicKit4 or SNAP.   Probably BETTER than the wimpy ATMEL-ICE cable.

 

Yes, you can use Dupont jumper wires.    But a proper Adapter means your wiring is always 100%.

 

David.

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

Karles wrote:
Where can I find the list of tools compatible with debugwire, atmel studio 7 for atmega328p?

I know about Atmel ICE and Pickit4, right? Are there other availabe tools?

Yes with the list in the .atdf .pdsc for mega328P megaAVR; the list is also in the release note for some earlier versions of Atmel Studio.

Karles wrote:
Is Olimex avr-isp-mk2 a good option?
Yes for AVR ISP and a well-distributed OSHW instance of Dean's FLOSS LUFA AVRISP2 function-like of Atmel AVRISP mkII; mentioned in AVRISP MKII serial or USB? | AVR Freaks

 


Atmel Packs

an .atpack is a .zip

open .pdsc

search for ATmega328P then 'at:tool'

some of those are EOL with clones, function-likes, and probably good enoughs :

  • the local Microchip engineer might gift you a JTAGICE3
  • AVR ONE! recently went EOL
  • EDBG is on Xplained Pro boards
  • mEDBG is on Xplained Mini boards, ATmega328P Xplained Mini
  • Power Debugger is on sale this month, Power Debugger Jan'20 | AVR Freaks
  • AVR Dragon is mature and at very low stock

 

AVR and SAM Downloads Archive | Microchip Technology

I've forgotten when the switch to pdsc occurred; maybe a year to two ago.

 

https://octopart.com/avr-isp-mk2-olimex-23283818?r=sp

 

P.S.

for mega328P, Atmel AVRISP mkII's pre-cursor is AVRISP; one of the many of today's AVRISP :

Pololu USB AVR Programmer v2.1

 

edit : strikethrus

 

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

Last Edited: Thu. Jan 30, 2020 - 06:45 PM