HiTech compiler error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
keshav@solus.in
Posts: 19
Joined: Tue Sep 07, 2010 7:03 am
Contact:

HiTech compiler error

Post 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,
Attachments
COMPILERERROR.JPG
(103.2 KiB) Downloaded 3651 times
COMPILITAIONERROR.JPG
(88.99 KiB) Downloaded 3651 times
String RECEIVE.fcf
(8 KiB) Downloaded 383 times

User avatar
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

Post 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.[*]

User avatar
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

Post 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.
Attachments
definitions.zip
(247.07 KiB) Downloaded 661 times

User avatar
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

Post 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

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: HiTech compiler error

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

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: HiTech compiler error

Post 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?
Attachments
HC16f1824Test.fcf
(3.5 KiB) Downloaded 321 times
Martin

User avatar
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

Post by Benj »

Hello,

You could try this to see if this helps.

Code: Select all

#define option_reg OPTION_REG

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: HiTech compiler error

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

User avatar
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

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

Post Reply