han
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Chris ,I bought the DRV8301 (revD) with Hercules Tms570ls3137 Controller Kit from TI several months ago.
Since device TMS570ls1227 and TMS570ls3137 belong to the same family ( C2000 ) , I ran
InstaSpin-bldc and Foc-encoder-speed programs on both of them using the instructions on
Motorware directory ( V1.03.03 ) and Code Composer Studio ( V5.3 ).running project01.
I set general properties appropriate for each device using TI XDS100v2 USB emulator .
TMS570ls3137 had several issues starting with Building warning # 10247-D ( creating output section
"CONSTDATA" without Section Specification.) on foc_encoder_speed program. While the same
device exhibit Building warning # 10210-D ( creating Stack Section Size of 0X800 . Use stack
option change Default Size ) on InstaSpin_bldc program. There are more problems down the
debugging process which is why I choose Device TMS570ls1227 which presents the least of
issues. None of those ( above ) encountered with device TMS570ls3137.
I launched a Debug session for which I got the following Display .
CCS DEBUG-TMS570ls11227 INSTASPIN_BLDC/ SYS_MAIN.C CODE COMPOSER
STUDIO on top of screen.
On main CCS window : Debug: TMS570ls Instaspin_bldc [ Code Composer Studio - Device Debugging ]
Texas Instrument XDS100v2 USB Emulator_0 CortexR4 ( Suspended -HW Breakpoint )
main() at sys_main.c:96 0x000025fc
c_int00() at _sys_startup c: 573 0x00004c18 ( entry point is reached ):
Console : TMS570ls instaspin_bldc Cortex4: Gel Output: memory map setup
for flash @ address 0x0.
F8 resume icon clicked :
TMS570ls_instaspin_bldc ( Code Composer Studio - Device debugging )
( Top of screen )
Main CCS window : Texas Instrument XDS100v2 USM Emulator_0 Cortex4 ( Running )
Variables , Expressions , Registers INITIAZING ... COMPLETED .
From Scripting Console Folder , I ran " C:\TI\Hercules\Motorware_1_00_03_03\ SW\
Solutions\ Instaspin_bldc\Boards\DRV8301kit_revD\Hercules|TMS570ls \
Projects\ CCS5\ Project01\ INSTASPINWATCH "
CMDFILE SCRIPTING INSTASPINWATCH JS gGUIobj.Enable Flag , gGUIobj.IsrTicker,
gGUIobj.Speed RPM , gDRVobj.InstaHandle ->vaOffset, gDRV.InstaHandle
-> vbOffset , gDRVobj. InstaHandle -> vcOffset and etc ... are OK . But on
Variables Type Value Address Window
gGUIobj.Ena Float 0.0 0x080027B0
gGUIobj.IsrTicker ( parameter missing -- not added )
gGUIobj.Log unsigned short 0x080027B6
gDRVobj.Ins. (VA) unknown Error Identifier
gDRVobj.Ins (VB) unknown Error Identifier
gDRVobj.Ins (VC) Unknown Error Identifier
The above errors and missing parameter are my
problems . All the rest of the parameters are OK.
DRV Board Voltage Test Points ; TP6 ( PVDD ) 23.99 volts , TP11 VCC_5volts ,
TP4 VCC_3.3 volts , TP5 Ref_1.65 volts.
LED 1 and LED 3 are lit.
Controller Board , JTAG LED , SPD LED and POW LED are also lit.
I deeply appreciate your assistance and support. Hoping to hear from you soon .
Best Regards ,
Roy .
:
roy bordey said:Since device TMS570ls1227 and TMS570ls3137 belong to the same family ( C2000 ) ,
These devices are not C2000 MCU. It is based on ARM Cortex.
Best regards,
Maria
Roy,
While the kit includes InstaSPIN-BLDC and something called MotorWare, this was released about 3 years ago outside of the team that is supporting InstaSPIN-FOC & -MOTION on C2000 MCUs. Let me move this thread to the Hercules / TMS570 MCU forum and see if they can assist.
Roy,
To clarify -
- everything works correctly with the LS3137?
- the errors above appear when you try to use the LS1227?
The errors look like (at first glance) messages coming from the GUI composer - and I believe this just relies on symbols being available to get the addresses of the variables that you want to visualize & control. Did you happen to change any of the build options such that you're turning on heavier optimization when you built the LS1227 version? Also are you trying this w. the Debug or Release profile.
I might need to get your project so we can look at it - if it's not something simple like that.
EDIT: Roy - additionally - Sunil pointed me to this post:
http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/235920
It looks like someone saved the watch window (which is what the .js file is if you open it) and then maybe the name of the global variable was changed but the watch window file wasnt. So one suggestion is to change the name of the 'gDRVobj' variables (in the .js file) to 'drv.' to match the program.