danjperron / burnLVP

Python code to program using the Raspberry Pi or the C.H.I.P. to program Microchip cpu like Pic12/16F and now PIC18F....
MIT License
11 stars 3 forks source link

Burning with USB-Serial converter and related refactoring #1

Open manojmo opened 9 years ago

manojmo commented 9 years ago

hi, thanks for the burnLVP project. Being in a scripting language makes it easy to modify.

i was able to use it to burn PIC4550 using Rpi. i then started to see if i could use it to burn the PIC using a USB-Serial converter. i had some success. Programming code memory works, but reading EEPROM does not. my effort is documented here : http://chaukasalshi.blogspot.in/2014/12/pic-programmer-using-usb-to-serial.html i would like to contribute it to the main project, if you feel its useful. it involves a bit of refactoring so that the interface is encapsulated within burnGPIO, and exposed via methods like set/getData/Clock/PGM/MCLRState(). The changed code is available at http://milunsagle.org/webroot/downloads/

regards, manoj

danjperron commented 9 years ago

Hi Manoj,

did you check Valter site code

https://sites.google.com/site/physicalsoftwareclub/

The problem with eerom is posssible. Is it about the data eerom or the program eerom?

I had a problem with data eerom and I fixed it but it is possible it is not a universel fix. The problem is related to 8 bits and 16 bits mode.

And if it is the program eerom , it could be the security option. I never put the security on but I will check next week. I do have some other things on the burner and I could be delay.

B.T.W. Did you check Valter site? https://sites.google.com/site/physicalsoftwareclub/

manojmo commented 9 years ago

hi dan,

it is the data eeprom. even the write works, but the read does not. however, it works with the Rpi, so i assume that its some timing issue specific to the usb-serial. i checked valters site just now. however, its not a replacement for my hack. he has created various pic-burners and io kits, but they all need a microcontroller to be programmed first. my hack allows us to program with usb-serial directly from pc, solving the chicken-or-egg problem above.

regards, manoj

On Mon, Dec 29, 2014 at 5:43 PM, danjperron notifications@github.com wrote:

Hi Manoj,

did you check Valter site code

https://sites.google.com/site/physicalsoftwareclub/

The problem with eerom is posssible. Is it about the data eerom or the program eerom?

I had a problem with data eerom and I fixed it but it is possible it is not a universel fix. The problem is related to 8 bits and 16 bits mode.

And if it is the program eerom , it could be the security option. I never put the security on but I will check next week. I do have some other things on the burner and I could be delay.

B.T.W. Did you check Valter site? https://sites.google.com/site/physicalsoftwareclub/

— Reply to this email directly or view it on GitHub https://github.com/danjperron/burnLVP/issues/1#issuecomment-68252691.