I'm busy with another barmy Christmas project but the program size is to big for my handy 12F675's so I want to move upmarket a tad by using a 12F683 which has a 2k program memory. Changing the device name as below:
Throws an error when I compile. 'Error: GCASM: Symbol OSCCAL has not been defined'
Would some kind person please show me the errors of my ways or point me in the general direction of a more friendly device available in a 8Pin SOIC ( I allready have a suitable PCB)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not quite sure what you mean Evan, The line in the #config string is exactly what I'm using which is preventing me from compiling the project. Or, are you telling me to RTDF??? (Read the Datasheet First)
PIC12F683 has no OSCCAL register. Something in code calling the register that does not exist.
Upgrade to latest version of Great Cow BASIC. And/or remove any references to OSCCAL in code that you may have added..
If you have no reference to OSCCAL in the part of your code that we cannot see, then the mostl likely culprit is system.h.. Has it ever been mnodified?
Just tested on clean install of Great Cow BASIC Ver98.01 and I have no error.
Last edit: William Roth 2017-12-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm busy with another barmy Christmas project but the program size is to big for my handy 12F675's so I want to move upmarket a tad by using a 12F683 which has a 2k program memory. Changing the device name as below:
~#chip 12F683,4
~#config MCLRE=OFF, CP=OFF, WDT=OFF, OSC=INTOSC_OSC_NOCLKOUT
Throws an error when I compile. 'Error: GCASM: Symbol OSCCAL has not been defined'
Would some kind person please show me the errors of my ways or point me in the general direction of a more friendly device available in a 8Pin SOIC ( I allready have a suitable PCB)
Datasheet or the PIC microcontroller specific dat file rock
:-)
Not quite sure what you mean Evan, The line in the #config string is exactly what I'm using which is preventing me from compiling the project. Or, are you telling me to RTDF??? (Read the Datasheet First)
Upgrade to the latest build please - as this works on the latest release.
Could be:
updated dat file
the changes to system.h
or, the compiler
Update is the fastest.
PIC12F683 has no OSCCAL register. Something in code calling the register that does not exist.
Upgrade to latest version of Great Cow BASIC. And/or remove any references to OSCCAL in code that you may have added..
If you have no reference to OSCCAL in the part of your code that we cannot see, then the mostl likely culprit is system.h.. Has it ever been mnodified?
Just tested on clean install of Great Cow BASIC Ver98.01 and I have no error.
Last edit: William Roth 2017-12-19