Skip to main content
usmanbuttee
Associate
September 20, 2015
Question

Sampling Time

  • September 20, 2015
  • 2 replies
  • 696 views
Posted on September 20, 2015 at 12:50

Hello everyone !

I've successfully connected stm32f4 discovery board with Matlab R2015a Simulink, but when i make a block diagram for generating simple pwm on simulink and set the sampling time of 0.1 milli seconds or less than that then a significant time delay is observed on output ports of stm board, the output is not accurate in that case...!

Anyone, who've struggled and came up with a solution, help me please !

I'll be highly obliged...

Regards !

#stm32f4
This topic has been closed for replies.

2 replies

Nickname5522_O
Visitor II
October 6, 2015
Posted on October 06, 2015 at 17:48

Hi butt.usman,

For R2014b and R2015a MATLAB version, code generation for peripheral initialization is not done. This will be solved for R2015b.

In this link you will find a patch to workaround the problem.

http://www.mathworks.com/support/bugreports/1181359

Remark: Please login with your MathWorks account to see the page mentioned above and download files.

-Shahrzad-

usmanbuttee
Associate
October 14, 2015
Posted on October 14, 2015 at 14:22

thanks a lot shahrzad !