compile to pic

For general Flowcode discussion that does not belong in the other sections.
Post Reply
rufusfeline
Posts: 8
http://meble-kuchenne.info.pl
Joined: Thu May 16, 2024 3:32 am
Been thanked: 1 time

compile to pic

Post 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?

mnfisher
Valued Contributor
Posts: 2105
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 165 times
Been thanked: 967 times

Re: compile to pic

Post 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

BenR
Matrix Staff
Posts: 2254
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 618 times
Been thanked: 818 times

Re: compile to pic

Post 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

rufusfeline
Posts: 8
Joined: Thu May 16, 2024 3:32 am
Been thanked: 1 time

Re: compile to pic

Post 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.

rufusfeline
Posts: 8
Joined: Thu May 16, 2024 3:32 am
Been thanked: 1 time

Re: compile to pic

Post 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.

rufusfeline
Posts: 8
Joined: Thu May 16, 2024 3:32 am
Been thanked: 1 time

Re: compile to pic

Post by rufusfeline »

I have changed the clock speed to 4mhz, the delay now works!!

medelec35
Valued Contributor
Posts: 2331
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 726 times
Been thanked: 785 times

Re: compile to pic

Post 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
Martin

rufusfeline
Posts: 8
Joined: Thu May 16, 2024 3:32 am
Been thanked: 1 time

Re: compile to pic

Post by rufusfeline »

thank you for your help!

Post Reply