Page 1 of 1

Hex compiler problem

Posted: Wed Oct 02, 2013 3:19 pm
by Chris_MIRA
Hi,
Im using a miac for a project, the programme runs fine in simulation and compiles to C but, when trying to compile to HEX, I get the failure notice included below. Please help :)

Pure Engine Control ECU.c
Starting preprocessor: C:\PROGRA~1\Flowcode\v5\Tools\boostc\pp.exe "Pure Engine Control ECU.c" -i C:\PROGRA~1\Flowcode\v5\Tools\boostc\include -d _PIC16LF1937 -la -c2 -o "Pure Engine Control ECU.pp" -v -d _BOOSTC -d _PIC16 -d _PIC16x -d _CHAR_INDEX


....

Pure Engine Control ECU.c(1036:2): error: unknown identifier 'adcon2'
Pure Engine Control ECU.c(1036:2): error: invalid operand 'adcon2'
Pure Engine Control ECU.c(1036:9): error: failed to generate expression
Pure Engine Control ECU.c success

failure

....Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:

Re: Hex compiler problem

Posted: Wed Oct 02, 2013 3:42 pm
by LeighM
Looks like you have not chosen MIAC as your project target. Can you check that? (Build->Project Options)

Should be available from the PIC -> Misc category.

Re: Hex compiler problem

Posted: Thu Oct 03, 2013 8:03 am
by Chris_MIRA
Yep, that was it! Dont know how that happened but it would have taken me a long time to find out myself.... Thanks VERY much for your help! :D :D
Regards,
Chris