Strange compiler warning when WDT disabled

An area to discuss 8-bit PIC specific problems and examples

Moderator: Benj

Post Reply
crispin12
Posts: 51
Joined: Fri Apr 07, 2017 5:51 pm
Has thanked: 6 times
Been thanked: 11 times
Contact:

Strange compiler warning when WDT disabled

Post by crispin12 »

Flowcode v7.1.1.0 (yes I realise its out of date and should be upgraded)
PIC18F45K80
My project is compiling but the config settings are giving a warning from the compiler. Haven't seen this before and wondering why the semantics are not readable.

36:__config("__PROG_CONFIG", "pic18", 0x2, 0x74F8);
^ (1386) unable to determine the semantics of the configuration setting "WDTPS" for register "CONFIG2H" (warning)

Just wondering?

I see there was a similar post for PIC18F26K80 compiler error
Postby minolta » Mon Jul 02, 2018 8:29 pm

In that case the compiler gave an error, I only have a warning but as the two chips are similar ........?
I see Ben posted an update that fixed minolta's issue but was that an update for Flowcode 7 or Flowcode 8? I will do the update to the the latest v7 if that fixes the anomaly.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Strange compiler warning when WDT disabled

Post by Benj »

Hello,

If you don't fancy upgrading to 7.3 then it might be worth you downloading the zip file from the link below and simply updating the specific FCD (Flowcode Chip Definition) file your using. This should give you the latest fixes to the definition file without touching anything else.

viewtopic.php?f=63&t=19743

crispin12
Posts: 51
Joined: Fri Apr 07, 2017 5:51 pm
Has thanked: 6 times
Been thanked: 11 times
Contact:

Re: Strange compiler warning when WDT disabled

Post by crispin12 »

Thanks Ben

I did as you suggested and copied the latest fcdx file for the chip into my system, but when I booted up Flowcode, opened the design and recompiled, I'm getting exactly the same warning message. Could there still be an error in the file relating to the WDT?

Thanks for the help.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Strange compiler warning when WDT disabled

Post by Benj »

Hello,

Please go into the Build -> Project Options Menu and click on the Configure tab.

Under Watchdog Postscaler ensure that the value looks valid. If it's just a number there then it's not got a valid value from the list.

Problem config entry
ConfigProb1.jpg
ConfigProb1.jpg (8.39 KiB) Viewed 4977 times
Ok config entry
ConfigProb2.jpg
ConfigProb2.jpg (6.18 KiB) Viewed 4977 times
Hope this helps.

Post Reply