EmbeddedRelated.com
Forums

Mplab Microchip problem

Started by Dan December 4, 2004
I use Mplab 6.3 for programming. I also installed piclite.exe for have
a  C compiler for my code (generic is asm compiler).
   I use 16f876a. When i compile my design MpLab give me an error:

   --
Executing: "C:\PICCLITE\BIN\PICL.EXE" -C -E"lab1p1.cce" "lab1p1.c"
-O"lab1p1.obj" -I"C:\PICCLITE\lib" -Q -MPLAB -16F876A
Error[000]   : Unknown flag -16F876A
Halting build on first failure as requested.
BUILD FAILED:
   --
   
  I dont know why. It is a  simple program. I included lib "pic.h" 
  This lib is for all pic in family 16f8xx/xxa. If I put 16f877 or
16f877a for synthesis my programm work, but if I put anything else,
like 873/874/876/a it no more work.

  Please help...


  Thanks,
dan.costin@gmail.com (Dan) wrote:

>I use Mplab 6.3 for programming. I also installed piclite.exe for have >a C compiler for my code (generic is asm compiler). > I use 16f876a. When i compile my design MpLab give me an error: > > -- >Executing: "C:\PICCLITE\BIN\PICL.EXE" -C -E"lab1p1.cce" "lab1p1.c" >-O"lab1p1.obj" -I"C:\PICCLITE\lib" -Q -MPLAB -16F876A >Error[000] : Unknown flag -16F876A >Halting build on first failure as requested. >BUILD FAILED: > -- > > I dont know why. It is a simple program. I included lib "pic.h" > This lib is for all pic in family 16f8xx/xxa. If I put 16f877 or >16f877a for synthesis my programm work, but if I put anything else, >like 873/874/876/a it no more work.
Quoted directly from HI-TECH's PICC Lite web page: "HI-TECH Software is pleased to announce the release of a totally free ANSI C compiler to support selected Microchip devices. The HI-TECH PICC Lite compiler is a freeware version of our industrial-strength PICC compiler and supports the 16F877, 16F877A, 12F675, 12F629, 16F627, 16F627A, 16F684, 16C84, 16F84 and 16F84A devices." The 16F876A is not among the devices supported by the free compiler. The demo version supports that device, albeit with a few limitations and will expire after some time. -- Dan Henry
On Sat, 04 Dec 2004 14:34:15 -0700, Dan Henry <dhenry@sprynet.com> wrote:

>dan.costin@gmail.com (Dan) wrote: > >>I use Mplab 6.3 for programming. I also installed piclite.exe for have >>a C compiler for my code (generic is asm compiler). >> I use 16f876a. When i compile my design MpLab give me an error: >> >> -- >>Executing: "C:\PICCLITE\BIN\PICL.EXE" -C -E"lab1p1.cce" "lab1p1.c" >>-O"lab1p1.obj" -I"C:\PICCLITE\lib" -Q -MPLAB -16F876A >>Error[000] : Unknown flag -16F876A >>Halting build on first failure as requested. >>BUILD FAILED: >> -- >> >> I dont know why. It is a simple program. I included lib "pic.h" >> This lib is for all pic in family 16f8xx/xxa. If I put 16f877 or >>16f877a for synthesis my programm work, but if I put anything else, >>like 873/874/876/a it no more work. > >Quoted directly from HI-TECH's PICC Lite web page: > > "HI-TECH Software is pleased to announce the release of a > totally free ANSI C compiler to support selected Microchip > devices. The HI-TECH PICC Lite compiler is a freeware version > of our industrial-strength PICC compiler and supports the > 16F877, 16F877A, 12F675, 12F629, 16F627, 16F627A, 16F684, > 16C84, 16F84 and 16F84A devices." > >The 16F876A is not among the devices supported by the free compiler.
But you should be able to compile for a 16F877 and put the code in an 876 as the only difference with the 876 is some pins not present.