eRPC in a pure C environment? (and is there a better forum for getting help?)

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

eRPC in a pure C environment? (and is there a better forum for getting help?)

2,221 Views
robertpoor
Senior Contributor I

(I'm not at all sure this is the right forum for this question, so the first question is: is there a better forum for eRPC questions?)

But my real question: We're working in a pure-C environment.  I didn't see any examples of how to adapt the generated <proj>_server.cpp and <proj>_client.cpp files for a pure-C environment.  Is that feasible?  Or does all of the runtime support assume a C++ environment?

 

0 Kudos
7 Replies

1,693 Views
MaochenWang
NXP Employee
NXP Employee

Hi, robertpoor

I have the same question as you, and have you found the solution to use eRPC in a pure C environment?

0 Kudos

2,124 Views
robertpoor
Senior Contributor I

For purposes of discussion, assume that we're using the MKL03Z32VFK4.  Starting with <myproject>.erpc, is it possible for erpc to create files for a pure C environment, rather than for a CPP environment?

 

0 Kudos

2,118 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi robertpoor 

technically, it can.

But NXP erpc demo codes are based on c plus.

Thanks,

Jun Zhang

0 Kudos

2,166 Views
robertpoor
Senior Contributor I
Jun Zhang:
 
Thank you!  We are not using an NXP chip!  But it is eRPC -- I"m not sure if there's a forum dedicated to that.
0 Kudos

2,148 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi robertpoor 

This depends on OS and transport layer. 

Please check this documentation: https://community.nxp.com/docs/DOC-334083

And here for step-by-step guide how to create eRPC application: 

https://github.com/EmbeddedRPC/erpc/wiki/Getting-Started

Above this generally eRPC information we can provide.

As you are not using NXP parts, For more, please check your part producer.

Thanks,

Jun Zhang

 

0 Kudos

2,190 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi @robertpoor 

What's your chip part number?

Please let us know thus we can assign right engineer for your question.

Thanks,

Jun Zhang

0 Kudos

1,689 Views
MaochenWang
NXP Employee
NXP Employee

Hi, @ZhangJennie 

Is there any demo app of eRPC can run in a pure C environment (Not C++)? Thanks.

0 Kudos