PDA

View Full Version : Supress "MSG" in compile



boroko
- 26th October 2020, 20:48
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

louislouis
- 26th October 2020, 21:42
at the beginning of your code try this:



@ errorlevel -306

boroko
- 26th October 2020, 22:31
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

richard
- 26th October 2020, 23:43
-306 didn't seem to work

-486 and -487 ?

or edit
\DEVICES\PIC16F18324.PBPINC
and comment out the messages

boroko
- 27th October 2020, 01:26
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

richard
- 27th October 2020, 02:00
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

boroko
- 27th October 2020, 02:30
Thanks for the explanation.
bo