Returning values from a function within XGATE

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Returning values from a function within XGATE

1,338件の閲覧回数
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 返信

593件の閲覧回数
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 件の賞賛
返信