|
|
View previous topic :: View next topic |
Author |
Message |
kda406
Joined: 17 Sep 2003 Posts: 97 Location: Atlanta, GA, USA
|
PWM Disable Info#300 |
Posted: Wed May 06, 2020 9:19 am |
|
|
On PIC18F devices, I'm plagued with the following message during compile:
Quote: | Info#300 More info: PWM Resolution: 10.00 bits |
Because the PWM is declared in the central project header file and there are so many compilation units, the message comes up dozens of times for every PWM channel every time I compile. It makes it difficult to find real warnings and errors in the output.
Warnings can be overridden like this:
Code: | ///// Ignore the following compiler warning(s) /////
#ignore_warnings 215
#ignore_warnings 203 |
But the Info line cannot seem to be turned off.
A typical declaration that causes this message would be with a processor like a PIC18F67K40 running an internal oscillator at 8MHz and a line like this:
Code: | #use pwm(CCP4, output=PIN_G3, TIMER=6, FREQUENCY=122, DUTY=50, STREAM=PWM_FAN) |
Has anyone figured out a way to keep this Info#300 line from coming up in the output?
Thanks,
Kyle |
|
|
jeremiah
Joined: 20 Jul 2010 Posts: 1358
|
|
Posted: Wed May 06, 2020 1:17 pm |
|
|
It's trying to be helpful since you didn't specify bits, it made the choice for you. You could try adding:
to your list of #use pwm() options. That makes the info message go away. You just need to double check that everything works correctly.
Generally the "info" messages are there to tell you that while you didn't technically misconfigure a peripheral, you didn't specify everything that was needed or you specified a parameter that couldn't actually be met and it is letting you know that it adjusted your iinputs to have something that worked. The only real way to fix this is to change your inputs to either specify the missing option or adjust your options to be correct for your hardware.
You might try contacting CCS support and suggest that they add a way to disable info messages as well. They probably haven't considered multiple compilation units much as that isn't as well supported as single compilation mode, so there are still some bugs with it. |
|
|
kda406
Joined: 17 Sep 2003 Posts: 97 Location: Atlanta, GA, USA
|
|
Posted: Wed May 06, 2020 1:30 pm |
|
|
Hey, that works. Thanks for the help!
-Kyle |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|