Page 1 of 1

delay warnings

Posted: Sat Feb 20, 2010 1:38 pm
by Jan Lichtenbelt
Translation the Flowcode programm I get two kind of warnings abkout delay functions and removed functions. The last is correct, because I do not use them. The delay-functions (expect delya-10us) are used, with no one the value zero. Is this just a warning or does I have to take further actions?

---------------
Caution: argument of 'delay_us' calls must have a value of 1 or more
Caution: Delay inaccurrate: 'delay_us', Delay overhead:0ms, Unit delay:0.00101725ms, Delay resolution:1 units
Caution: Delay inaccurrate: 'delay_10us', Delay overhead:0ms, Unit delay:0.0101725ms, Delay resolution:1 units
Caution: Delay inaccurrate: 'delay_ms', Delay overhead:0ms, Unit delay:1.00016ms, Delay resolution:1 units
Warning unreferenced functions removed:
FCI_FLOAT_TO_STRING in: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_NUMBER_TO_HEX in: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_INT in: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_FLOAT in: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_S in: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
isinf in: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCD_LCDDisplay1_Command in: D:\Data\Hobbies\Electronica\E-blocks\Actuele ontwerp\Hoofd-servoprogramma.c
FCD_LCDDisplay1_ScrollDisplay in: D:\Data\Hobbies\Electronica\E-blocks\Actuele ontwerp\Hoofd-servoprogramma.c
FCD_LCDDisplay1_ClearLine in: D:\Data\Hobbies\Electronica\E-blocks\Actuele ontwerp\Hoofd-servoprogramma.c

Re: delay warnings

Posted: Sat Feb 20, 2010 2:35 pm
by medelec35
You don't need to take any further actions. The delay message just means the delay can't be calculated accurately. E.g
Caution: Delay inaccurate: 'delay_ms', Delay overhead:0ms, Unit delay:1.00016ms, Delay resolution:1 units just means instead of exactly 1ms the delay is going to be 1.00016ms.
Since that is a unit. If you want a total required delay of 100ms then actual delay = 100*1.00016=100.016ms. So as you can see for timing purposes it will not make any difference.

As for the 'Warning unreferenced functions removed:'
Flowcode will not be using any functions that's not required. e.g. if you read analogue 0 in 10 bit mode, you should get following warning unreferenced functions removed for:
FCD_ADC0_ReadAsByte
FCD_ADC0_ReadAsVoltage
FCD_ADC0_ReadAsString
Since these are not used.