Page 1 of 1

HiTech compiler error

Posted: Fri Sep 24, 2010 2:17 pm
by keshav@solus.in
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,

Re: HiTech compiler error

Posted: Fri Apr 01, 2011 5:15 pm
by Benj
Hello,
1)Why PIC16F1933 microcontroller flowcode program does not compiling using default BOOSTC compiler,
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.
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 ,
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.
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,
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.
4)Generated c code downloaded into into PIC16F1933 microcontroller using MPLAB working environment, but development board does not working properly,
Can you specify what is not working? Could it be your configuration settings?
5)please send me the updated 16f1933 FCD file for pic16F1933 micro controller using default BOOSTC compiler,
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.[*]

Re: HiTech compiler error

Posted: Mon Apr 04, 2011 10:57 am
by Benj
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.

Re: HiTech compiler error

Posted: Mon Apr 04, 2011 11:38 am
by Benj
If anyone gets this message....
option_reg = 0xC0;
^ (192) undefined identifier "option_reg"
Then this can be fixed by using the supplementary code window via the View -> Project options menu and adding the following definition.

Code: Select all

#define option_reg option
It seems HiTech has renamed some of the "option_reg" registers to "option".

PIC16F1933 for example is now working correctly :D

Re: HiTech compiler error

Posted: Sun Apr 17, 2011 9:11 am
by medelec35
Also if getting errors like:

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
Then see:
http://www.matrixmultimedia.com/mmforum ... 692#p22692

Re: HiTech compiler error

Posted: Tue May 31, 2011 11:23 am
by medelec35
Hi all,
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
Adding

Code: Select all

#define option_reg option
Just gives following error:

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
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?

Re: HiTech compiler error

Posted: Tue May 31, 2011 1:39 pm
by Benj
Hello,

You could try this to see if this helps.

Code: Select all

#define option_reg OPTION_REG

Re: HiTech compiler error

Posted: Tue May 31, 2011 2:36 pm
by medelec35
Benj wrote: You could try this to see if this helps.

Code: Select all

#define option_reg OPTION_REG
Great! it works!

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
I have replaced all with:

Code: Select all

#define      option_reg       OPTION_REG
Now a few different devices (e.g 16F1936 & 16F1824)compile without adding any #defines to supplementary code window.
Where as before they did not.
Not saying will work for the ones not tested, but I though you may want to know?

Re: HiTech compiler error

Posted: Tue May 31, 2011 3:07 pm
by Benj
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.