New to UPDI

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

Hi!

 

I'm new to using UDPI. Just want to check if I got the schematic right.

The pin UPDI (41) I use for the UPDI. The question is what do I do with the RESET pin? Do I set it up default (resistor pullup and cap to gnd)?

 

I was thinking of buying a xmini and use the programmer of it (after modfying it, link:https://www.jsykora.info/2019/04/avr-updi-programmer-from-attiny817-xplained-mini/  )

Is that a good option to consider?

 

The controller I'm using is the ATMEGA1609. 

Code is everything, code is life :D
 

Last Edited: Mon. Sep 2, 2019 - 05:36 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gproduct wrote:
The question is what do I do with the RESET pin?
Can be connected to a signal from a USB UART such that mega1609 can be reset via an operating system (some OS can control UART handshake signals)

gproduct wrote:
Do I set it up default (resistor pullup and cap to gnd)?
edit2 : UPDI : pull-up yes, cap no

gproduct wrote:
Is that a good option to consider?
Another debugger option may be the nEDBG on a mega4809 Curiosity Nano (open some of the jumper pads, has level translators)

Programmers can be via a USB UART or a megaAVR UART.

 


ATMEGA1609 - 8-bit Microcontrollers

ATmega4809_Curiosity_Nano

[page 2, B7, nEDBG jumpers]

[page 3, D3, RESET]

via ATmega4809 Curiosity Nano

 

edit :

Atmel-ICE | TinyX-OCD (UPDI) Special Considerations

...

When designing a target application PCB where UPDI interface will be used, the following considerations must be made for correct operation:

  • Pull-up resistors on the UPDI line must not be smaller (stronger) than 10kΩ. A pull-down resistor should not be used, or it should be removed when using UPDI. The UPDI physical is push-pull capable, so only a weak pull-up resistor is required to prevent false start bit triggering when the line is idle.
  • ...

edit3 :

https://www.avrfreaks.net/forum/megaavr-0-series?page=4#comment-2758641

 

edit4 : typo

 

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

Last Edited: Mon. Sep 2, 2019 - 07:12 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Great! I just realized I didn't have a 10K pullup will add that.

So the option is (and the cheapest) is to get a curiosity Nano and just shave off those pins and use it a programmer. Is atmel studio compatible with it? 

Code is everything, code is life :D
 

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

gproduct wrote:
Is atmel studio compatible with it?
I don't know (haven't tried that as I have Atmel-ICE)

IIRC, mEDBG is at least somewhat target MCU tolerant; don't know about nEDBG.

 

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

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

nEDBG works in Studio - just uncheck the "hide unsupported devices" checkbox from the options when using another device than the one mounted on the CNANO.

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

UPDI only requires three pins: UPDI, GND and V+. there is no need whatsoever for a pull up resistor. we have discussed this many times.

your other question about using mEDBG: you have to use a common ground then its theoritically possible. please check the website for related issues. the forum is fulll of similar questions to yours.

BR,
Moe