Author Topic: ATMEGA32 ICSP programming  (Read 2063 times)

0 Members and 1 Guest are viewing this topic.

Offline xitenikTopic starter

  • Newbie
  • Posts: 4
  • Country: bg
ATMEGA32 ICSP programming
« on: November 21, 2017, 03:49:54 pm »
Hello guys. I am new to programming. I have this MiniPro TL866a programmer and I wanted to use the ICSP port to read a chip. I was comparing the icsp pins on the board and these given in internet and the programmer, but something doesn't look right.
I need to read this Atmega32a AU chip, but I don't want to do something stupid and erase it by mistake, so I need an advice.
There are few things that I think are messed up. First, it doesn't fit any pinout in the internet. Second , the vcc pin is disconnected. Is that normal ? Where the chip will get power to be red ?
Could you please tell me what to do , so I can read it properly , without erasing.

Thanks!
 

Offline imidis

  • Frequent Contributor
  • **
  • Posts: 426
  • Country: ca
Re: ATMEGA32 ICSP programming
« Reply #1 on: November 21, 2017, 04:23:30 pm »
This is my guess, I would probe the one to vcc see if thats vcc, the empty pads look like a spot for a pull up on the reset pin. But be careful not to put more voltage than the board was designed for. (VCC GND may be reversed if top layer is vcc)

It's very possible the chip fuses are set so it will not be able to be read
« Last Edit: November 21, 2017, 04:54:13 pm by imidis »
Gone for good
 

Offline Arjen_Arg

  • Contributor
  • Posts: 13
  • Country: ar
Re: ATMEGA32 ICSP programming
« Reply #2 on: November 21, 2017, 05:39:45 pm »
imidis is right, the only question would be VDD as he says, but the rest matches the datasheet perfectly.

 

Offline xitenikTopic starter

  • Newbie
  • Posts: 4
  • Country: bg
Re: ATMEGA32 ICSP programming
« Reply #3 on: November 21, 2017, 09:10:03 pm »
So I measured some things on the board. The NC , where the VCC is supposed to be, is not connected to anything.  When the power is connected to the board, on the right pad the voltage is 4.77, and the left pad is 4.65V.  The right pad with 4.77 is connected to the power of the board, but it is NOT connected to the VCC pin of the ICSP.
I don't know what is pull up resistor. Should I try reading the chip , without VCC ? Or to try and read it , when powered on?
« Last Edit: November 21, 2017, 09:21:33 pm by xitenik »
 

Offline imidis

  • Frequent Contributor
  • **
  • Posts: 426
  • Country: ca
Re: ATMEGA32 ICSP programming
« Reply #4 on: November 22, 2017, 06:47:53 am »
If you just connect ths MISO,MOSI, RST and SCK  to the TL866 ICSP and use the board power to power up the chip you can see if you get any comunication from it.
Gone for good
 

Offline xitenikTopic starter

  • Newbie
  • Posts: 4
  • Country: bg
Re: ATMEGA32 ICSP programming
« Reply #5 on: November 22, 2017, 08:03:24 am »
Ok, so I managed to read the data, but this is what it showed. Does these settings mean, I can't read the chip?
 

Offline cowana

  • Frequent Contributor
  • **
  • Posts: 324
  • Country: gb
Re: ATMEGA32 ICSP programming
« Reply #6 on: November 22, 2017, 08:58:52 am »
Quote
All AVR devices contain two Lock bits named LB1 and LB2. Programming these (to 0, low) will add protection to the contents written to Flash and EEPROM memories according to the table below. The level of protection is divided in three modes, where mode 1 offers no protection and mode 3 offers maximum protection. It is possible to move to a higher mode of protection simply by reprogramming the Lock bits.



The AVR allows changing "high" bits to "low", but not the other way around. It is not possible to change a "low" Lock bit to a "high", thus lowering the level of protection is not possible. To clear the Lock bits, a complete Chip Erase is required, which erase the Flash memory.
Source: https://electronics.stackexchange.com/questions/53282/protecting-avr-flash-from-reading-through-isp, user 'Garrett Fogerlie'
 
The following users thanked this post: imidis

Offline xitenikTopic starter

  • Newbie
  • Posts: 4
  • Country: bg
Re: ATMEGA32 ICSP programming
« Reply #7 on: November 22, 2017, 09:27:31 am »
Thanks for the quick reply.
If I desolder the chip and read it with the programmer, will it give me the same results, or I will be able to modify then?
 

Offline cowana

  • Frequent Contributor
  • **
  • Posts: 324
  • Country: gb
Re: ATMEGA32 ICSP programming
« Reply #8 on: November 22, 2017, 09:31:15 am »
Regardless of whether the chip is on the board or not, it's not going to be possible to read out the firmware.

Unfortunately your best bet would be reverse engineering it and writing it from scratch if you need to change something.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf