Skip to main content



      Home
Home » Modeling » Papyrus » C code generation with SysML in Papyrus(C code generation with SysML in Papyrus)
C code generation with SysML in Papyrus [message #1859896] Tue, 04 July 2023 07:49 Go to next message
Eclipse UserFriend
Dear Forum,

in the last days I started creating SysML diagrams in Papyrus to have a more structured way developing microncontroller firmware. The first Block Definition Diagram is now finished and now I want to generate c code out of the diagram, but it is only possible to choose C++ or Java.
I've found a master thesis where they generated c code out of SysML block diagram in papyrus.

Could you please tell me how I can generate C code out of SysML diagrams?

Kind regards
Eric
Re: C code generation with SysML in Papyrus [message #1859939 is a reply to message #1859896] Thu, 06 July 2023 05:49 Go to previous messageGo to next message
Eclipse UserFriend
Dear Eric,

the Papyrus SW Designer C code generator does not have specific SysML support, for instance code generation from a SysML Block is only supported as a generic class. Thus, you may want a different generator. Can you please reference the thesis?

Ansgar

PS: You might only see C++ or Java code generation, since the C generator of SW designer is not installed. If you pass by the market place, the C code generation feature is not selected by default
Re: C code generation with SysML in Papyrus [message #1859942 is a reply to message #1859939] Thu, 06 July 2023 08:09 Go to previous message
Eclipse UserFriend
Dear Ansgar,

you are absolutely right! It's not selected by default. I was able to install the C code generator if I installed the Papyrus Software designer via "Install new Software" not with the Marketplace. I had to add this Link:
https://download.eclipse.org/modeling/mdt/papyrus/components/designer/

Thank you for the hint! I'm now able to generate C code.

regards
Eric
Previous Topic:Error with Papyrus Java CodeReverse (again)
Next Topic:C code generation with SysML in Papyrus
Goto Forum:
  


Current Time: Fri Jun 13 18:24:19 EDT 2025

Powered by FUDForum. Page generated in 0.23876 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top