Error - Fatal Out Of Memory ( With Array)


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Posts
    3

    Default Error - Fatal Out Of Memory ( With Array)

    Hi all

    I have this error compiling my program (PIC16F84A)

    *****************************************
    DEFINE OSC 4

    INCLUDE "modedefs.bas"

    OUTPUT PORTB.4
    OUTPUT PORTB.5
    OUTPUT PORTB.6
    OUTPUT PORTB.7

    VALOR_DISP var byte[4]

    VALOR_DISP[0] var PORTB.4
    VALOR_DISP[1] var PORTB.5
    VALOR_DISP[2] var PORTB.6
    VALOR_DISP[3] var PORTB.7


    END

    ERROR:
    FATAL OUT OF MEMORY (pbpw.exe)

    ***********************************************

    This code is for send to array (VALOR_DISP) a 4-bit (0010) code for 7-segment display
    and sendit to pins

    I test my program per parts, and in variable declarations VALOR_DISP[x] VAR PORTB.x
    the program crash.

    I dont write any code after this ( fortest purpose ). Only this minimal code get this error

    Whats happens guys ????

  2. #2
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    You cannot define
    VALOR_DISP var byte[4] as BYTE

    VALOR_DISP var PORTB.4 and in the same time as an ALIAS.

    You should use an other Variablename for aliasing a PORTPIN.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Simple Array Demo
    By Archangel in forum Code Examples
    Replies: 5
    Last Post: - 15th February 2010, 04:46
  3. RS232 receive an array (packet)
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th February 2008, 05:02
  4. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  5. Replies: 4
    Last Post: - 2nd March 2007, 06:12

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