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.

Hercules tms570ls1227 instaspin_bldc InstaSpinwatch .js gDRVobj.insta handle unknowm error: not defined problem

Other Parts Discussed in Thread: DRV8301, TMS570LS3137, TMS570LS1227, INSTASPIN-BLDC, MOTORWARE

han

  • Hello,
    Do you mean that you use instaSPIn bldc onHercules MCU?
    Can you tell more detail?

    Best regards,
    Maria
  • I suppose you are saying this is the error returned when you try to load the .js in the Scripting window?

    You probably aren't in the Debug view and connected to the target. You must be connected to the target for the scripting / expressions to load correctly.
  • 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.

  • Hi Anthony.
    Thanks for all your help. The site you referred me to has
    exactly the same problems that I am having with my Kit.
    I will try the fix you suggested and also ask the Engineers
    having the same problem if what fix they found to
    bring a final solution to the errors encountered.

    Best regards ,

    roy
  • You are right Maria . ..Thanks for pointing that out.
    I am a newbie in this field and probably will have
    more errors in the future but I am determined to
    to learn this project well.

    Thanks again !

    Roy
  • Hello Anthony ,
    The fix you suggested worked ... Thank you much !
    INSTASPIN_BLDC SENSORLESS CONTROL FOR HERCULES TMS570LS3137
    Motor Control modes (0-3) , PWM Scope display and Graphs are all OK ... no more errors.
    The only problem now is "drv.isrTicker is not counting or advancing . It stays at 0 . I would
    like to hear your professional advice about it.

    ON Sensored FOC Control with SMO however, I am having error problems on the FF:

    drv.isrTicker unknown Error: cannot access member of non-structure at (drv).isrTicker
    gDRVObj.isrTicker unknown Error: identifier not found: gDRVObj at (gDRVObj).isrTicker
    gGUIObj.Spdmotor unknown Error: member ' SpdMotor ' not found at (gGUIObj).SpdMotor
    gGUIObj.Dfuncstartup unknown Error : member ' Dfuncstartup' not found at (gGUIObj).Dfuncstartup
    gDRVObj.instaHandle->vaoffset unknown Error : identifier not found :
    These are just a few of the problems encountered in this mode of operation.
    when I set enable flag to 1 state and Control Type to 1 state , Motor would turn one (1) shaft revolution
    and stop.
    I am using DRV 8301-LS31-KIT . TMX570ls3137 Microcontroller, CCSV5.3.0 and Motorware V1.0.3.03 .

    I would very much appreciate your help .

    Best regards .

    Roy