Simulink error, STM32-MAT package, Function call from timer interrupt
Mostrar comentarios más antiguos
I am following the tutorial that comes with the STM32-MAT package that deals with setting a basic block diagram to run on an STM32 target. In the simulink system I have used the predefined STM32 timer block and set it up at a frequency of 1Hz and to output an interrupt (UP) every second. The output of this block (IRQ UP) is fed as the trigger for a function call block in which I simply toggle a GPIO pin (again with the predefined STM32 GPIO_WRITE block provided in the package).
I have my code generation set to stm32.tlc and simulation type to "normal". I have set up the STM32.ioc file with the necessary timers, interrupts and gpio ports. When I run the simulation I get an error:
An error occurred while running the simulation and the simulation was terminated Caused by: Function-call initiator 'untitled/Timers' attempted to reenable function-call subsystem 'untitled/Function-Call Subsystem' on time step '0.0'. The function-call subsystem cannot be reactivated by the same function-call initiator; there is a flaw in the implementation of the function-call initiator.
I dont understand what the issue is here.


1 comentario
Firas Ben Abdessalem
el 24 de Jul. de 2017
Sorry
have you find the solution??
Respuestas (6)
yunus bicer
el 24 de Jul. de 2017
0 votos
Same problem, any solution?
ertf yang
el 24 de Ag. de 2017
0 votos
我也是这个问题没有解决,不知道什么问题
robert rao
el 25 de Sept. de 2017
0 votos
我也是这个问题
hoang minh giang
el 24 de Mzo. de 2018
0 votos
.
Maria
el 10 de Ag. de 2021
0 votos
Same problem
朋飞 庞
el 20 de Abr. de 2023
0 votos
我使用R2018b没有这个问题,可使用R2021b就有
Categorías
Más información sobre Get Started with Embedded Coder Support Package for STMicroelectronics STM32 Processors en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!