Warning Message[221]


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Ohio
    Posts
    29

    Default Warning Message[221]

    When I compile my project I'm getting the 'WARNING[221] c:\pbp\18f452.inc 18 : Invalid message number (231)'

    Does anyone know what this message is about? Is it anything I should be concerned with?

    Thanks,
    Mark

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


    Did you find this post helpful? Yes | No

    Default

    Look at line 18 in your c:\pbp\18f452.inc file.

    LIST p = 18F452, r = dec, w = -311, w = -230, f = inhx32

    Kind of sounds like you might have 231 VS 230 in the line above?

    230 supresses the aggravating message about __CONFIG has been
    deprecated for PIC18 devices.
    Regards,

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

  3. #3
    Join Date
    Feb 2006
    Location
    Ohio
    Posts
    29


    Did you find this post helpful? Yes | No

    Default

    Hi Bruce,

    That appears not to be the problem. I have checked my .inc file and that line looks like this - LIST p = 18F452, r = dec, w = -311, w = -230, f = inhx32

    Mark

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


    Did you find this post helpful? Yes | No

    Default

    Post your code and all of the inc file.

    If I remember correctly there is not an error code 231. We will need to see what is being compiled to figure this out.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Which version of MPASM are you using?
    Regards,

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

  6. #6
    Join Date
    Feb 2006
    Location
    Ohio
    Posts
    29


    Did you find this post helpful? Yes | No

    Default

    Bruce,

    That was the problem, I was using an older version. Works fine now with the new version.

    Thanks,
    Mark

Similar Threads

  1. Warning (and other Compilation Error) Messages
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 6
    Last Post: - 9th September 2009, 01:29
  2. Warning 221 after upgrade to ver 2.50a
    By tcbcats in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th April 2008, 05:56
  3. Compiler warning
    By ruijc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th February 2008, 18:35
  4. Advice please - Warning message
    By malc-c in forum mel PIC BASIC Pro
    Replies: 50
    Last Post: - 23rd January 2007, 13:20
  5. CONFIG directive warning help
    By josegamez in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th August 2006, 20:02

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