ATmega328P debugger choice

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

Hi there,

I want to debug through debugwire atmega328p device using atmel studio 7, W10.

According to the atmega328p product page the suggested debuggers are:

- Atmel ICE

- PicKit4

- MPLAB(R) Snap In-Circuit Debugger ( PG164100 )

 

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?

I only intend to use the debugger with atmega328p.

 

Thank you

Regards

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

It works fine under me.

 

 

However, some modifications may be required.I added a pull-up resistor to mine.
I've only followed other threads on this, so I leave that to the authority.

 

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

Thank you!
I have an ISP 6 pin connector. Is there a reference that let me prepare a connection between the debugger and the ISP connector for debug wire?
I see the debugger comes with no cables

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

Karles wrote:
I have an ISP 6 pin connector. Is there a reference that let me prepare a connection between the debugger and the ISP connector for debug wire?
debugWire is simply a subset of the ISP pins (Gnd and _reset) so if it's wired for ISP it is wired for dW too anyway.

 

Atmel have a published application note about modifying Snap for use with AVRs (acutally I thought it was more of a UPDI than a DW "fix") but suggest you track that down

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

Thank you,

where can I find the application you are talking about?

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

I would use SNAP both for debug wire and programming.

 

Thank you

Regards

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

Pin assignments are provided in the MPLAB PICkit 4 Debugger User's Guide.

http://ww1.microchip.com/downloa...'s_Guide_DS50002751C.pdf

 

Anyway, look for related materials on the manufacturer's site, read them, and try to understand them.
 

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

Karles wrote:
where can I find the application you are talking about?
https://microchipdeveloper.com/search:site?q=ETN&mini=true

ETN-36

MPLAB Snap AVR Interface Modification

edit : http://ww1.microchip.com/downloads/en/DeviceDoc/ETN36_MPLAB%20Snap%20AVR%20Interface%20Modification.pdf

Karles wrote:
I would use SNAP both for debug wire and programming.
and more (virtual COM via USB CDC ACM)

https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=5#comment-2744321

https://www.avrfreaks.net/forum/come-join-us-mplab-now-supports-avrs?page=6#comment-2839061

Consider having more than one MPLAB Snap in your tool box especially when it's on sale; sometimes ... otherwise ... 404 | Microchip Technology

 


MPLAB Snap | AVR Freaks

 

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

Last Edited: Thu. Jan 30, 2020 - 07:18 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Karles wrote:
I see the debugger comes with no cables
wrt MPLAB PICkit 4 and PIC, the ones at Waveshare have a solution; its picture is one way to solve that issue and could be modified for AVR 6-pin.

PICkit 4 - Waveshare Wiki (top right)

 

 

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

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

Ah yes, as I thought the app note only mentions UPDI/TPI/PDI - does not actually say it's needed for dW ?

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

From memory,   ISP and debugWIRE work fine with or without the hardware mod.

 

I can "reverse" the mod if anyone is interested.

The mod is nothing more than "removing a 4k7 pulldown" and adding a 1k0 pullup.

 

David.

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

Hello kabasan,

are you using mplab snap on atmel studio? how did you let it work?

I have this problem:

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

 

Thank you!

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

I posted on that thread.

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

Hello,

 

I'm interesting by

david.prentice wrote:

From memory,   ISP and debugWIRE work fine with or without the hardware mod.

 

I can "reverse" the mod if anyone is interested.

The mod is nothing more than "removing a 4k7 pulldown" and adding a 1k0 pullup.

 

David.

 

How do you succeed to have it working without the mod ?

 

thanks for your help.