12F683 RAM Warning


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2007
    Posts
    56

    Default 12F683 RAM Warning

    I got error message like this:
    Warning[219] c:\pbp\pbppic14.lib 892 : Invalid RAM location specifed

    The program works, but should I disregard the warning?
    Where can I find explanation about all warning/error messages?

    Thanks,



    Compiler PBP 2.47/MPASM 5.1
    Last edited by Johan; - 17th August 2007 at 05:38.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Johan View Post
    The program works, but should I disregard the warning?
    And not strive for perfect programing?

    In the directory where PBP is installed there is a file "PM.txt" . Has all of the warnings and more.

    You may want to fix the one you have.
    From the PM.txt file:
    219 Collision in HEX File @ Address

    This error indicates that more than one word has been generated for the
    specified ROM address.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jun 2007
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Thanks for reply Mack,

    In a perfect world where we live now, perfect programming is a must

    I made typing mistake in my program, I wrote high portb.5 instead of porta.5 ( there are no portb on 12f683 )
    The program works now .
    Last edited by Johan; - 17th August 2007 at 15:21. Reason: problem is gone

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If you're using MPASM error 219 is shown in the MPASM assembler help file;
    219 Invalid RAM location specified.
    If the __maxram and __badram directives are used, this warning flags use of any RAM locations declared as invalid by these directives. Note that the provided header files include __maxram and __badram for each processor.
    You might have a bad P12F683.INC file. Updating to the latest/greatest version of MPLAB
    with the newest .INC files might cure it.

    If you switch to the PM asembler, and the warning goes away, it seems the problem would
    be the Mchip header file, but it's hard to say without seeing the offending code.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Jun 2007
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Thanks Bruce,

Similar Threads

  1. 12F629 LDR - Light Dependant Resistor
    By Dennis in forum Schematics
    Replies: 15
    Last Post: - 18th February 2010, 22:33
  2. On-Chip RAM
    By DaveC3 in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 28th July 2008, 10:16
  3. Using the DS1302 scratchpad RAM ?
    By Kman in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 16:27
  4. 16F877 RAM Question
    By Art in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 6th August 2005, 11:47
  5. 18f452 tables in ram - code?
    By rshanks in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st October 2004, 05:06

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