TMS320F28379D: Matlab compile and build ok but HW no show

1 Ansicht (letzte 30 Tage)
Bertrand NOGAREDE
Bertrand NOGAREDE am 26 Okt. 2021
TMS320F28379D: Matlab compile and build ok but HW not acting as supposed.
Greetings,
I'm using matlab simulink to put in place an electric motor piloting systems. This one receives information like currents and rotor position (Inputs) and delivers 3 PWMs (Outpus).
When I simulate my model on my PC, everything runs just fine. Hereafter, the results on the diagnostics window:
(see attached image capture)
When I want to run it on my Launchpad, the compilation goes right, the build goes right. But, the the HW seems it does not react.
For debugging, I added a simple block that I already tested separately. This code uses a sin(t) signal with a 2s period and 2 leds. The red led is on if the sin is positive and blue led is on if the led is negative.
I redeployed my model in the launchpad with the debugging, no errors shown, and both leds are constantly ON.
Notes:
> I've tested the Matlab/Launchpad input and output blocks separately and they seemed to work just fine.
> I've tested the debugging blocks on a separate isolated model to confirm it worked properly on its own.
Since I'm new to the Launchpad, new with its interface with Matlab and it shows no errors I don't know where to look for potential problem sources. What can the cause(s) be? Is there a clue to look into?
Kindest regards,
Gonzalo

Antworten (0)

Tags

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by