Page 1 of 1

Strange compiler warning when WDT disabled

Posted: Mon Jul 30, 2018 7:30 pm
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.

Re: Strange compiler warning when WDT disabled

Posted: Tue Jul 31, 2018 11:13 am
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

Re: Strange compiler warning when WDT disabled

Posted: Tue Jul 31, 2018 6:39 pm
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.

Re: Strange compiler warning when WDT disabled

Posted: Wed Aug 01, 2018 5:59 pm
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 5648 times
Ok config entry
ConfigProb2.jpg
ConfigProb2.jpg (6.18 KiB) Viewed 5648 times
Hope this helps.