программист говорит, что старый процессор скрывается, но, конечно, он не удалил его полностью, поскольку при программировании используемого процессора он не работает полностью, а при программировании нового процессора он работает нормально.
смотрите детали, предоставленные производителем программатора:
The programmer is working in ISP mode, that means, the device operation is performed through ISP connector only.
The ZIF socket of the programmer must be empty. The programmable device, forgotten in the ZIF socket, might be damaged.
We guarantee the ISP functionality at conditions described by manufacturer of this device in datasheet(s) and application note(s). The "Recommended target circuit design" (next tab) gives example of such schematics.
It is expected, before using of the ISP mode, the user read datasheet of this device and also the user is familiar with the ISP mode of the programming at all.
For the user(s), who do not understand electro-technical terms like: reflection of signal(s) on the long cable, signal edge damage due to line capacitance, crosstalk, bypass capacitors, ground bounce ... we recommend to use off-board programming.
Flash array is located in buffer from 0H to FFFFH.
EEPROM array is located in buffer from 10000H to 107FFH.
Before initiating any action with device in target system make sure, that Oscillator Frequency and Supply voltage in target system are set (menu Device/Device options/Operation options or press ).
Device contains preprogrammed (by manufacturer) calibration value for internal RC oscillator. If you want to use this internal oscillator, you have to write this calibration value into selected oscillator in one of first instructions of code to keep as precise timing of the chip as possible. To be this calibration value useable, you must to copy the preprogrammed value of the oscillator in to any place of Flash or EEPROM memory and the use it as parameter of appropriate instruction.
Calibration value address in device buffer is byte oriented.
As written in application note AVR:910 the reading of FF device ID value does not indicate device failure. In this case ID check has to be disabled.
The erase operation won't change the fuse settings.
If you want to program the calibration byte, you have to choose an address of a blank data memory space, otherwise the calibration byte will not be programmed and the programming procedure won't even start. In that case, choose a different destination address for the calibration byte and run the programming procedure again. Ensure, that the calibration address points to a blank memory space.
According to application note AVR:042 a 100nF capacitor should be connected between Vcc and GND pin to ensure correct device operation.
Correct settings of CPU clock frequency
It is very important to set the correct CPU clock frequency, because the maximum communication speed is 1/4 of actual frequency of CPU clock. Therefore it is important to realize, that you have to set the current value of the CPU clock frequency in "Device operation options" window, not the frequency, that will be actual after programming. Setting too high frequency of CPU clock results into a device synchronization error.
How to find an actual frequency of CPU clock
Before you start looking for the actual frequency of CPU clock, verify the correctness of your ISP connector connections and verify if you've fulfilled the needed minimal isolation of the communication pins from another system according to the programmer needs. If this conditions aren't fulfilled, looking for the actual frequency of CPU clock is pointless, because the device won't communicate.
If you've got a new device, it should be programmed to the default fuse settings. This settings is described in the fuse bits section of the corresponding datasheet. This settings often selects the internal oscillator as CPU clock source. This means, that if you have any oscillator or crystal connected to the chip, it is ignored until you change the clock settings in fuse bits. Mostly the default frequency of the CPU clock is 1Mhz.
If your device is not new, there is no way to find out your actual clock settings. Simply try some lower frequency(1MHz, 500KHz, 100Khz) and read the device. If you can't get it working and you're using crystal oscillator, verify the clock on XTAL1 pin. If the clock is not present, you have to get clock from the device allowed spectrum from any clock source to this pin. After you do this and your device is still not communicating, that means, that the SPIEN fuse bit is unprogrammed and the SPI interface is disabled.
How to extract "ELF" project file
To extract "ELF" project file you need "WinAVR" software tool set to be installed. If you don't have it installed now, you can download the latest installation file from http://sourceforge.net/projects/winavr/files/WinAVR/.
The conversion is made in command line so the next step is to run the program "command prompt" in windows (Start/All Programs/Accessories/Command Prompt).
Then proceed according to these steps:
1:In command prompt use commands "cd" and "dir" to get into the folder, where your project is.
Step into folder: cd
Step out of folder: cd ..
Display contents of current folder: dir
2:To display all the contents of the project file use command: avr-readelf -l
3:Extract FLASH contents using command: avr-objcopy -O binary -j .text
Extracted data are in binary form.
4:Extract EEPROM contents using command: avr-objcopy -O binary -j .eeprom
Extracted data are in binary form.
5:Display the fuse bits value using command: avr-readelf -x .fuse
The displayed hexadecimal value of the fuse bits is in the form:
For AVR8: "LLHHEE", where "LL" is the Low Fuse byte value, "HH" is the High Fuse byte value and "EE" is an Extended Fuse byte value.
For AVRxmega: "F0F1F2F3 F4F5", where "F0" is Fuse byte 0 and "F5" is Fuse byte 5.
6:Display the lock bits value using command: avr-readelf -x .lock
After realization of these steps you have everything you need to create a project in PG4UW. To get further information how to do it please visit our website. Link: http://www.elnec.com/en/support/application-notes/html/?file=extracting_dot_elf_project