Log in

View Full Version : __CONFIG depreciated warning messages



ttease
- 1st April 2007, 12:40
Hi,

I get these warnings when I compile for an 18F4431 using MASM:

Warning[230] c:\pbp\18f4431: __CONFIG has been depreciated for the PIC18 devices. Use the directive CONFIG.

I tried this and it went from warnig to errors. Any suggestions or comments. I searched the forums for 'depreciated' but no hits.

thanks

t

BobK
- 1st April 2007, 14:17
Hello ttease,

See this thread http://www.picbasic.co.uk/forum/show...3087#post13087

This should this should help you out.

btw: I found this by searching for Bruce's contributions through the members list.

BobK

ttease
- 1st April 2007, 17:01
Bob,

Thanks for the reply and link but the link is 404 and I'm not sure who Bruce is. Can you spare some more details. Yes, yes, I'm new.

thx

t

Pic_User
- 1st April 2007, 17:09
Hi t,

Wecome to the forum.

I used the forums search engine, pasted in....
Warning[230]
....and found all sorts of interesting information about....
Warning[230]

You will find out who Bruce is. :)
-Adam-

BobK
- 1st April 2007, 20:18
Hi ttease,

Sorry about you getting the error message. Go to the Members list. It's on the same bar above as the Search button. Goto the "B's" and about the 5th or 6th page and you will see BRUCE. Look for posts that Bruce has been on. Around the 6th page about half way down is the posts regarding the deprication stuff.
I just copied and pasted the link. Bruce is one of the "extremely knowledgeable ones" on this forum and also the owner of Reynolds Electronics. www.rentron.com.

HTH,

BobK

Bruce
- 2nd April 2007, 18:21
Hi T,

Here's a link directly to that thread; http://www.picbasic.co.uk/forum/showthread.php?p=13087#post13087

You can upgrade to the latest version of PBP to get rid of this particluar
warning message. MeLabs has changed default device header files to include
the command line switch that disables this.

From the PBP 2.47 18F4431.INC;

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

The w = -230 disables this message.

Look in your MPASM Assembler help file under Warning Messages for details.

As I mentioned in the above thread, Microchip has now made this mandatory
for the PIC18FXXJ parts, so it's a good idea to look into/understand this one.

If you have a version of PBP that now supports the PIC18FXXJ parts, you'll
notice the default device header files for these don't include the w = -230,
and have config fuse options using the CONFIG VS __CONFIG option.

Here's how it looks in the 18F44J10.INC file;

LIST p = 18F44J10, r = dec, w = -311, f = inhx32
INCLUDE "P18F44J10.INC" ; MPASM Header
CONFIG XINST = OFF
CONFIG FOSC = HS
CONFIG WDTPS = 512

A list of config options for each part can be found in your MPLAB directory in
each 18F parts device specific .INC file.