Compiler/Programmer Options

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

Moderator: Benj

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

Compiler/Programmer Options

Postby Steff » Tue Sep 06, 2016 8:05 am

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 222 times

empty.pdf
(24.72 KiB) Downloaded 221 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

Postby Steff » Tue Sep 06, 2016 3:26 pm

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 201 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

Postby Steff » Wed Sep 07, 2016 9:46 am

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: 14795
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4756 times
Been thanked: 4361 times
Contact:

Re: Compiler/Programmer Options

Postby Benj » Wed Sep 07, 2016 11:21 am

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

Postby Steff » Wed Sep 07, 2016 12:17 pm

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: 14795
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4756 times
Been thanked: 4361 times
Contact:

Re: Compiler/Programmer Options

Postby Benj » Wed Sep 07, 2016 12:36 pm

Sorry Looks like I uploaded the v7 CAL file by mistake.

Here is the v6 CAL file.

PIC_CAL_PWM.c
(14.75 KiB) Downloaded 204 times
These users thanked the author Benj for the post:
Steff (Wed Sep 07, 2016 12:50 pm)
Rating: 5%
 

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

Re: Compiler/Programmer Options

Postby Steff » Wed Sep 07, 2016 12:49 pm

Thanks a lot Benj...now it runs. :D
These users thanked the author Steff for the post:
Benj (Wed Sep 07, 2016 1:12 pm)
Rating: 5%
 

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

Postby Jef_S » Sun Sep 18, 2016 2:45 pm

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
These users thanked the author Jef_S for the post:
Benj (Mon Sep 19, 2016 10:22 am)
Rating: 5%
 

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

Re: Compiler/Programmer Options

Postby Steff » Fri Apr 03, 2020 12:50 pm

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