I am using Rhapsody Developer for C.
I designed a state chart and generated code.
I have to take this generated code (.h and .c files) and run them in my own environment. What I mean is this: I dont want to "run" the project in Rhapsody. I just want to generate code in Rhapsody and then put it in my own project which runs in a totally different environment.
Right now I am using the default oxf framework. How do I know, which framework files should I copy into my project environment (along with my .h and .c generated files)? For example, my generated .h file has a #include <Ric.h> statement which is a framework file. Which other files I need to include?
Pinned topic Which framework files to be copied?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-01T10:26:34Z at 2013-02-01T10:26:34Z by SystemAdmin
shanz9903 270003S6R4335 Posts
Re: Which framework files to be copied?2013-01-28T17:31:40ZThis is the accepted answer. This is the accepted answer.I would study the makefile and potentially add some echos to the makefilecontent property to print out all the includes and libraries.
WalterVanDerHeiden 270001TWKM59 Posts
Re: Which framework files to be copied?2013-01-30T09:16:41ZThis is the accepted answer. This is the accepted answer.Hi RJadhav
The Rhapsody Framework and Rhapsody itself are designed to generate code and makefile so that you can build an application from Rhapsody for any compiler/RTOS/CPU. Some compilers are built-in (The larger ones like Windows/MS Windows/cygwin and VxWorks/PPC)
My company creates adapters for Rhapsody in a slightly different way, we have something called deployer that automatically includes your code in an IDE project of choice.
To see if we have something for you i have some questions:
- Which environment are you using? (compiler, CPU, RTOS)
- Which Version of Rhapsody do you have
Yevo 270002F6T8292 Posts
Re: Which framework files to be copied?2013-01-30T10:27:17ZThis is the accepted answer. This is the accepted answer.Hi,
You don't need to copy any .h file into your project, just add <Rhapsody Shared files>/LangC, <Rhapsody Shared files>/LangC/oxf, <Rhapsody Shared files>/LangC/osconfig/<your environment name> paths to your project.
<Rhapsody Shared files> is something like C:\Rhapsody\Share
<your environment name> is WIN32, or Cygwin, or Linux, or VxWorks , etc.
Re: Which framework files to be copied?2013-02-01T10:25:01ZThis is the accepted answer. This is the accepted answer.
- WalterVanDerHeiden 270001TWKM
Thank you for your reply.
To answer your questions:
Ans 1: I am using Greenhills Multi2000 V850 in conjunction with Microsoft Visual Studio as our host environment. Till now all the code was handwritten. So my aim is to generate the code using Rhapsody and integrate it into this environment.
Ans 2: I am using Rhapsody versions 7.6.1 MR 2.
Looking forward to your reply.
Re: Which framework files to be copied?2013-02-01T10:26:34ZThis is the accepted answer. This is the accepted answer.
- Yevo 270002F6T8
Thank you for your reply.
But my environment is totally different. It is a hardware in which i have to download my rhapsody generated code and get it running. Very similar to burning a code into a microcontroller.