Command line method to generate code

144 views
asked Apr 5, 2019 in Embedded Wizard Studio by snaponniall
At present, we generate C code for our STM32 platform package in the normal way using the 9.x Pro IDE + Dongle as a regular manual activity.

We then commit the generated files to our version control system so they may be picked up by our CI Jenkins build process.

Is it possible to use a command line method to generate C code and run this action itself on the CI Jenkins server as an automatic step in the build process?

1 Answer

0 votes
answered Apr 5, 2019 by Manuel Melic

Hi Niall,

In order to integrate the code generation process into an automated build process, you can use the so-called ChoraC command line compiler. Further information can be found here.

Br,
Manuel

commented Apr 5, 2019 by snaponniall

Hi Manuel,

When the Jenkins is not a physical machine, but a virtual machine there is the error about the USB Dongle.

Embedded Wizard CHORA Compiler version 9.00 (build 2633).
Copyright © TARA Systems GmbH
Written by Paul Banach and Manfred Schweyer

[5.4.2019 16:03:08] Fatal error : Missing Embedded Wizard USB dongle.

Is there a supported way to work around this restriction?

 

commented Apr 5, 2019 by snaponniall
I think we can have Jenkins run this particular Job on a client physical Windows machine which can have a USB Dongle installed.
commented Apr 5, 2019 by Manuel Melic
Hi Niall,

In fact, you would also need to route the USB dongle into the virtual machine from the physical host where the virtual machine is hosted.

Hope this helps,
best regards,
Manuel

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...