Skip to main content
Stefan Stark
Associate II
March 24, 2017
Question

STM32-MAT/Target Simulink blocksets for pure simulation

  • March 24, 2017
  • 1 reply
  • 1459 views
Posted on March 24, 2017 at 09:50

Hello together,

Is it possible to use the Simulink blocks of the SMT32 peripherals (out of the Target Support Package - STM32 Adapter) in 'pure simulations' (simulation / Debug without deploying it to the target hardware)? Or can these blocks only used for the code generation process?

Desired application:

Trigger the conversion process of the ADC with an Timer; the ADC Channel imput will be simulated with a Simulink block and the output of the ADC will be tracked with a Display (Simulink block). See sketch in attachment.

Thank you and best regards.

Stefan

#stm32-mat/target-matlab #stm32 #simulink
This topic has been closed for replies.

1 reply

ST Technical Moderator
March 24, 2017
Posted on March 24, 2017 at 10:19

Hello Stefan,

SMT32 blocks are only for code generation and peripherals are not simulated.

For the simulation, s

imulation data must be given then 

replaced by data from the

peripherals 

in code generation. e r

eplace by the drivers (blocks STM32)

Hope this helps you.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Stefan Stark
Associate II
March 24, 2017
Posted on March 24, 2017 at 10:21

Hello Imen,

that helps a lot. Thank you.

Are there any possibilities to simulate the STM32 peripherals? (other toolboxes)

Regards

Stefan

ST Technical Moderator
March 24, 2017
Posted on March 24, 2017 at 10:35

No Stefan 

:(

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks