Returning values from a function within XGATE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Returning values from a function within XGATE

998 Views
brian_somers
Contributor I
Hi,


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?
Labels (1)
0 Kudos
1 Reply

253 Views
CrasyCat
Specialist III
Hello
 
Did you check preprocessor listing for that function?
There might be some macro substitution in there, and the function definition might not look as you expect.
 
CrasyCat
0 Kudos