Brian Somers

Returning values from a function within XGATE

Discussion created by Brian Somers on Nov 27, 2008
Latest reply on Nov 27, 2008 by CrasyCat

I am trying to run CAN through XGATE on my MC9S12XDP512. The program is failing to compile and giving me this error:
C1849: Result returned in void-result-function

The function in question is not a void-result-function, and is supposed to return a Boolean value true/false. I thought maybe the compiler was having trouble with Bool, so I changed the function to return an int but am still having the same problem.

I had CAN working fine when using it on the main core, and havent changed any of the variables in the function. Is there certain limitations on the Xgate compiler that are preventing this function working?