Simulink To Stm32
Simulink To Stm32
Simulink To Stm32
RESEARCH REQUIREMENTS
Environment Models
VHDL, Structured
C, C++
Verilog Text
INTEGRATION
2
Model-Based Design
RESEARCH REQUIREMENTS
Environment Models
VHDL, Structured
C, C++
Verilog Text
INTEGRATION
3
DEMO
4
Coder Technology
Simulin C Code
k
C++ Code
Unified Code
Generation HDL Code
Stateflo
w
PLC Code
MATLAB
5
Hardware Support Packages are…
6
What does a TARGET do?
3. Verifies algorithms on
hardware with real-time,
real-world data
7
Simulink Targets
- for Educational Purposes
as of June 2014
User Downloads
(R2012a – R2014a)
Arduino 11,281
LEGO MINDSTORM NXT 3,727
Raspberry Pi 2,909
BeagleBoard 753
LEGO MINDSTORM EV3 202
Samsung Galaxy (Android) 164
PandaBoard 135
Gumstix Overo 63
Total 19,234
8
Embedded Coder Targets
- for Prototyping and Deployment
as of June 2014
User Downloads
(R2013a – R2014a)
9
STM32 Support Package
www.st.com/stm32-mat-target
10
DEMO
11
Benefit of using the STM32 Support Package
Automate
– the process from "C" code generation to programming STM32
F4 or STM32F30x
– Code generation reporting
– Code execution profiling reporting for PIL execution
12
Summary for STM32 embedded target for
MATLAB and Simulink release 3.1:
Supported MCUs: STM32 F4
and F30x series
Automated Processor-in-the-
Loop (PIL) Testing using
USART communication link
Support for
– IAR EWARM
– Atollic TrueSTUDIO
– Keil MDK-ARM
13
DEMO
14
Processor-in-the-Loop (PIL)
Verify compiled object code matches simulation
Communication
Gateway
Non-real-time execution:
synchronized with simulation
• Verify numerical equivalence
• Assess execution time
• Collect code coverage
• Create certification artifacts
15
Benefit of using the STM32 Support Package
Automate
– the process from "C" code generation to programming STM32
F4 or STM32F30x
– Code generation reporting
– Code execution profiling reporting for PIL execution
16