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.

help to clear the error

Status
Not open for further replies.

praveen_palaparthi

Full Member level 1
Joined
Feb 15, 2008
Messages
98
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
2,214
pic16f887 devices.ini,

Hi i am using hitech c complier for PIC 16F886 controller it is giving error message as
chip "16F886" not present in chipinfo file "C:\Program Files\HI-TECH Software\PICC\9.50\dat\picc.ini" please tell what to do.
 

pic16f88x.h

The Pic16F88X micros are fairly new and your compiler must pre-date them.
If you look in the '\PICC\dat\' folder, you will see a file called 'picc.ini'.
This is just a text file that describes the core type and memory ranges of the micros.
Attached is a text file containing the specs for the Pic16f88x series.
Just copy and paste this into your picc.ini file and save it.
 

pic16f887.h

Sir i coped the speci of 16f886 to config.inn file and use but error is coming as undefined parameter FLASH_READ in .inn file help me what to do.
 

pic16f887 include files

The FLASH_READ is just a flag to let the compiler know that the micro can read/write to it's own flash program memory.
Attached is the header file for the Pic16f88x micros and the 'pic.h' file that includes it.
Make a backup of your 'pic.h' file then save these 'pic.h' and 'pic16f887.h' to the
'\PICC\include\' directory.
The 'pic.h' file will define FLASH_READ and the 'pic16f887.h' will define the registers for your device.
It should then compile ok.

You should have no problems with this, the compiler is the same, you are just defining more variant devices.

If all else fails, you can saftely delete the flash read write lines from the 'picc.ini' file, unless of course, you want to read and write to program flash memory from within your program?
 

pic.h file hitech

Sir i have done but error is coming like that...undefined FLASH_WRITE like that....what shall i do i even deleted the Attributes FLASH_WRITE but _o option is missing error is coming.
 

flash_read() hi tech c

Compile your program post the full build window output here.
We will try to figure out the error.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top