Hex compiler problem

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Post Reply
Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times

Hex compiler problem

Post 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:

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: Hex compiler problem

Post 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.

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times

Re: Hex compiler problem

Post 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

Post Reply