Page 1 of 1

compile to pic

Posted: Thu Jul 16, 2026 12:20 am
by rufusfeline
I cannot compile to a pic 16F690.
the error message is:
Compilation successful!
Using «PICkit3 PK3CMD Extemal Power> inbuilt settings for linker
Launching the linker/assembler...
C: \Program Files (x86) \Flowcode v10 tools \DoNothing \DoNothing.exe
Using <PICkit3 PK3CMD Extemal Power› inbuilt settings for programmer
Launching the programmer...
C: \Program Files (x86) \Flowcode v10\tools\PICkit3\PK3CMD exe -P16F690 -F"pic test2.hex" -E -M -L
Illegal command line parameter L
C: \Program Files (×86) \Flowcode v10\tools \PICkit3\PK3CMD exe reported error code Qx1
Autoclose tumed off
FINISHED

i have tried changing the parameter -L to -V5 or -V3.3v to no avail.
Can anybody help?

Re: compile to pic

Posted: Thu Jul 16, 2026 12:46 am
by mnfisher
The command line option if you want the PICKit to power the board is -W5.0 or try /W which sets the voltage.


Martin

Re: compile to pic

Posted: Mon Jul 20, 2026 3:24 pm
by BenR
Hello,

The -L parameter is for 16-bit PICs only, try removing the -L and hopefully it should work.

https://www.flowcode.co.uk/wiki/index.p ... ming_Tools

Re: compile to pic

Posted: Sun Jul 26, 2026 11:12 pm
by rufusfeline
Hi Ben, i have found changing the parameters does not work, it failed to initialize.
I tried compiling to HEX, using the MPLABX IPE v5.50. it programmed the pic as far as correctly assigning ports but didn't program the delay function.
osc, timer ? Any advice?
would changing the Pickit 3 to pickit 4 help with the compile to target?
thanks again.

Re: compile to pic

Posted: Mon Jul 27, 2026 12:38 am
by rufusfeline
Further to the above, the clk out on the pic measured at 1mhz, i thought it should be 1/4 of the osc?
my project options were: 16F690, internal RC clock out, 20mhz clock speed, no watch dog, programmer port n/a.
any help is appreciated.

Re: compile to pic

Posted: Mon Jul 27, 2026 4:27 am
by rufusfeline
I have changed the clock speed to 4mhz, the delay now works!!

Re: compile to pic

Posted: Mon Jul 27, 2026 10:59 am
by medelec35
rufusfeline wrote:
Mon Jul 27, 2026 4:27 am
I have changed the clock speed to 4mhz, the delay now works!!
Hello
These posts relate to you as the default internal osc speed is 4MHz.

On the above link there should be enough information to change the internal osc speed from 4 MHz to the maximum internal osc speed 8 MHz

Re: compile to pic

Posted: Mon Jul 27, 2026 11:27 pm
by rufusfeline
thank you for your help!