Page 1 of 1

Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Mon May 23, 2011 9:53 pm
by HjH
Hello

I will write a program for the PIC 16F136.

My problem is I only found the 16LF1936 and if I configure the Chip I get the error
"Unrecognised chip on command line: <PIC16LF1936>"

Please can you help me

Re: Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Mon May 23, 2011 10:30 pm
by HjH
Hello

the same error occurance with the PIC 16LF1933, -1934, -1936, -1937, -1938 and PIC 16LF1939

Re: Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Tue May 24, 2011 9:27 am
by DavidA
hello,

for the 16LF series you need to use the free hitech compiler.

Instructions on how to do this are available here: http://www.matrixmultimedia.com/mmforum ... =26&t=6812

Re: Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Tue May 24, 2011 10:19 am
by medelec35
Dave, Could the problem be caused by 16LF1936 not added to PPP.
But 16F1936 is.

So if the HjH adds the 16F19xx fcd range to Matrix Multimedia\Flowcode V4\FCD
Then re-selcts 16F1936 this may solve the poblem?

Martin

Re: Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Sun Jun 05, 2011 10:52 pm
by HjH
Hello

the download couldn't correct the problem and the HI-TECH compiler say error "not defined identifier/variable "OPTION" " . I have now a PIC 16LF1937 and 16LF1939

Please can you help me

Re: Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Sun Jun 05, 2011 11:00 pm
by medelec35
You need to change

Code: Select all

 #define      option       OPTION
with

Code: Select all

#define    option_reg       OPTION_REG 
in the definition file to for your target device.
See:
http://www.matrixmultimedia.com/mmforum ... 253#p24859

Martin

Re: Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Tue Jun 07, 2011 10:50 pm
by HjH
Hi

if I change "#define option OPTION" with "#define option_reg OPTION_REG" the same error occure.

If I change "option_reg = C0" with "OPTION_REG = C0" then I have no error

What I am doing wrong.

Re: Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Wed Jun 08, 2011 4:27 am
by medelec35
It could be you have a different version of Hitec perhaps?
Developer could have changed the way Hitec compiler works on a new revision, but that's only a guess.
Can you post the contents of error file e.g

Code: Select all

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
The only other thing I can think off is:
Go into the Hitec include folder e.g

Code: Select all

C:\Program Files\HI-TECH Software\PICC\9.80\include
if 32bit windows
open pic16F1936.h with a text editor, and do a search for

Code: Select all

option
In my file I have:

Code: Select all

// Register: OPTION_REG
// Option Register
volatile unsigned char           OPTION_REG          @ 0x095;
That's why

Code: Select all

#define    option_reg       OPTION_REG
I believe the upper case word of OPTION_REG within Flowcode definitions file,
has to match upper case word of OPTION_REG within pic16F1936.h
So you may need to check they match 100%

It you can't get it to work still, I wont be able to help you any more, so will have to leave to the experts like Ben.


Martin

Re: Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Wed Jun 08, 2011 12:37 pm
by Benj
Hello,

Here is a new definitions file to try. This should be copied into your Flowcode/FCD folder before starting Flowcode. Once you have done this you should no longer require any definitions to be placed into the supplementary code window.

Right click the link and select save as.

http://www.matrixmultimedia.com/software/definitions.h

Let me know how you get on.

Re: Error "Unrecognised chip on command line: <PIC16LF1936>"

Posted: Fri Jun 10, 2011 10:16 pm
by HjH
Hi,

thank you for the help. The chip is running