Author Topic: ATmega328 High Voltage Programming  (Read 5255 times)

0 Members and 1 Guest are viewing this topic.

Offline salvodi89Topic starter

  • Contributor
  • Posts: 19
  • Country: it
ATmega328 High Voltage Programming
« on: May 07, 2017, 01:30:43 pm »
Hello Everyone!
Does anyone ever tried to rescue ATmega328 with high voltage programming?

I'm using AVR Dragon to rescue 20 microcontroller with locked fuses!  |O
I made an adapter board, to connect the device I followed Devicesheet SCKT3200D2, but I'm not sure of connections because it specifies connections only for 28 pin devices.
So I made my own cross table (attached).

Nothing to do... with my adapter I'm able to program (fresh devices) in ICSP mode and read Programmed devices, but it won't work in HV Programming mode...
I get the following error:
Quote
Unable to enter programming mode. The read device ID does not match the selected device or any other supported devices.
Please verify device selection, interface settings, target power and connections to the target device.
Quote
Severity: ERROR
ComponentId: 20100
StatusCode: 131101
ModuleName: TCF (TCF command: Device:startSession failed.)

Unexpected signature 0x00efefef (expected 0x001e9514).

Any idea? Are my connections wrong?

Thank you!
 

Offline Bruce Abbott

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: nz
    • Bruce Abbott's R/C Models and Electronics
Re: ATmega328 High Voltage Programming
« Reply #1 on: May 07, 2017, 03:51:34 pm »
All the connections appear to be correct.
 
The following users thanked this post: salvodi89

Offline cv007

  • Frequent Contributor
  • **
  • Posts: 825
Re: ATmega328 High Voltage Programming
« Reply #2 on: May 07, 2017, 05:12:04 pm »
AVcc ??

Been a long time since I touched an AVR, so I'm not sure if AVcc left unconnected matters or not in HV programming (the datasheet shows to connect it in HV programming- so probably needed).


A project I created long ago, when my Dragon seemed to be screwing with my avr's when trying to enter debug mode-
http://www.mtcnet.net/~henryvm/4AvrFuseBuster/
 
The following users thanked this post: salvodi89

Offline salvodi89Topic starter

  • Contributor
  • Posts: 19
  • Country: it
Re: ATmega328 High Voltage Programming
« Reply #3 on: May 07, 2017, 10:48:03 pm »
Thank you!  :-+

AVcc ??

Been a long time since I touched an AVR, so I'm not sure if AVcc left unconnected matters or not in HV programming (the datasheet shows to connect it in HV programming- so probably needed).

I left unconnected... but now I connected and I'm able to program in high voltage mode!
Where did you find it in the datasheet?
 

Offline cv007

  • Frequent Contributor
  • **
  • Posts: 825
Re: ATmega328 High Voltage Programming
« Reply #4 on: May 08, 2017, 01:10:34 am »
Quote
Where did you find it in the datasheet?
Figure 31.1 (don't see any mention in the text, though). Also note that 5.2.7 indicates AVcc is used to power PC3:0, so without AVcc power those pins don't work. Like I said, I haven't touched an avr in a long time, and this may be common knowledge for the avr freaks (I am a former freak).
 
The following users thanked this post: salvodi89

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: ATmega328 High Voltage Programming
« Reply #5 on: May 08, 2017, 04:03:29 am »
ALL the power pins (and GND pins) of an AVR need to be connected, all of the time.
Not doing so is a "frequently made error" of AVR beginners.  The datasheet says:

    [size=0pt][/size]
Quote
[size=0pt]AV[/size]CC [size=0pt]is the supply voltage pin for the A/D Converter, PC3:0, and ADC7:6. It should be externally connected to V[/size]CC[size=0pt], even if the ADC is not used. If the ADC is used, it should be connected to V[/size]CC [size=0pt]through a low-pass filter. Note that PC6...4 use digital supply voltage, V[/size]CC[size=0pt]. [/size]
[size=0pt][/size][size=0pt][/size]
   
 

Offline salvodi89Topic starter

  • Contributor
  • Posts: 19
  • Country: it
Re: ATmega328 High Voltage Programming
« Reply #6 on: May 09, 2017, 10:57:42 am »
Thanks everyone!

Just a little bit off topic:
Does I need a pull-up resistor when I try to program in ICSP mode?
 

Offline cv007

  • Frequent Contributor
  • **
  • Posts: 825
Re: ATmega328 High Voltage Programming
« Reply #7 on: May 10, 2017, 06:06:55 pm »
Quote
Does I need a pull-up resistor when I try to program in ICSP mode?
Basically, no. Atmel has a lot of documentation on many subjects, AVR910 may be of interest to you.
 
The following users thanked this post: salvodi89

Offline salvodi89Topic starter

  • Contributor
  • Posts: 19
  • Country: it
Re: ATmega328 High Voltage Programming
« Reply #8 on: May 11, 2017, 08:23:07 am »
Thank you!

I know that I MUST read documentation but sometimes is better to ask someone expert!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf