Other Parts Discussed in Thread: MOTORWARE, BOOSTXL-DRV8301
Can't make progress with the labs.
This is a longish post but I wanted to write down all the details for later reference.
I'm trying to work through the lab exercises here:
C:\ti\motorware\motorware_1_01_00_12\sw\solutions\instaspin_foc\boards\boostxldrv8301_revB\f28x\f2802xF\projects\ccs5
My setup is as follows:
I'm running this on Windows 7 / 64b under Parallels virtual machine.
I've got the Anahaim BLY172S-24V-4000 motor hooked to the
BOOSTXL-DRV8301 REVB connected to the
C2000 Piccolo Launchpad LAUCHXL-F28027F.
(Gee who comes up with these names, should they not be
terse, now one is left wondering what are the relevant
parts of the name and what is just marketing BS)
What I've done:
This is a clean install, I had the same problem before so
scrapped that and re-did everything.
I've got the CCS 5.5.0.00077, latest Motorware and GUI Composer
installed (not sure about the versions of those too, fresh download today).
I imported all the above lab projects and compiled them
and then copied the 'proj_lab05a.out' file to
C:\ti\guicomposer\webapps\InstaSPIN_F2802xF_UNIVERSAL
and renamed it to appProgram.out
When I start
InstaSPIN_UNIVERSAL.exe
from the same folder it seems that the program starts as I get
this output in the window:
Restarting Program Model... Initializing target : C:\ti\guicomposer\eclipse\workspace\.metadata\.plugins\com.ti.binding.program\appConfig.ccxml Connecting target: Texas Instruments XDS100v2 USB Emulator/C28xx Loading program: C:\ti\guicomposer\webapps\InstaSPIN_F2802xF_UNIVERSAL\appProgram.out
and then I get the screen with entry fields, check boxes etc.
On that screen I check/click (in this order):
RsRecalc
(OffsetCalc, already checked)
(ForceAngle, already checked)
Run
I uncheck/click
user.h Params
and finally I check/click
Enable System
Where it goes astray:
After above the motor emits a high note but does not move,
then it starts to rotate slowly and maybe acceleraters
a bit, there is some LED activity, the four blue LEDs
on the launchpad change intesity and the red LED on the
BOOSTXL goes on and off a few times.
At the same time I get error dialog saying:
ERROR : C28xx: Error: (Error -154 @ 0x0)
One of the FTDI driver functions used to write data
returned bad status or an error. (Emulation package 5.1.200.0)
So what am I doing wrong, how should I troubleshoot this
further?
This is not my first and only approach to the problem and
I'm happy to take a different approach. I don't realy
need the GUI composer (already dislike it) but I tried
to run the lab exercises directly from within CCS by
manipulating the variables with the real-time debugger
and the result was sort of similar, something happens
at the boards but the connection to the board is lost.
All I really need to do is to learn to code for FAST/FOC
so that we can see if this is suitable for our application.
Don't want to sound ungrateful but so far this has been
a far cry from the 'spinning in minutes' slogan...
cheers Kusti