The PICkit software doesn't accept command line parameters.
But there's a command line interface for it.
This should help ...
http://www.picbasic.co.uk/forum/show...6&postcount=23
<br>
The PICkit software doesn't accept command line parameters.
But there's a command line interface for it.
This should help ...
http://www.picbasic.co.uk/forum/show...6&postcount=23
<br>
DT
Just do what Heckler said but I will add another thing.
If you are working on a project and repeatedly compiling the same code, use the auto import hex button. Then when ever the PicKit2 software see a new hex with the same name it will automatically load it and program the part.
Simple...
Dave
Always wear safety glasses while programming.
I never liked that Auto Import option.
A lot of times I'll hit F9 just to see if it compiles, and what syntax errors I need to fix.
But that makes a new .HEX file and the Auto Import programmes it into the PIC, whether you were ready or not.
I prefer to have control over when the PIC gets programmed.
With the command line interface and MCS ...
Press F9 to Compile
Press F11 to Program
Press F10 to do both
Much better control.
<br>
DT
Good point.
When it gets down to working on a big project I do not use MCS at all. So I guess it depends on the project and user.
Dave
Always wear safety glasses while programming.
No problem, and thanks.
I'm sorry you hadn't seen it already.
I guess we'll have to fix that problem.
<br>
Last edited by Darrel Taylor; - 2nd April 2010 at 09:50. Reason: fix
DT
Thanks a lot guys, yes that was the way that i found on the Internet, the command-line was a bit different but was the same process.
this is what i got: when i compile the program a window appear showing: "searching for the programmer" the computer search for a bit and nothing happened, so time for me to forget this way to do it.
So I tried the exporting hex method suggested, i went to the PBP and found the "blink.hex" file after i erase the pic+blank check procedures (doing it form the pickit2 software) theses are the results.
-exported the file, the display shown: hex file successfully imported
-so i clicked on write: the display shown: programming successful
-then i click verify: verification of program memory failed at address 0x000000
So seem like something is obviously not right, sorry for all this dumb questions, and i appreciate your patience
Do you have code protect checked?
![]()
Dave
Always wear safety glasses while programming.
Bookmarks