Compiler Warning Message

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times
Contact:

Compiler Warning Message

Post by Ron »

Hi,

What does this mean and how do I go about location the source of the warning?

Warning: function never returns: 'FCM_Halt_On_Error_Fault_Codes'

I think this means that the function never returns control to the main flowchart.

If this is correct, then I have accomplished what I intended to do. If I have a machine or download fault I write the fault code to an eeprom address where is can be views via an computer GUI/HMI. I then put the PIC in a state that only a HW reset will allow the program to run again.

I would suggest that what I have done should not be possible because in a decision it is not possible for the YES and NO destination lines to go to the same block.

If 1 Yes - go to connection point B, NO go to connection point B. I see this as a "bug" in the auto router.


Thanks

Ron

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:

Post by Benj »

Hi Ron

The easiest way to do what you are describing is to add a while loop with a value of 1. This means it will loop forever.

The compiler message is just saying that the program never returns to the main flowchart once it has entered the FCM_Halt_On_Error_Fault_Codes macro. This is not an issue but merely a warning incase this was not intended.

Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times
Contact:

Post by Ron »

Hi,

That is what I thought the compiler was telling me. I like the idea of your loop = 1.

Thanks

Ron

Post Reply