jondaeh
stranger
Reged: May 31 2009
Posts: 2
|
|
Hi!
I'm trying to make a program for a UBW32 dev. board from Sparkfun(which has the PIC32 chip). I got a Pickit2 and using Hi-Tide v3.15 for creating the code.
However, when trying to build, I get an error saying couldn't find htc.h. I understand that this is a file that makes the process of configuring all PICs easier, great! However C-wiz included this file automatically. Do I have to download the file from somewhere and put it in the directory of the project?
Thanks!
Jon, Norway.
This is the code for the main file:
Code:
#include "init.h" // included by C-Wiz #include "htc.h"
void int main(void) { init(); // Function call inserted by C-Wiz mPortEToggleBits(0x40) return 0; }
Edit: The htc.h disappeared from the includes. Guess the HTML don't like < > . Just replaced them with "".
|
LateDeveloper
Tester - PICC PRO

Reged: Aug 21 2007
Posts: 502
|
|
re-install HiTide, this is an old problem with 3.15, on only one of many such problems I have when running it on my O.S. Which is why I am running 3.13.
|
jondaeh
stranger
Reged: May 31 2009
Posts: 2
|
|
I tried making the same program in MPLab (v8.30), by importing the init.c and init.h files generated by c-wiz in HI-Tide. MPLab neither found the htc.h file. I searched the computer for htc.h, and it does exist under:
../HI-Tech software/picc32/pro/9.60/include
So I can't see why the compiler halts on it.
I tried re-install HiTide 3.15, but it didn't do any difference. Now I installed 3.13 instead, but it won't find any compiler:P Does 3.13 support PIC32 anyways?
By the way, is there some kind of tool in MPLab which can generate the config code for the chip? Maybe it would help if I abandon HI-Tide?
I'm running XP.
Jon.
|
LateDeveloper
Tester - PICC PRO

Reged: Aug 21 2007
Posts: 502
|
|
Install the compiler at the same time as HiTide, you will have to delete all references to the old editor and compiler first, should work.
You will need to delete all references in Documents and settings to .hitide_3.13, as well as your install directory.
|
daveob
stranger
Reged: Jul 16 2009
Posts: 4
|
|
sounds like 3.13 is worth a try. where can i get a copy? anyone fancy putting a copy on www.drop.io?
thanks all.
|
lucky
Microchip staff
   
Reged: Oct 06 2003
Posts: 1215
Loc: Brisbane, Australia
|
|
Quote:
sounds like 3.13 is worth a try. where can i get a copy?
HERE
-------------------- Matt Luckman
|