HiTech compiler error
Moderator: Benj
-
- Posts: 19
- Joined: Tue Sep 07, 2010 7:03 am
HiTech compiler error
hello
presently i am working with PIC 16F1933 micro controller , but PIC16F1933 microcontroller it does not working with default BOOSTC compiler,
I have following query about PIC16F1933 MICRO CONTROLLER flow code programming,
1)Why PIC16F1933 microcontroller flowcode program does not compiling using default BOOSTC compiler,
2)Again purchasing HITECHC compiler it does not worth for me,because HITECH-C compiler evolution version for 45 days, All my development is going on using 16F1933PIC microcontroller, please tell me the alternative solution for compiling and programming for 16F19333 micro controller ,
3)BUT When i was compiling FLOW CODE PROGRAM into HEX file getting ERROR, FOR YOUR KIND REFERENCE I HAVE ATTACHED COMPILER-ERROR.JPEG FILE AND COMPILIATIONERROR.JPEG FILE,, But it will generate C code,
4)Generated c code downloaded into into PIC16F1933 microcontroller using MPLAB working environment, but development board does not working properly,
5)please send me the updated 16f1933 FCD file for pic16F1933 micro controller using default BOOSTC compiler,
IF ANY SAMPLE FLOW CODE RELATED TO 16F1933 PIC MICRO CONTROLLER using BOOSTC compiler PLEASE SEND ME THOSE SAMPLES,
PLEASE REPLY AS SOON AS POSSIBLE,
presently i am working with PIC 16F1933 micro controller , but PIC16F1933 microcontroller it does not working with default BOOSTC compiler,
I have following query about PIC16F1933 MICRO CONTROLLER flow code programming,
1)Why PIC16F1933 microcontroller flowcode program does not compiling using default BOOSTC compiler,
2)Again purchasing HITECHC compiler it does not worth for me,because HITECH-C compiler evolution version for 45 days, All my development is going on using 16F1933PIC microcontroller, please tell me the alternative solution for compiling and programming for 16F19333 micro controller ,
3)BUT When i was compiling FLOW CODE PROGRAM into HEX file getting ERROR, FOR YOUR KIND REFERENCE I HAVE ATTACHED COMPILER-ERROR.JPEG FILE AND COMPILIATIONERROR.JPEG FILE,, But it will generate C code,
4)Generated c code downloaded into into PIC16F1933 microcontroller using MPLAB working environment, but development board does not working properly,
5)please send me the updated 16f1933 FCD file for pic16F1933 micro controller using default BOOSTC compiler,
IF ANY SAMPLE FLOW CODE RELATED TO 16F1933 PIC MICRO CONTROLLER using BOOSTC compiler PLEASE SEND ME THOSE SAMPLES,
PLEASE REPLY AS SOON AS POSSIBLE,
- Attachments
-
- COMPILERERROR.JPG
- (103.2 KiB) Downloaded 3651 times
-
- COMPILITAIONERROR.JPG
- (88.99 KiB) Downloaded 3651 times
-
- String RECEIVE.fcf
- (8 KiB) Downloaded 400 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: HiTech compiler error
Hello,
This chip is not currently supported by BoostC as are a lot of the newer PIC devices. We hope to update the version of BoostC in the next update.1)Why PIC16F1933 microcontroller flowcode program does not compiling using default BOOSTC compiler,
The free version of Hi Tech works with all the newer chips so we made Flowcode's code compatible with HiTech. There should be no need to buy the HiTech compiler.2)Again purchasing HITECHC compiler it does not worth for me,because HITECH-C compiler evolution version for 45 days, All my development is going on using 16F1933PIC microcontroller, please tell me the alternative solution for compiling and programming for 16F19333 micro controller ,
Some of the newer chips are currently missing HiTech compatible Flowcode definitions. I will try and sort this out early next week and offer you a solution.3)BUT When i was compiling FLOW CODE PROGRAM into HEX file getting ERROR, FOR YOUR KIND REFERENCE I HAVE ATTACHED COMPILER-ERROR.JPEG FILE AND COMPILIATIONERROR.JPEG FILE,, But it will generate C code,
Can you specify what is not working? Could it be your configuration settings?4)Generated c code downloaded into into PIC16F1933 microcontroller using MPLAB working environment, but development board does not working properly,
I'm afraid the FCD file is not part of the compiler and the compiler requires a different activation key so will not work with the current release of Flowcode. As I say the update is coming.[*]5)please send me the updated 16f1933 FCD file for pic16F1933 micro controller using default BOOSTC compiler,
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: HiTech compiler error
Hello,
Here is an updated definition set for the hitech compiler that should allow all the newer devices to function correctly with Flowcode.
Make a backup of the definitions.h file in your "Flowcode v4/FCD" folder and then replace with the updated file from the zip.
Anyone trying this updated definitions file out then please let me know how you get on, specifically with the newer chips that previously had problems.
Here is an updated definition set for the hitech compiler that should allow all the newer devices to function correctly with Flowcode.
Make a backup of the definitions.h file in your "Flowcode v4/FCD" folder and then replace with the updated file from the zip.
Anyone trying this updated definitions file out then please let me know how you get on, specifically with the newer chips that previously had problems.
- Attachments
-
- definitions.zip
- (247.07 KiB) Downloaded 683 times
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: HiTech compiler error
If anyone gets this message....
It seems HiTech has renamed some of the "option_reg" registers to "option".
PIC16F1933 for example is now working correctly
Then this can be fixed by using the supplementary code window via the View -> Project options menu and adding the following definition.option_reg = 0xC0;
^ (192) undefined identifier "option_reg"
Code: Select all
#define option_reg option
PIC16F1933 for example is now working correctly

Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: HiTech compiler error
Also if getting errors like:
Then see:
http://www.matrixmultimedia.com/mmforum ... 692#p22692
Code: Select all
Warning [374] C:\...\RGB_lut_MAIN.C; 105.5 missing basic type; int assumed
Error [314] C:\...\RGB_lut_MAIN.C; 105.5 ";" expected
http://www.matrixmultimedia.com/mmforum ... 692#p22692
Martin
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: HiTech compiler error
Hi all,
I am just testing a simple flowchart for 16F1824 which still displays:
Adding
Just gives following error:
I have updated Definitions.h with the latest version found here:
http://www.matrixmultimedia.com/mmforum ... 654#p23652
Any other things I could try please?
I am just testing a simple flowchart for 16F1824 which still displays:
Code: Select all
File name: D:\HC16f1824Test.c
Generated by: Flowcode v4.3.7.63
Date: Tuesday, May 31, 2011 11:06:29
Licence: Professional
Registered to: Martin
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\HI-TECH Software\PICC\9.80\bin\picc.exe --CHIP=16F1824 -N48 HC16f1824Test.c
HC16f1824Test.c: main()
79: option_reg = 0xC0;
^ (192) undefined identifier "option_reg"
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.80
Copyright (C) 2010 Microchip Technology Inc.
(890) Your evaluation period has ended. To continue to experience maximum performance, contact HI-TECH Software to purchase a license. (warning)
(1273) Omniscient Code Generation not available in Lite mode (warning)
(908) exit status = 1
Return code = 1
Code: Select all
#define option_reg option
Code: Select all
Launching the compiler...
C:\Program Files\HI-TECH Software\PICC\9.80\bin\picc.exe --CHIP=16F1824 -N48 HC16f1824Test.c
HC16f1824Test.c: main()
79: OPTION = 0xC0;
^ (192) undefined identifier "OPTION"
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.80
Copyright (C) 2010 Microchip Technology Inc.
(890) Your evaluation period has ended. To continue to experience maximum performance, contact HI-TECH Software to purchase a license. (warning)
(1273) Omniscient Code Generation not available in Lite mode (warning)
(908) exit status = 1
Return code = 1
http://www.matrixmultimedia.com/mmforum ... 654#p23652
Any other things I could try please?
- Attachments
-
- HC16f1824Test.fcf
- (3.5 KiB) Downloaded 347 times
Martin
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: HiTech compiler error
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: HiTech compiler error
Great! it works!Benj wrote: You could try this to see if this helps.
Code: Select all
#define option_reg OPTION_REG
Thanks Ben for the fast solution.

I had a quick look at the definitions.h file
I have noticed you have 584 lots of:
Code: Select all
#define option OPTION
Code: Select all
#define option_reg OPTION_REG
Where as before they did not.
Not saying will work for the ones not tested, but I though you may want to know?
Martin
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: HiTech compiler error
Hi Martin,
Great thanks for letting me know. I will take some steps for the update so the extra definitions are not needed when using HiTech.
Great thanks for letting me know. I will take some steps for the update so the extra definitions are not needed when using HiTech.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel