Unable to fit variable XXX in requested bank 0


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Unable to fit variable XXX in requested bank 0

    But this is not what is written in par 7.3 (RAM Allocation) of the manual. One can read in the middle of the page "If specific bank requests are made, those are handed first". Bug or misunderstanding from myself ? I don't know.
    I don't know but the way I understand and interpret it is that between user variables that HAVE specific bank requests and those that don't the first ones ARE handled first - but still AFTER the PBP system variables have been allocated space.

    So, if PBP needs 74bytes in BANK0 you can specify 22bytes to be in BANK0 (if it happens to be 96bytes). If you try to specify a 23'rd byte in BANK0 it can't do that.

    /Henrik.

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Unable to fit variable XXX in requested bank 0

    Same here. And you can confirm that looking at .LST file.

  3. #3
    Join Date
    May 2009
    Location
    Saint-Quentin-en-Yvelines, FRANCE
    Posts
    82


    Did you find this post helpful? Yes | No

    Default Re: Unable to fit variable XXX in requested bank 0

    Well, well, well

    I have done some screen copies of my disassembly listing.
    Unfortunately the version of my program for which I had some warning messages is no more available but, however, we can address the issue with these examples.

    On the first page one can see the system variables (Flags, R0, R1, R2 ...) starting at 00H and in my case ending at 32H.
    They do not take so much room.

    The second page is an extract of the space which should be dedicated to BANK0 variables plus others if room is available.
    The BANK0 goes up to FFH. I have no problem with "squatting variables" which feel well there but I am concerned when they stay if other more critical variables with a formal BANK0 declaration need to be there.

    And believe me or not when the warning message raised I had some BANK0 variables at 102H and 104H and non BANK0 labelled variables inside the BANK0 space. This is what I have observed.

    Anyway, placing some non critical variables in BANK1 or elsewhere looks as being a good solution. In my case it works.

    Best regards

    MikeBZH
    Attached Images Attached Images

Similar Threads

  1. Unable to fit variable
    By lerameur in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 29th November 2010, 20:34
  2. incorrect requested number of data bytes recieved
    By doxdlite in forum mel PIC BASIC
    Replies: 0
    Last Post: - 17th April 2010, 22:47
  3. Unable to pass a variable to LCDOUT without getting compile errors
    By Ferroto Baggins in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th February 2010, 16:43
  4. unable to fit variable?
    By MOUNTAIN747 in forum General
    Replies: 4
    Last Post: - 4th February 2010, 20:20
  5. Fatal xxx.ASM 527: [308] macro buffer overflow
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th March 2009, 17:51

Members who have read this thread : 0

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