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.

launchxl-F28069M + BOOSTXL-DRV8301, lab01: Doesn't build successfully.

Other Parts Discussed in Thread: MOTORWARE, BOOSTXL-DRV8301, DRV8301-69M-KIT, TMDSCNCD28069MISO, TMDSHVMTRINSPIN, TMDSCNCD28027F, TMDSCNCD28054MISO, LAUNCHXL-F28027F, LAUNCHXL-F28069M, DRV8301

Hi,

I'm new to CC and am trying to get to first base here but I'm striking out.
I'm getting a failure to Link because there is insufficient memory available.  Of course this is supposed to be a simple tested lab so I suspect I've mucked something up and I'm looking for some help getting this sorted out.

Suggestions?

Questions?

#10010 errors encountered during linking; "proj_lab01.out" not built    proj_lab01
#10099-D program will not fit into 28069_RAM_lnk.cmd    /proj_lab01    line 113    C/C++ Problem
#16008-D file    proj_lab01             C/C++ Problem



  • I'm not sure what you changed.

    I think the easiest thing to do would be to delete the project from your workspace and re-import.

    If you get the same errors repeat, but this time re-install MotorWare before importing again.

    This project builds fine right out of the package.

  • Good idea. I'll try it and get back.
  • That did the trick, it built and loaded. Thanks! (Red LED flashes once/sec on the F28069M LaunchPad)

    So I've run proj_lab01 and It does NOT blink LED2 on the inverter board. It throws the error:
    (x)= gMotorVars.UserErrorCode unknown Error: identifier not found: x at x=(gMotorVars).UserErrorCode

    The pdf guide directs me to "open user.h file to address the
    error shown by variable gMotorVars.UserErrorCode."

    except, there is no ErrorCode provided for me to find and "address".
  • error code would be
    gMotorVars.UserErrorCode

    if there is an error it is because you have random / incorrect values set-up in the active USER_MOTOR section.

    I don't understand your comment about the inverter board LED...that's not supposed to blink that I know of.
  • Hi Chris,

    Blinking LED is mentioned in the:

    InstaSPIN Projects and Labs User’s Guide

    InstaSPIN-FOC & InstaSPIN-MOTION for

    F2802xF, F2805xF, F2805xM, F2806xF, F2806xM

     

    On page: 23

    7. One of the LED labeled “LD2” on the inverter board will blink.
    8. If LED labeled “LD2” doesn’t blink, there might be a user configuration error. In order to see if
    this is the case, take a look at the following variable in the watch window:
    Which was the aforementioned Error Variable.

    I've not touched the variables in user.h as this is lab01.  Just now examining them they 'seem' ok with none missing values.

    With no error code supplied I have no idea where to look for the problem.

    Hmmm. The three LEDs in-a-row (D1,D9,D10) on the F28069M LaunchPad light up and the one D9(red in the middle) is the blinking one.  Is this to be expected?

    The inverter board is mounted in the J1,J2 upper daughter board position.  It should be noted that nowhere in any TI documentation is it described which of the two daughter board slots on the F28069M LaunchPad a single inverter board should be mounted for the labs.

     

  • "7. One of the LED labeled “LD2” on the inverter board will blink."
    I think this only applied to the inverters besides the BOOSTXL-DRV8301. I'm pretty sure this inverter does NOT have a user changeable LED.

    "The three LEDs in-a-row (D1,D9,D10) on the F28069M LaunchPad light up and the one D9(red in the middle) is the blinking one. Is this to be expected?"

    Yes. exactly.

    "The inverter board is mounted in the J1,J2 upper daughter board position. It should be noted that nowhere in any TI documentation is it described which of the two daughter board slots on the F28069M LaunchPad a single inverter board should be mounted for the labs."
    Either can be used. You have to select J1 or J5 in the user.h file and then use user_j1 or user_j5.h
  • Oh wow! You might be right on the LED. I'm looking at it with a magnifier and it's labeled OCT as in "Over Current Trip" and it's ref is D1.
    However looking further shows a LED labeled "D2" called a generic "Fault" which likely could be used as the "inverter LED" though it isn't labeled "LD2" as Lab Manual describes.

    _j1, _j5.h.... I'll look into this. Thanks.
  • Keith,

    Yeah, what you are seeing is the fact that we released InstaSPIN (and all the docs) for the first three kits over two years ago"

    DRV8312-69M-KIT, DRV8301-69M-KIT, and TMDSHVMTRINSPIN all working with TMDSCNCD28069MISO controlCARD.

    since then we have added support on these kits with TMDSCNCD28027F and TMDSCNCD28054MISO

    as well as introducing the BOOSTXL-DRV8301 inverter with support on LAUNCHXL-F28027F and then LAUNCHXL-F28069M

    since there is SO MUCH documentation on InstaSPIN/MotorWare certainly some areas didn't get updated to provide quite the amount of clarity that you would expect.

  • Hi Chris,

    Still trying to get this going.  I'm still on Lab1.   It appears to default to the lower board interface _j5.   I've changed it to the upper _j1 in user.h.

    That done, I can MAKE successfully and download it into the target.  Get the target running with realtime debugging selected.  This gets the aforementioned launchpad red LED a'flashin.  But... I still get the:

    (x)= gMotorVars.UserErrorCode unknown Error: identifier not found: x at x=(gMotorVars).UserErrorCode

    Going to user_j1.h it is apparent that the 'out-of-the-box' setting is:

    #define USER_MOTOR Teknic_M2310PLN04K

    as all the rest are commented out.  The Teknic_M2310PLN04K has all the TI default settings already present so what/why is the error:

    (x)= gMotorVars.UserErrorCode unknown Error: identifier not found: x at x=(gMotorVars).UserErrorCode

    occurring?

    I switched to the Estun_EMJ_04APB22 motor with the same result.

    Do I have to have the GUI running?  

  • are you adding or making changes to the code?
    x=(gMotorVars).UserErrorCode

    is not a line of code in any of the projects....

    are you sure that's a new error and not a remnant from previous attempts?

    I'd move on to lab02
  • Changing labs has made no difference....  I have changed nothing.  I went back and selected all the labs in CC and DELETED them, then RE-imported them (latest motorware_1_01_00_14)  I then moved the BOOSTXL_DRV8301 board to the 'apparent' default position of the lower daughter board position (_j5user), maked and debugged and for the 66th time watched as it choked on the above obnoxious/non descriptive/useless error.


    Am I the guinea pig for having a BOOSTEX-DRV8301 actually plugged onto an F280069M Launchpad?  It's feeling like it.

    Has to be the worst out-of-the-box experience I've ever had. Four weeks I've been stalled here now.

  • Keith,
    Sorry you are having issues. No, you are not the guinea pig. There are thousands of users of this Launchpad and yours is the only error like this. In the above image it looks like the gMotorVars structure is there. Expand and you should be able to manipulate the needed variables.

    I'm not sure what the (x)= portion is. Try deleting that part and just have gMotorVars.UserErrorCode if you are trying to display a variable in the Expressions menu.