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-F280025C: Universal Motor Control Lab Incremental Build 1 with BOOSTXL-DRV8323RS and sensored FOC

Part Number: LAUNCHXL-F280025C
Other Parts Discussed in Thread: BOOSTXL-DRV8323RS, , C2000WARE, DRV8353, DRV8323

I am experiencing a similar issue as the referenced post. The overcurrent flag trips in incremental builds 1 and 2 after setting motorVars_M1.flagRunIdentAndOnLine to 1. I am using LAUNCHXL-F280025C, BOOSTXL-DRV8323RS, and LVSERVMTR. I configured the firmware for sensored FOC control with the encoder.

Please let me know what I can do to work through this lab section.

  • Follow the lab user's guide to set up the kits for running the lab. The motor and encoder wires must be connected as the table shown in the guide, and set the related switch on the LaunchXL board.

    Universal Project and Lab User’s Guide: https://www.ti.com/lit/ug/spruj26/spruj26.pdf

  • Hi Yanming,

    I've reviewed the documentation and my setup a few times now, and I'm still having issues. Everything seems correct, but the main change I made was setting the MOTOR1_FAST_N predefine (it had no _N by default).

    However, now I'm seeing a MOTOR_OL_START fault (instead of OCP), and the ISRCount is still not incrementing.

    Screenshots and photo of my board are attached. Is there anything I'm missing?

  • The FAST is used for the lab by default. You need to change the pre-defined symbols for other algorithms as described in the lab user's guide.

    May I know if you follow the lab user's guide to connect the BOOSTXL-DRV8323RS to LAUNCHXL-F280025C, and provide the DC power supply to BOOSTXL-DRV8323RS for running the build level 1 and 2?

  • Yes, I powered the BOOSTXL-DRV8323RS with a 24-V supply. I am using C2000Ware_MotorControl_SDK_3_03_00_00.

    Also, I used 100 nF capacitors for C9, C10, and C11 because they were available in the lab. Would that cause a firmware issue like this? The user guide suggests 33 nF capacitors in the description, while Figure 2-4 suggest 0.47 nF.

  • The 33nf should be a typo, the 47nF is right for matching the value of USER_M1_VOLTAGE_FILTER_POLE_Hz. You have to change the USER_M1_VOLTAGE_FILTER_POLE_Hz if you are not using the 47nF capacitor for voltage sensing.

    You can find Motor Control Parameters Calculation.xlsx file in the folder, and change the value in "Voltage LPF Capacitor [nF]" row for the related board, the value in "Voltage LPF Cut Frequency [Hz]" row will be updated, copy this value number to USER_M1_VOLTAGE_FILTER_POLE_Hz for the new capacitor you used. Recommend 47nF~68nF is used for the BOOSTXL-DRV8323RS/H.

    C:\ti\c2000\C2000Ware_MotorControl_SDK_3_03_00_00\solutions\universal_motorcontrol_lab\doc

    The wrong capacitor just causes the motor parameters can't be identified correctly and the motor can't run well in BUILD LEVEL4 with InstaSPIN-FOC.

    The BUILD LEVEL 1 and 2 still can work even you don't use the default capacitor and set the USER_M1_VOLTAGE_FILTER_POLE_Hz accordingly. Please check if you connect BOOSTXL-DRV8323RS to
    J1/J3 and J4/J2 site of LAUNCHXL-F280025C; make the J3-29 and J3-30 on LAUNCHXL-F280025C disconnect to BOOSTXL-DRV8323RS; and connect J4-4 to J4-18 using a jumper wire for connecting DRV_SCS to SPI_STE as shown in user's guide.

    The SEL 1&2 of the switch S2 on LAUNCHXL-F280025C must be put on (1:0) position to link the GPIO28&29 to the J1 of BP for control the enable pin of the DRV8323RH/S.

  • Hi Yanming,

    After spending some time on Google, I found a previous E2E post with answers that solves my problem. The URL and quoted text are the items that helped.

    https://e2e.ti.com/support/motor-drivers-group/motor-drivers/f/motor-drivers-forum/1043745/drv8353rs-evm-universal-motor-control-lab-correct-offset-values-faults-and-module-overcurrent-faults?tisearch=e2e-sitesearch&keymatch=DRV8353RS-EVM

    • "The GPIO29 is connected to the DRV8353 enable pin. So you need to set the S2 on LAUNCHXL-F280025C to (1:1) position, GPIO28&GPIO29 need to be routed to the BP header by setting SEL1 of S2 to 1 (Close to the USB emulator). Sorry for without this notes directly in the lab guide, you have to find this setting in the LAUNCHXL-F280025C user's guide. We will reverse this document with this notes."
    • "It seems like the lab runs well, you might follow the lab to check the other variables/signals output. The below code is removed in the release code. You can add it in the motor1CtrlISR() in motor1_drive.c file if you want. motorVars_M1.ISRCount++;"
  • Yanming,

    On another note, my offset_V_sf values are exactly zero and not "about 0.5" as the user guides suggests (see below). Is this okay at build level 1, or is there something I need to fix? I just want to anticipate if this will be a problem later.

  • Yes. You need to set the S2 to link the GPIO28/29 to J1 of BP for controlling the EN pin of DRV8323.

    It's not right if you have added the 24V DC power supply for the BOOSTXL-DRV8323RS and InstaSPIN-FOC is using.

    It's ok if you just want to run the motor with sensored-FOC or sensorless-FOC with eSMO.