Choice paralysis and 3216 programmers

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

So I didn't actually read carefully enough to notice that 3216s don't use ISP anymore, so I need a UPDI programmer, and possibly want one that's HV-capable. And there's... a lot. There's options for DIY from a Nano, but I don't actually have a nano handy. There's a prebuilt board for doing it from a nano, but the tindie shop that sells it is out of stock and has no ETA. There's various designs and such posted for possible implementations, but I keep ending up finding dead ends. Apparently, the Atmel-ICE supports UPDI, but doesn't support the HV pulse before doing UPDI so it can't be used if you need that. Which I assume I usually wouldn't but maybe sometimes I would, I don't know.

 

 

 

So basically: I don't want to get a kit and solder SMDs myself, really, and I'd like a thing that can do UPDI programming of 3216s, preferably including support for the HV pulse thing in case I need that. Can someone point me to a thing I can order (so, not "not in stock, no ETA on becoming in stock again") that would be a working programmer for UPDI that works with avrdude? Because I'm just spinning my wheels here.

 

(Honestly, still probably recovering from 2020, which was A Lot.)

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

My suggestion:

 

Stop worrying about HV programming!

 

Get a MC SNAP, they are cheap, and they occasionally go on sale, also.

 

JC

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

I will have a low cost standalone HV programmer available soon for UPDI. But for the record, you dont need HV unless you absolutely need to use the UPDI port as another input pin.

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

the_real_seebs wrote:
Can someone point me to a thing I can order (so, not "not in stock, no ETA on becoming in stock again") that would be a working programmer for UPDI that works with avrdude?
Once MPLAB PICkit 4 is in EDBG mode then "shouild" be functional via AVRDUDE; Power Debugger should be a go.

Communication | MPLAB® PICkit™ 4 In-Circuit Debugger User's Guide

in the MPLAB X v5.45 readme for MPLAB PICkit 4 :

13.3   For AVR device with UPDI using the MPLAB PICkit 4

On low pin count AVR devices with UPDI, the UPDI pin can be configured as GPIO or RESET by configuring the RSTPINCFG configuration bits. To do further programming, the MPLAB PICkit 4 will have to use a high voltage pulse to reactivate the UPDI interface. When using the high voltage pulse, you must make sure that all circuits connected to the UPDI wire can tolerate a pulse of at least 12V.

In Project Properties, go to the “PICkit 4” category, “Communications” option category, “High Voltage Activation Mode”.

Drop-down menu item

Description

No High Voltage

Default setting.

Simple High Voltage Pulse

The tool will try to activate the interface by issuing a high voltage pulse. This procedure is safe if the pin is configured as an input.

User Power Toggle

In this mode the user will be prompted to toggle power on the target device. Once the tool detects that the power returns it will issue a high voltage pulse before the target device pin is configured, making the activation procedure as gentle as possible.

 

GPIO vs. UPDI Operation:

When using a high voltage pulse to reactivate the UPDI interface, the reactivation is only temporary, but it will retain the UPDI functionality until the next reset. After the next reset, the pin will go back to the configuration as specified by the RSTPINCFG configuration bits. To have the pin configured as UPDI after a reset, the user will have to change the RSTPINCFG configuration bits back to UPDI.

It is possible to perform a debug session when the RSTPINCFG is configured to GPIO, but the pin will be temporarily configured as UPDI, and the pin will not operate as a GPIO pin.

SYSCFG0 RSTPINCFG[1:0] Configuration Bits

Values

 Function

0x0

GPIO

0x1

UPDI

0x2

RESET

0x3

Reserved

 

Known Issues with UPDI:

·MPLABX-4901: Trying to write to the target with Simple High Voltage Pulse mode enabled and the RSTPINCFG configured to GPIO/RESET, will result in "PDI enable failed (27)". This is seen the first time but will work if tried the second time.

·MPLABX-4902Sometimes when trying to read the target with User Power Toggle mode enabled and the RSTPINCFG configured to GPIO, will result in "PDI physical timed out (25)". This is seen the first time but works if tried the second time.

MPLAB PICkit 4 In-Circuit Debugger

https://octopart.com/search?q=PG164140&currency=USD&specs=0&in_stock_only=1

PICkit 4 - Waveshare Wiki

East :

MPLAB PICkit 4 In Circuit Debugger fast and easy debugging and programming of PIC and dsPIC flash microcontrollers version 4.15|Demo Board| - AliExpress

West :

Microchip MPLAB PICKIT 4 In-circuit Debugger Programmer Fast Programming for sale online | eBay

 

Power Debugger

 

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

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

That's fair, I don't really have much reason to need to reuse that pin. It wouldn't have occurred to me that the PICkit would work with the AVR chips, just from the name. So, that seems solid enough, and I have attempted to order one, and I'll see whether this works.

Last Edited: Sat. Jan 2, 2021 - 04:21 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

most, not all ... AVR begin on page 41 :

Device Support | MPLAB X IDE v5.45

 

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