PIC 16F723A Timer1 interrupt Fails to compile

Moderator: Benj

Post Reply
RobinCordell
Flowcode V4 User
Posts: 15
Joined: Fri Mar 12, 2010 9:37 pm
Has thanked: 4 times
Contact:

PIC 16F723A Timer1 interrupt Fails to compile

Post by RobinCordell »

Hi

I have a very simple interrupt driven program that fails to compile for a 16F723. There is no custom code and as far as I can tell, I have configured the chip correctly.

The compiler messages are:-


File name: C:\Users\Robin\Documents\Flowcode\mike\nsr723.c
Generated by: Flowcode v4.5.18.74
Date: Saturday, February 18, 2012 18:06:35
Licence: Professional
Registered to: Robin Cordell


http://www.matrixmultimedia.com


Launching the compiler...
c:\program files\matrix multimedia\flowcode v4\boostc\boostc_pic16_flowcode.exe -v -t PIC16F723 "nsr723.c"
BoostC Optimizing C Compiler Version 7.04 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday

Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited


nsr723.c
Starting preprocessor: c:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\pp.exe nsr723.c -i c:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include -d _PIC16F723 -la -c2 -o nsr723.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX


...

nsr723.c(133:22): error: unknown identifier 'TMR1CS'
nsr723.c(133:22): error: invalid operand 'TMR1CS'
nsr723.c(133:18): error: failed to generate expression
nsr723.c(133:14): error: invalid operand '~(1 << (TMR1CS))'
nsr723.c(133:11): error: failed to generate expression
nsr723.c success

failure

Return code = 1

Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.

FINISHED


I have attached both the flowcode and resulting c files. Is there an updated definition file out there that I am missing? Or have I (most likely) done something stupid!

Thanks

Robin
Attachments
nsr723.c
The resulting c file
(4.46 KiB) Downloaded 314 times
nsr723.fcf
Flowcode file
(5.5 KiB) Downloaded 314 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PIC 16F723A Timer1 interrupt Fails to compile

Post by medelec35 »

Hi Robin,
I have just posted a fix here:
http://www.matrixmultimedia.com/mmforum ... 603#p32603
Which will enable you to use timer1 & timer2

Martin
Martin

Post Reply