2018137_en-US

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

2018137_en-US

2018137_en-US

Using erpc in a frdmmcxn947, opening the ERPC_MESSAGE_LOGGING macro reported an error

HI, 

I'm using erpc in a frdm board and found that opening the ERPC_MESSAGE_LOGGING macro reported an error. The attached image shows the detailed error message.image-20241221154950008.png



MCXNRe: Using erpc in a frdmmcxn947, opening the ERPC_MESSAGE_LOGGING macro reported an error

Hello @yzs ,

You are welcome. If that reply answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

BRs,

Celeste

Re: Using erpc in a frdmmcxn947, opening the ERPC_MESSAGE_LOGGING macro reported an errorHello,
Thank you for answering that question.
BRs,
yzs
Re: Using erpc in a frdmmcxn947, opening the ERPC_MESSAGE_LOGGING macro reported an error

Hello @yzs ,

Thanks for letting us know about this issue. 

I have indeed reproduced your issue. The `logMessage` function expects a parameter of the `MessageBuffer *` pointer type. However, the previous error message indicated that it was not possible to convert an ordinary `erpc::MessageBuffer` object into an `erpc::MessageBuffer*` pointer type. Therefore, the following workaround can be considered to solve this type mismatch problem: obtain a reference using the `getBufferRef` function and then pass the pointer by taking the address. The code modification is as follows:

In erpc_client_manager.cpp:

Celeste_Liu_0-1734934523832.png

Celeste_Liu_1-1734934533705.png


By modifying the above code, it can be compiled successfully.

Celeste_Liu_2-1734934552890.png


However, this approach may not be the optimal solution. I will submit a Jira ticket to the SW Team to further investigate this issue.

Thanks again for your post. Have a nice day~

BRs,

Celeste

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 10:59 PM
更新者: