Flowcode versions V4.2 or later now come capable of generating code that is compatible with the HITECH C 10F-12F-16F & 18F compilers. To allow Flowcode to work with the HITECH compiler you must first install the compiler onto your hard drive. The latest version of the HITECH compiler can be downloaded from here https://www.htsoft.com/. The compiler allows you to use it with no restrictions for 45 days. After the 45-day period is over the compiler will change to the lite version which does not optimise the code as much as the pro version does.
Once you have installed the compiler you need to point Flowcode to the HITECH installation directory to allow the compiler to be referenced by Flowcode. To do this open Flowcode and then click on the "build" menu and select "compiler options".
In here you will need to replace the information in the different tab sections with the following information ensuring that the paths are correct for your installation of HITECH.
If your using a 10F, 12F or 16F target
Compiler Location = C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe
Params = --CHIP=%p -N48 %f.c
If your using a 18F target
Compiler Location = C:\Program Files\HI-TECH Software\PICC-18\PRO\9.63\bin\picc18.exe
Params = --CHIP=%p -N48 %f.c
If your using a Matrix target with Matrix USB bootloader eg MIAC, ECIO
Compiler Location = C:\Program Files\HI-TECH Software\PICC-18\PRO\9.63\bin\picc18.exe
Params = --CHIP=%p -N48 %f.c --CODEOFFSET=800h --ROM=default,-0-7FF --OUTPUT=inhx032
The next two text boxes control the linker settings and require the following information. You should ensure that the path to the Flowcode directory is correct.
Linker Location = C:\Program Files\Flowcode\V5\Tools\DoNothing\DoNothing.exe
Linker Parameters =
Following are a few things to look out for when using the HITECH compiler. Otherwise you will receive the message "Unrecognised File Type" when trying to compile.
1) There must be no spaces in the Flowcode filename.
2) There must be no punctuation in the Flowcode filename.
3) The Flowcode filename must not start with a number.
If you are using the ICD functionality with the HITECH compiler then you must ensure that the communications speed in the project options is set to approx 3x what it would be for the default BoostC speed. For example at a clock speed of 19660800Hz the default ICD rate is 9. Multiplying 9 by 3 gives a rate of 27, which will allow the ICD to work when compiled with HITECH.
If you wish to restore the Flowcode settings to the default BoostC compiler, you can simply click the "restore defaults" button on the "compiler options" screen, or consult the Flowcode help file which contains the appropriate settings.
Using HiTech Compiler with Flowcode v5
- Last update:
- 2015-04-01 10:13
- Author:
- DavidA
- Revision:
- 1.0
You cannot comment on this entry