Compiler/Programmer Options

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Compiler/Programmer Options

Post 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 468 times
empty.pdf
(24.72 KiB) Downloaded 450 times

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: Compiler/Programmer Options

Post 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 438 times

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: Compiler/Programmer Options

Post by Steff »

I have made the same small program with FCV5, and lo and behold ..... with FCV5 function all 4 PWM outputs :D :roll:

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Compiler/Programmer Options

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

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: Compiler/Programmer Options

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Compiler/Programmer Options

Post 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 446 times

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: Compiler/Programmer Options

Post by Steff »

Thanks a lot Benj...now it runs. :D

Jef_S
Flowcode v5 User
Posts: 5
Joined: Sun Oct 05, 2008 4:28 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Compiler/Programmer Options

Post 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

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: Compiler/Programmer Options

Post 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

Post Reply