Page 1 of 1

16F1827 hex compiler errors

Posted: Wed May 25, 2011 7:39 pm
by rondesgr
I've created a project using a Microchip 16F1827. The C code compiles without incident. However, when I "compile to Hex", I get errors such as this:
.........................

Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(102:2): error: unknown identifier 'trisa'
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(102:2): error: invalid operand 'trisa'
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(102:8): error: failed to generate expression
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(103:22): error: unknown identifier 'porta'
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(103:22): error: invalid operand 'porta'
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(103:28): error: failed to generate expression
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(103:28): error: invalid operand '& '
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(103:36): error: failed to generate expression
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(103:36): error: invalid operand '=='
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(103:18): error: failed to generate expression
Y:\seat heater\Mini User Control Switch\FLowcode\16f1827.v1.c(154:2): error: unknown identifier 'trisa'

I checked the "include" directory for BoostC and did not find a 16F1827.h file. Is the absence of this file's causing my errors? Is this chip not supported by the BoostC compiler?

Thanks,
Ron

Re: 16F1827 hex compiler errors

Posted: Wed May 25, 2011 8:14 pm
by rondesgr
I checked BoostC's forum and learned that they were to released a file for the 16F1827 in March of 2010. Do Matrix have the updated chip files? Do you have a newer version of BoostC that I need to install?

Thanks,
Ron

Re: 16F1827 hex compiler errors

Posted: Wed May 25, 2011 8:22 pm
by medelec35
Hi Ron,
Yes 16F1827 is currently only supported by Hitec compiler. See:
http://www.matrixmultimedia.com/mmforum ... =26&t=6812
There is a planned free upgrade of Flowcode V4 soon which includes the newer boost C so will support the 16F18xx range of microcontrollers.
I'm sure someone who works for Matrix will be able to confirm the date of planned upgrade.

Martin

Re: 16F1827 hex compiler errors

Posted: Thu May 26, 2011 10:53 am
by Benj
Hello,

The upgrade is on the way however we are cramming in a lot of new features and some of these are not quite ready for release yet.

Re: 16F1827 hex compiler errors

Posted: Thu May 26, 2011 6:55 pm
by rondesgr
Thank you, Martin!

Benj, keep me in mind if you need a beta tester. Thanks.