Re: Cannot compile 16F15345
Quote:
ASM ERROR] (Invalid OSC Define.) (0) : Error[101]
ASM ERROR] Symbol not previously defined (PAUSEUSL) (0) : Error[113]
is not a config error , the problem lies in the code not posted , somewhere an
invalid OSC define exists
Re: Cannot compile 16F15345
What jumps out for me is you say you are using a 16 MHz external oscillator, yet in your CONFIG statement you list:
Code:
_FEXTOSC_OFF & _RSTOSC_HFINT32
Your CONFIG should have _FEXTOSC_EHC & _RSTOSC_EXT1X.
Also, since you didn't post the rest of your code, I am taking a guess here. The 16F15345 has an SFR called OSCEN that allows you to turn ON different oscillators. Bit 7 enables your EXTernal OSCillator (EXTOSC), bit 6 enables your HFINTOSC you are using for your Watch Dog Timer (_WDTCCS_HFINTOSC in your CONFIG3).
In my experience, the Compiler will generate totally non-related Errors at times. I would start here.
Re: Cannot compile 16F15345
You guys are right as usual. It had define OSC 64 for historical reasons.
Here's the story: This is the guts for a lung ventilator.
I designed all the boards, and do firmware everywhere else, but another programmer does this one board.
It originally had 18F13K22 with 16Meg PLL to 64, worked great. The other programmer insisted he had to have another UART for debug because he doesn't like to bitbash (even for debug?), and picked this chip as a replacement. I now need to change the simple routine that tests the hardware.
It doesn't run at 64M, max 32, but no one bothers to tell me, and it still has a 16M oscillator :)
Re: Cannot compile 16F15345
Yes, I posted the default. I tried lots of combinations but was trying to get this chip to run at 64 MHZ, when the max is 32.