Returning values from a function within XGATE

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Returning values from a function within XGATE

1,025 次查看
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?
标签 (1)
0 项奖励
1 回复

280 次查看
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 项奖励