What is the Benefit of Code Generation in the Embedded Field?
Time to Read 3 min
Anybody developing embedded systems has experienced this: during production ramp-up, the software is already finished. It shows that the standy-controller has to set a pin for the production test. The setting of the pin is done fast, but to route the command for the pin from the test port to the HMI controller then through the main controller to the standby controller via all protocol stacks is expensive and error-prone.
If all this could be done by pushing a button!
...this is possible: with code generation!
What is the Goal of Code Generation?
An important goal of course is to save time and commit less errors. In addition the code quality should improve, because repetitive parts are generated automatically and the complete information exists in only one place ("Single Point of Truth": from one source, the model the code for all controller, the code for the controlling PC and the documentation of the project is generated). An in addition the developers are also more motivated because the do not have to write boring "boilerplate" code themselves.