STM32F4 PiL simulation very very slow

2 visualizaciones (últimos 30 días)
Antonio Acampora
Antonio Acampora el 30 de Jun. de 2020
Comentada: Allali Hasnaa el 15 de Jun. de 2021
Hello, i ask here for understand the Pil...
I've build a motion control example, for generate gates signals for a inverter that drive a pmsm.
in a normal mode simulation, simulink finish the 1.8 seconds of simulation in 1m30sec. If i start a pil the simulation finish to run in about 7 hours! I not understant this difference. Is a problem of the implemented motion control (sin, cos functions) in only 180Mhz core, or of the transter of data? setted to 115200 bauds and 8Mhz, standard speeds that give the tools..? can any one explain me or give a reference to study? i've googled but i've not found the answer

Respuestas (1)

Antonio Acampora
Antonio Acampora el 1 de Jul. de 2020
after other 2 freezed simulation, i’ve received some output, but..... i not understand. Someone know if are good times?
In a Top model i’ve set the inverter block at frequency of 8Khz.
If the average time execution time (i suppose it’s the time taken from the input of all the references, to the output for the gates) is 50178 nano_seconds and the switching period is Psw=1/8Khz=125 micro_seconds, i have: 50,178micro_sec < 125 micro_sec, i can tell thet the code work fine on the STM32?
Someone can explain me if is correct?
  1 comentario
Allali Hasnaa
Allali Hasnaa el 15 de Jun. de 2021
Hello,
I'm dealing with the same problem, did you find out anything ?
Thank you.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by