Page 1 of 1

Compiler/Programmer Options

Posted: Tue Sep 06, 2016 8:05 am
by Steff
I have finally taken the step to FCV6.
From v3 to v4 to v5 I had no problems. Now I have a problem with the compiler or programmer options. How the hell can they save they remain as I adjusting !!!!!! Every time I look, the Programmer options that I have written are empty again! What am I doing wrong ?
The problem is not the ICD3 programmer does not work, as far as I could not test that, the problem is that I can not save my settings.

Thanks for Your Help
My Compiler Options FCV6.pdf
(23.46 KiB) Downloaded 479 times
empty.pdf
(24.72 KiB) Downloaded 461 times

Re: Compiler/Programmer Options

Posted: Tue Sep 06, 2016 3:26 pm
by Steff
With detours with the MPELAB IPE I can now program the chip.
The goal would be however already that I can program directly from FCV6 and the ICD3.

But unfortunately I have the next problem.
I think the 16F1827 can output PWM signals at the pins RA3, RA4, RB3 and RB6. Unfortunately, I can do that only on pins RA3 and RA4. The Simulaion in FCV6 is OK, on the hardware not.

Am I making a mistake ?
In the appendix, a small test program (fcv6).

Thanks for your help.
16F1827test.fcfx
PWM Test
(9.08 KiB) Downloaded 448 times

Re: Compiler/Programmer Options

Posted: Wed Sep 07, 2016 9:46 am
by Steff
I have made the same small program with FCV5, and lo and behold ..... with FCV5 function all 4 PWM outputs :D :roll:

Re: Compiler/Programmer Options

Posted: Wed Sep 07, 2016 11:21 am
by Benj
Hello Steff,

Please can you try this latest v6 CAL file and see if it solves your problem.
PIC_CAL_PWM.c
The file needs to be placed into the "C:\Program Files (x86)\Flowcode 6\CAL\PIC" directory.

Re: Compiler/Programmer Options

Posted: Wed Sep 07, 2016 12:17 pm
by Steff
Hi Benj
Unfortunately it has not effected except that the compiler / linker print this error messages, which has not been shown befor :cry: !

CC:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_PWM.c(121): error: left operand must be l-value
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_PWM.c(121:9): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_PWM.c(314): error: left operand must be l-value
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_PWM.c(314:9): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_PWM.c(431): error: left operand must be l-value
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_PWM.c(431:9): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_PWM.c(893): error: left operand must be l-value
C...................................................................


FlowcodeV6_16F1827_PWM_test.c success

failure
..
Completed BoostC compilation, return = 1

C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe reported error code 1

Re: Compiler/Programmer Options

Posted: Wed Sep 07, 2016 12:36 pm
by Benj
Sorry Looks like I uploaded the v7 CAL file by mistake.

Here is the v6 CAL file.
PIC_CAL_PWM.c
(14.18 KiB) Downloaded 456 times

Re: Compiler/Programmer Options

Posted: Wed Sep 07, 2016 12:49 pm
by Steff
Thanks a lot Benj...now it runs. :D

Re: Compiler/Programmer Options

Posted: Sun Sep 18, 2016 2:45 pm
by Jef_S
I had exactly the same problem and tried several things.
In V5 it worked fine on all PWM outputs... In V6 only on RA3 and 4.
Thanks to you all. Such a forum is a great thing!
Best Regards
Jef

Re: Compiler/Programmer Options

Posted: Fri Apr 03, 2020 12:50 pm
by Steff
Hello !!
It's been a long time !!
And another problem ... Sorry! :oops:

We have to correct an old FCV5 program a little bit. I thought the simplest and fastest way would be the version it was written in, FCV5, but ...! I can simulate it in FCV5 but when creating the HEx file there is the following error message. What's wrong?

C:\Program Files (x86)\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(48): Illegal redefinition of symbol: ICD_CLK_PIN_PORT
C:\Program Files (x86)\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(53): Illegal redefinition of symbol: ICD_CLK_PIN_TRIS
C:\Program Files (x86)\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(92): Illegal redefinition of symbol: ICD_DATA_PIN_PORT
C:\Program Files (x86)\Flowcode\v5\FCD\..\CAL\PIC\PIC_CAL_ICD.c(97): Illegal redefinition of symbol: ICD_DATA_PIN_TRIS

4 errors detected
Error: preprocessing error


Flowcode V5.5.2.1, on a 12F615.

Thanks for your Help.

Regards Steff