MPLAB 8.33-PBP 2.6 Crash error msg


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Location
    San Francsico
    Posts
    3

    Default MPLAB 8.33-PBP 2.6 Crash error msg

    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

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Ooooo, that's an ugly crash.
    Verified.

    But, the 10F202 only has 24 bytes of RAM.
    PBP will use 20 of those for system variables. which leaves 4 bytes for the user.

    You can un-comment one more of those variables, then the RAM's full.
    <br>
    DT

Similar Threads

  1. Replies: 14
    Last Post: - 19th January 2012, 19:38
  2. MPLAB and PBP ...
    By Acetronics2 in forum Off Topic
    Replies: 4
    Last Post: - 28th August 2008, 20:51
  3. pbp --> mplab broken again
    By kenif in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th December 2006, 18:57
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. PBP / XP Crash
    By pondindustrial in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2005, 03:16

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts