Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

need help on setting up Hi-Tech with MPLAB !

Status
Not open for further replies.

donkey41

Full Member level 1
Full Member level 1
Joined
Feb 19, 2002
Messages
99
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Location
Pakistan
Activity points
949
16f877 build failed trace

hello everybody,

I think i need some help in integrating HT picc compiler with mplab.
I have set up MPLAB for HT PICC but even with compiler supplied sample code for LED.C it does not work and exits as follows:

Executing: C:\HT-PIC\BIN\PICC.EXE -Q -MPLAB -C -16F877 led.c -Oled.obj -Eled.cce -G
Halting build on first failure as requested.
BUILD FAILED

i have tried on both 6.xx and 5.7x version of MPLAB.
I have also tried on its own DOS mode, but it is very difficult to trace any messege there. Only thing which I can read is:

Exit status = 4

what is wrong ?
Is there any solution ?

thanks

PS:
I have read the small tutorial on www.microchipc.com and tried to setup, but the result was not successfull ...
 

CADDevil

Member level 5
Member level 5
Joined
Jun 26, 2001
Messages
80
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
649
Are you sure that your compiler is registered correctly ?
 

CADDevil

Member level 5
Member level 5
Joined
Jun 26, 2001
Messages
80
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
649
Ooops, I sent previous message unfinished.

Firstly, try from DOS window:

PICC -version

or

PICC18 -version


Secondly, I suppose that you can catch all messages from the command line version when you pipe them to some text file. Use something like:

C:\HT-PIC\BIN\PICC.EXE -Q -C -16F877 led.c -Oled.obj -Eled.cce -G > output.txt

and examine the file "output.txt" with text editor.
 

btbass

Advanced Member level 5
Advanced Member level 5
Joined
Jul 20, 2001
Messages
1,896
Helped
438
Reputation
880
Reaction score
288
Trophy points
1,363
Location
Oberon
Activity points
12,887
make sure you have set it up using the Project->Install language tool option in MPlab and set up the following enviroment variables on your computer

HTC_ERR_FORMAT Error[000 ] file %f %l : %s
HTC_WARN_FORMAT Warning[000 ] file %f %l : %s

I assume you have set the sample code up as a project and set the language tool suit to Ht Pic?

Then you should be able to build from mplab and get all output from the compiler into the build window.
:D
 

aslm

Advanced Member level 4
Full Member level 1
Joined
May 3, 2002
Messages
119
Helped
7
Reputation
14
Reaction score
2
Trophy points
1,298
Activity points
1,499
Don’t know exactly what the problem is in your case, but check this link for a great step by step instruction on how to integrate PICC with MPLab and create a project.

A lot of more info on this site as well, especially check the FAQ on PICC, there are some limitations and other stuff that is u need to know of when using it.

Se: https://www.microchipc.com/HiTechCtutorial/

regards Me
 

tjalps

Full Member level 5
Full Member level 5
Joined
May 28, 2001
Messages
240
Helped
6
Reputation
12
Reaction score
3
Trophy points
1,298
Location
SLOVENIA
Activity points
1,994
Any help on first question? I need it realy wey much.

Regards!
 

HO2a

Junior Member level 2
Junior Member level 2
Joined
Jun 5, 2003
Messages
23
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
155
Correct HT-PIC Serial Number

Hello,

i was found this problem befor this time,downl load fss serial number generator from https://astalavista.box.sk word search "HI-TECH C"
and put Serial Number with only 5 digit

it is work correctly :wink:

Thank You
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top