I am having an issue compiling to HEX for pic chip 16f1615.
The system returns a syntax error
test_16f1615.c: main()
480: FCV_VOLTS_IN = 0;
^ (195) expression syntax
(908) exit status = 1
(908) exit status = 1
The failure is always on the first line of the program after a C code box defining frequency.
I also note the frequency option for 16MHz is not offered in the build setup when using internal oscillator.
I have a similar project using 16f1709 , in both cases using a C code block to define speed and using both ADC and DAC within the chip and all is OK with the 16F1709 but not the 16F1615.
All programs run in the simulator OK.
What am I doing wrong?
I have attached test file with error log and the main program PIC_vaccum guage interface_v1.fcfx
expression syntax error
Moderator: Benj
-
- Flowcode V4 User
- Posts: 17
- Joined: Thu Jul 30, 2009 9:13 am
- Location: New Zealand
- Been thanked: 1 time
expression syntax error
- Attachments
-
- PIC_vaccum guage interface_V1.fcfx
- (16.25 KiB) Downloaded 135 times
-
- test_16f1615.msg.txt
- (1.21 KiB) Downloaded 136 times
-
- test_16f1615.fcfx
- (7.53 KiB) Downloaded 124 times
Regards
Roy
Roy
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
Re: expression syntax error
Hi
you have to end the code in the C code block with a semicolon
When using the C code call you must comply to the C Code standards
adding the semicolon your code compile fine for me
you have to end the code in the C code block with a semicolon
When using the C code call you must comply to the C Code standards
adding the semicolon your code compile fine for me
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- Flowcode V4 User
- Posts: 17
- Joined: Thu Jul 30, 2009 9:13 am
- Location: New Zealand
- Been thanked: 1 time
Re: expression syntax error
Hi QMESAR
Thank you my friend. I feel such a fool.
It works now
Thank you
Thank you my friend. I feel such a fool.
It works now
Thank you
Regards
Roy
Roy
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
Re: expression syntax error
Hi Roy.
No that is a normal mistakes even experience C programmers make it so easy to get distracted and forget to add the semicolon
Happy you are ok now
No that is a normal mistakes even experience C programmers make it so easy to get distracted and forget to add the semicolon
Happy you are ok now
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR