delay warnings

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

delay warnings

Post 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

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: delay warnings

Post 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.
Martin

Post Reply