Hey dimitri and ignotus, thanks for your reply!
Well, what I usually do is:
1 - Connect the ICSP cable to the computer
2 - Connect the ICSP cable to the board
3 - Connect the usb cable to the computer
4 - Connect the usb cable to the board
When I open WinPic, the log of the first attempt to connect to the board says:
Info: Loading definitions for "PIC18F2550" from C:\WinPic\devices.ini .
Info: Support for some newer PIC18F devices added by Martin v.d. Werff 2005
Couldn't find "devices\PIC18F2550.dev", please borrow/copy from MPLAB !
PIC18F: family='21'=4550, WriteLatch=32 bytes, EraseLatch=64 bytes .
Failed read back of DATA line (LOW) !
WARNING: Could not initialize programmer !
Testing: delay(500ms) took 0.50 seconds, timer_freq=1.1932 MHz ... ok
Unknown algorithm name : "16F716 ; ex: ERASE_16F87xA" !And then, when I try to initialize the connection, it says:
Failed read back of DATA line (LOW) !
WARNING: Could not initialize programmer !
Which is weird because I can clearly remember that yesterday it was saying:
Failed read back of DATA line (HIGH) !
WARNING: Could not initialize programmer !The error that I get when trying to programm the PIC is
Results from LoadHex: LastProgAdr=0x001862 LastDataAdr=0xEFFFFF (C:\MegaDrum USB MIDI Firmware 18F2550 12MHz V2.hex)
Programming...
Erasing ("bulk" or "chip") ...
Erasing chip using algorithm "PIC18F" .
Programming CODE, 0x000000..0x001862
Verifying CODE, 0x000000..0x001862
Verifying 0x000000..0x001862
Verify Error: 000000: read 00FFE3, wanted 00EF43, mask 00FFFF ==> diff=0010A0
Verify Error: 000002: read 00FFFF, wanted 00F00A, mask 00FFFF ==> diff=000FF5
Verify Error: 000008: read 00FFFF, wanted 00EFAF, mask 00FFFF ==> diff=001050
Verify Error: 00000A: read 00FFFF, wanted 00F00B, mask 00FFFF ==> diff=000FF4
More Verify Errors, unable to list all (total=3120)
Programming CONFIG, 0x300000..0x30000C
Verifying CONFIG, 0x300000..0x30000C
Verifying 0x300000..0x30000C
Verify Error: 300000: read 00FFDA, wanted 000E32, mask 00FFFF ==> diff=00F1E8
Verify Error: 300002: read 00FFFF, wanted 001E3F, mask 00FFFF ==> diff=00E1C0
Verify Error: 300004: read 00FFFF, wanted 0080FF, mask 00FFFF ==> diff=007F00
Verify Error: 300006: read 00FFFF, wanted 00FF85, mask 00FFFF ==> diff=00007A
More Verify Errors, unable to list all (total=7)
ERROR: Programming FAILED !One thing to be said is that the configuration of the COM port (and the port itself) is alright. I found a step-by-step guide to chek one ICSP, the ports, the hardware. It can be found at
http://www.hamradioindia.org/forums/viewtopic.php?p=1441. One of the things that it suggests to check if the com port is ok is to connect pins 4 and 8. It could help so I tryed. I did that an the WinPic recognized the device. So I could only guess that my port and my configs are ok.
Another thing to be said is that sometimes the computer that I'm using to use WinPic recognizes the device properly as the Megadrum. But if I turn off the computer or try to connect it to another computer, it is recognized as an usb device, but is not correctly recognized (the windows displays an error flag of unrecognized USB device).
You do not have the required permissions to view the files attached to this post.