almost / picprogrammer

Some minor fixes to Tetsujin's Python replacement for the PicPro programmer software.
http://sourceforge.net/projects/tetsujin/
GNU General Public License v2.0
9 stars 6 forks source link

Error: Communication failure. #3

Open gustavo0197 opened 6 years ago

gustavo0197 commented 6 years ago

$ python picpro.py -i 628led.hex --pic_type=16F628A -p /dev/ttyUSB0 Waiting for user to insert chip into socket with pin 1 at socket pin 2 Chip detected. Erasing Chip Programming ROM ROM programming failed. Programming EEPROM Error: Communication failure. This may be a bug in this script or a problem with your programmer hardware.

I want to know why I'm getting this issue. I've tried running this script in another computer and I got the same problem. My PIC is ok because I tried in a windows 7 computer (with k150 programmer software) and everything is ok.

ioliveirafarias commented 6 years ago

Waiting for user to insert chip into socket with pin 1 at socket pin 2 Chip detected. Verifying ROM ROM verification failed. Verifying EEPROM Error: Communication failure. This may be a bug in this script or a problem with your programmer hardware.

    # Verify programmed data.
    # Behold, my godlike powers of verification:
    print 'Verifying ROM'
    pic_rom_data = prot_interface.read_rom()
    verification_result = True

    if (pic_rom_data == rom_data):
        print 'ROM verified.'
    else:
        print 'ROM verification failed.'
        verification_result = False

Waiting for user to insert chip into socket with pin 1 at socket pin 2 Chip detected. Erasing Chip Programming ROM ROM programming failed. Programming EEPROM Error: Communication failure. This may be a bug in this script or a problem with your programmer hardware.

        print 'Programming ROM'
        if (not prot_interface.program_rom(rom_data)):
            print 'ROM programming failed.'
ioliveirafarias commented 6 years ago

Waiting for user to insert chip into socket with pin 1 at socket pin 2 expect: Q -> Q expect: A -> A expect: Y -> Y Chip detected. Erasing Chip expect: Q -> Q Programming ROM expect: Q -> Q expect: Y -> Y 123 ('word_count', 2048) ('data', 0, 32) expect: Y -> Y ('data', 32, 64) expect: Y -> N

ioliveirafarias commented 6 years ago

I'm getting the same error and tried on win8 and it worked on microbrn.

almost commented 6 years ago

Sorry I can't be much help here, it's a long long time since I used this!

almost commented 6 years ago

This repository is just a few minor fixes I made about 10 years ago. Here's the original project: http://sourceforge.net/projects/tetsujin/ (but that's probably also not been maintained for a while!)