PDA

View Full Version : Problem during compilation 16F676



mat janssen
- 6th October 2005, 17:59
I want to use a PIC16F676 with internal clock.
This is what I wrote:
@ DEVICE PIC16F676,INTRC_OSC_NOCLKOUT
@ DEVICE PIC16F676,BOD_OFF
@ DEVICE PIC16F676,MCLR_OFF
@ DEVICE PIC16F676,CPD_OFF
@ DEVICE PIC16F676,PROTECT_ON

DEFINE OSC 4

TRISA = %00010000
TRISC = %00000000

ADCON0 = %00010001
CMCON = 7

The compiler say's:

PM Assembler 4.07, Copyright (c) 1995, 2004 microEngineering Labs, Inc.
Error D:\CDLITEN\PBP246\16F676.INC 15 : [225] Undefined Symbol 'intrc_osc'
*** 1 Error ***
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.

When I look into the inc file of the 16f676 it's there.

Is this a RTFM at my site or ????
Regards.
Mat

mister_e
- 6th October 2005, 18:07
mm... looks weird, don't have any problem here with your snip of code. the available patch for this device is actually..suppose to be, include in the V2.46. But feel free to patch your software to the latest version
http://www.melabs.com/support/patches.htm


try to reinstall your PBP and post your results... sorry :(

mat janssen
- 6th October 2005, 18:27
I reinstaled the compiler, and I pached (what i already a few moths ago did) again and I got the same results.

Then I removed everthing and instaled the compiler again, now without the patch. It's ok now.
There must be a problem in the patch.
I copied all the data of the 16F676 of the non patch. Than I patched again and put the "old" data of the 16F676 back. It still works.

Thanks for the hint.
Mat

mister_e
- 6th October 2005, 18:34
mm interesting! i'd just report this problem to Melabs. i'll post the results here.

mister_e
- 7th October 2005, 02:15
well, no luck. None seems to be able to reproduce the problem.. mmm.

BTW i'd been told there's a new version of the patch comming soon.

mat janssen
- 7th October 2005, 07:05
Thanks, I will wait then for the new patch.
Because I tried the same programm to compile by a friend, and the result was the same after the patch, so I changed it also on his system.