I am trying to get a simple pic project working and have run into what I think is a bug in the way Picbasic Pro tries to select which bank in the 12f617. First I will list the version of programs I am using.
Microcode studio 4.0.0.0
Compiler Pic Basic Pro 2.60a
MPLAB IDE 8.53.00.00
I have the studio set to 12f617 for the chip being used and to use the MSAPM listing file and Macro expansion (I turned off quite mode) so that maybe I could get more info on the error messages. In the assembler tab its set to Use MPASM, also list file and macro, no quiet.
I get the following error(s) when I try to compile my program.
Message[303] c:\pbp\12f617.inc 22 : Program word too large. Truncated to core size. (FF54)
Error[113] c:\pbp\pbppic14.lib 7768 : Symbol not previously defined (RP1)
Error[113] c:\pbp\pbppic14.lib 7769 : Symbol not previously defined (RP0)
Error[113] c:\pbp\pbppic14.lib 465 : Symbol not previously defined (RP0)
Error[113] c:\pbp\pbppic14.lib 451 : Symbol not previously defined (RP0)
Error[113] c:\pbp\pbppic14.lib 517 : Symbol not previously defined (RP0)
Message[303] c:\pbp\samples\test-c~1.asm 128 : Program word too large. Truncated to core size. (FF54)
Here is my basic code window.
I changed the header file a bit, here it is.Code:PAUSE 2000 ANSEL = %00000000 CMCON0 = 7 CMCON1 = 7 ADCON0 = %00000000 INTCON = 0 GPIO = %000000 TRISIO = %000000 Main: GPIO.0 = 0 IF GPIO.3 = 1 THEN Main GPIO.0 = 1 'TEST LED IS TURNED ON HERE PAUSE 2000 GPIO.0 = 0 'TEST LED IS TURNED OFF HERE GOTO Main End
Any hints to help me get this little project off the ground greatly appreciated.Code:;**************************************************************** ;* 12F617.INC * ;* * ;* By : Leonard Zerman, Jeff Schmoyer * ;* Notice : Copyright (c) 2010 microEngineering Labs, Inc. * ;* All Rights Reserved * ;* Date : 05/12/10 * ;* Version : 2.60a * ;* Notes : * ;**************************************************************** NOLIST ifdef PM_USED LIST include 'M12F617.INC' ; PM header device pic12F617, intrc_osc_noclkout, wdt_on, mclr_on, ioscfs_4mhz, protect_off XALL NOLIST else LIST LIST P = 12F617, r = dec, w = -302 INCLUDE "P12F617.INC" ; MPASM Header __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _IOSCFS_4MHZ & _CP_OFF NOLIST endif LIST BLOCK_SIZE EQU 4 #define EEDATA PMDATA #define EEADR PMADR #define EEDATH PMDATH #define EEADRH PMADRH #define EECON1 PMCON1 #define EECON2 PMCON2




Bookmarks