Supress "MSG" in compile


+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231

    Default Supress "MSG" in compile

    HI all,
    I know some includes have messages ("MSG") in them to warn the user of quirks. Is there a way to suppress them so they don't come up at the bottom of every compile? It would be nice to not have to close the window every time to get back to full screen.

    Thanks
    bo

  2. #2
    Join Date
    Mar 2016
    Posts
    86

    Default Re: Supress "MSG" in compile

    at the beginning of your code try this:

    Code:
    @ errorlevel -306

  3. #3
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231

    Default Re: Supress "MSG" in compile

    I'm pretty sure your format is correct, ie: @ errorlevel -(something)

    -306 didn't seem to work.

    I'm still getting a Results window on compile. In my case:

    C:PROGRAM FILES (X86)\PBP3_1\DEVICES\PIC16F18324.PBPINC (486) MSG: HPWM command only supports CCP channels (not PWM channels).

    and

    C:PROGRAM FILES (X86)\PBP3_1\DEVICES\PIC16F18324.PBPINC (487) MSG: PPS-Int available. See file PBP_PPS_notes.txt

    Its not that the messages are a hindrance, its that they bring up the window on the bottom that obscures an inch or so of the bottom of the program that I'm trying to debug. Just another step to close it with each iteration while working on the code.

    bo

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    1,748

    Default Re: Supress "MSG" in compile

    -306 didn't seem to work
    -486 and -487 ?

    or edit
    \DEVICES\PIC16F18324.PBPINC
    and comment out the
    messages
    This is more entertaining than Free to Air TV

  5. #5
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231

    Default Re: Supress "MSG" in compile

    So help me understand this... is the number in those statements meant to be a line number?

    I tried to add "@ errorlevel" and the program line for those with MSG info, Only gave me a warning that it was invalid.

    I looked at the .lst file and couldn't find what called or enables those lines. They show up around 2357 and 2358 in my program, but they are just the message, no idea what's calling it.

    I am wondering if there is another call that deals with errorlevel vs. messages? Also have no idea what the number references or if there is something that explains them.

    Thanks for your replies.

    bo

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    1,748

    Default Re: Supress "MSG" in compile

    I am wondering if there is another call that deals with errorlevel vs. messages? Also have no idea what the number references or if there is something that explains them.
    mpasm has three errorlevels 0,1,2 numbered error messages can be supressed -306 -302 etc
    the user messages seem difficult to suppress and the (num) is line number so of no use in suppression

    best option is to edit the pbp device inc file [PIC16F18324.PBPINC] and just comment the offending lines


    for more detail download the mpasm manual pdf from microchip
    Last edited by richard; - 27th October 2020 at 02:04.
    This is more entertaining than Free to Air TV

  7. #7
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231

    Default Re: Supress "MSG" in compile

    Thanks for the explanation.
    bo

Similar Threads

  1. Replies: 0
    Last Post: - 14th November 2013, 04:32
  2. Replies: 1
    Last Post: - 22nd March 2013, 01:44
  3. Replies: 3
    Last Post: - 15th October 2012, 08:06
  4. Compile error & syntax error on the word "loop:" as a label?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th March 2010, 05:14
  5. Compile "opcode"
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 23rd September 2006, 16:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts