Berk Kaçar – FİGES
Embedded Coder Legacy Code
Download STM32 target files
Add peripheral libraries to Simulink
How peripheral blocks handle buffers
How to configure peripherals with CubeMX
DRV8353 SPI Protocol
DRV8353 Driver C Code to handle buffers
Driver interface code for higher layers
Add header and source file paths
Call interface C functions from the model with MATLAB Function Block
Link interface C funtions and STM32 peripheral blocks
Zeynep Çakır – ROKETSAN
Code Generation Processes in Roketsan
System Simulation Softwares and Electronic Warfare Unit (SSSEWU)
Code Generation in Roketsan
Why code generation is needed?
Who are the responsibles for the code generation?
Definition of Algorithm Code Generation Processes
Test Set Directory Structure and Settings
Automated Code Generation Sequence
Process Steps about the Sequence
Nusrettin Güleç – ASELSAN
Code Generation from Simulink
Pros: Comfort, Ease, Speed, Readability, etc.
Cons: High-level language, trade-off between general purpose Simulink blocks vs. self-coded S-Functions, rare but critical problems with hardware support blocks under development
Discussions on optimality (runtime performance and memory usage)
An Example Workflow based on Our Experience
Requirements: Similar electronics, similar system requirements, readability, cross-team usage, etc.
Solution: Use of libraries, model-referencing, base architecture, base/template model, coding standards, etc.
Workflow: Config. control via Git, Bitbucket, etc.
Very basic examples partially illustrating aforementioned solutions
Key take-aways (particularly on workflow and coding standards
07 Temmuz 2021