Help with 16F873 "Out of Memory" problem.


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2004
    Location
    New England
    Posts
    164

    Default Help with 16F873 "Out of Memory" problem.

    Hi all,
    Having an odd problem with a 16F873. I'm working on a program, compiling sections as they are finished to check for mistakes.
    I compiled the program and got the usual [102] warning about the page boundary, with 2610 words used.

    Then I added a single instruction, and I get a "FATAL ERROR: Out of Memory" message!

    This is a 4K device, so there is lots of room left. I tried putting all the variables in 'bank0' - but that didn't help. Subroutines are all up at the top of the code.

    Any ideas??
    Thanks,
    Arch

    Here are the messages from PM...

    C:\PBP>pbp -p16f873 zglcd8-1.bas
    PicBasic Pro Compiler 2.44, (c) 1998, 2003 microEngineering Labs, Inc. All Rights Reserved.
    PM Assembler 4.06, Copyright (c) 1995, 2003 microEngineering Labs, Inc.
    Warn C:\PBP\ZGLCD8-1.ASM 1157 : [102] Code Crosses Boundary @ 800h
    2613 words used.

    >>>>

    C:\PBP>pbp -p16f873 zglcd8-1.bas
    PicBasic Pro Compiler 2.44, (c) 1998, 2003 microEngineering Labs, Inc.
    All Rights Reserved.

    FATAL ERROR: Out of Memory.

    C:\PBP>

  2. #2
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default Re: Help with 16F873 "Out of Memory" problem.

    Duuuhhh... RTFM!!

    For anyone else with the same problem - use "pbpw" in a DOS shell.

    Wish they had made that a bit more obvious in the manual!!

    Thanks,
    Arch

  3. #3
    Join Date
    Jun 2004
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    Did that one myself!

  4. #4
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Arch!

    Arch>>Duuuhhh... RTFM!!

    For anyone else with the same problem - use "pbpw" in a DOS shell.<<

    <chuckle>... I remember doing that one myself when I first started. <g> Thats what makes things interesting...

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    what about if you use MPASM instead... i've never got this kind of problem here. Can you attach your code ?

    and did you read this thread from Melanie?
    http://www.picbasic.co.uk/forum/show...=&threadid=555
    Last edited by mister_e; - 29th December 2004 at 16:40.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Hey guys - good to know I'm not the only one! :-)

    I had checked Melanie's post - that's how I finally got on the way to figuring it out (I read PM.txt - didn't even know it existed!)

    I've had waaaay too many "[300]" errors :-(

    Thanks,
    Arch

Similar Threads

  1. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  2. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  3. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  4. PIC18F2620 "out of memory"??
    By Ron Marcus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 3rd January 2006, 01:01
  5. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59

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