Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
HIL
MIL Test
Test
PIL
SIL Test
Test
+
HIL
Test
MIL
Test
SIL
Test
PIL Test +
Code Generators
STM32CubeMx
Realistic functional
test results, early
Supplier(s)
2. Platform models Platform
independence?
5. Drag
STM32_Config
from Simulink
Library browser
to the new
simulink model
6. Drag STM32_Config
7. Go to Model
Configuration
Parameters and choice
Code Generator
(c) Professor Salem HASNAOUI -
4/2/17 15
2017
Workflow Using CubeMx, IAR Embedded
WorkBench, Simulink et Code Generator
a step by step guide
Initialization of
Simulation
Target Pane
8. Go to Model Configuration
Parameters and
choice the discrete solver
(and Apply)
Go to Code Generation
(c) Professor Salem HASNAOUI -
4/2/17 17
2017
Simulink Model setting to take account
STM32CubeMx
a step by step guide
9. Choice the
stm32.tlc as
target language
compiler by
clicking the
browse button
Allez au
11. Double Click on the
rpertoire o seblock and
STM32_Config
trouve
selectlethe
fichier
STM32
iocConfiguration
(ISI-MBD.ioc, file within
dans
thenotre cas),
.ioc file is saved (just
an"Apply"
puis example)et
"OK"
(c) Professor Salem HASNAOUI -
4/2/17 22
2017
Workflow Using CubeMx, IAR Embedded
WorkBench, Simulink et Code Generator
a step by step guide
12. Go to Target
Support Package-
STM32 Adapter
and double click
on GPIO Library
and
dragGPIO_Write
13.Double click on
GPIO_Write and
Select GPIOD (LEDs
of the Discovery
board
14.Select GPIOD et
check Toggle Pin12
until pin 15, then
Apply and "OK"
16.Include comments
17.Execute the
model (if there
scope for
example)