Using MPLAB IDE 8.33 PBP 2.6
This is the first part of my code, where using any or all three of the 1st three lines after the 'Variable Definitions line causes PBP to crash just after the Compiler starts with the usual Microsoft Program Error Window message " PicBasic Pro Compiler Console Application has encountered a problem and needs to close. We are sorry for the inconvenience. ".
Commenting all three out allows the Compile to continue. Changing the names to
CA var byte
RA var byte
DA var byte
still causes a crash.
PBP Code Source
' I2CREAD and I2WRITE Commands
' Rewrite for PIC10F202 on MCD23008/MCO23S08 Evaluation Board ' I2CREAD and I2WRITE Commands 'Rewrite for PIC10F202 on MCD23008/MCO23S08 Evaluation Board
Include "modedefs.bas" ' Include serial modes
@ __config _WDT_ON & _MCLRE_ON & _CP_OFF & _IntRC_OSC
'Variable Definitions
' ContAddr var byte 'MCP23008 Control Register (OpCODE) byte
' RegAddr var byte 'MCP23008 Register Address byte
' Databyte var byte 'Data byte
TempData var byte
SerOutData var byte
ReadData var byte 'used to hold serial out data
CR CON 13
If the 3 above lines are commented out, the Compiler & Assembler (MPASM) runs but get Compiler msg "Cannot allocate TempData" and Cannot allocate Seroutdata"
reddog45
Bookmarks