TMS320F28379D: Matlab compile and build ok but HW no show

8 views (last 30 days)
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

Answers (1)

Bertrand NOGAREDE
Bertrand NOGAREDE 1 minute ago
Greetings,
After leaving this issue on the side for a time I came back to it. I'm sharing a minimized model with the elemental blocks that I need:
  • GPIO (as in the blink example for the unboard LED of the F28379D (Task 2) => link_here
  • ePWM (key blocks that I need).
  • ADC for measurement
I've checked the COM ports, Baudrates, clockings, solvers, Jumpers, different SCI buses, etc... So I've come here for support once more
The behaviour I observe is the following :
====> First, the diagnostic viewer shows the following
  1. Button "Build Deploy & Start" seems ok ==> see "Build Deploy & Start.png"
  2. Button "Monitor & Tune" can't connect to target ==> see 'Monitor & Tune.png"
====> Second, after doing a "Build Deploy & Start" the launchpad seems frozen. The PWM outputs are stuck and unchanging (fixed value without switching). Furthermore, the LEDs are constantly ON. It is like the launchpad got the model properly installed but it does not has an internal green light for launching it.
I'm looking to get this model working with the launchpad to integrate this type of boards to our tests benches. We already use speedgoats with ease for more complex systems. So this setup hicup with this simple board is a blocking issue for simplifying our systems and reduce their size.
Extra question : On the page "Overview of Creating a Model and Generating Executable for C2000 Processors" (link_here) it is adviced that the parameter "Simulation behavior for denormal numbers" should be to Flush To Zero (FTZ). I have it to Gradual Underflow because I don't have the Fixed-Point Designer license. Is this a blocking issue? It shouldn't be an issue if I euderstood correctly the parameter.
Kindest regards,
Gonzalo
Extra info : I just reinstalled the following elements for the hardware setup
  • TI C2000 Code Generation Tools
  • TI ARM Code Generation Tools
  • TI controlSUITE
  • TI Code Composer Studio
  • TI C2000Ware
  • TI F28044 Headers130
  • TI F280x Headers
  • TI F281x Headers120

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!