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.

DRV8301-HC-C2-KIT: Bad Hall Sensor GPIO definition in Lab 11e

Part Number: DRV8301-HC-C2-KIT
Other Parts Discussed in Thread: CONTROLSUITE, MOTORWARE, DRV8301

I am using the DRV8301-HC-C2-KIT and ran into a problem with the Motorware lab11e example for BLDC motor operation with hall sensors.  I found that the hal.h header file for this lab defines GPIO_26 to GPIO_28 as the hall sensor inputs when using the J10 connector for the hall signals.  However, the motor ware schematic (located at ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105\~DRV830x-HC-EVM-HWdevPkg\DRV830x_RevD_HWDevPKG\Schematic\515502~1.PDF) shows the J10 signals routed to GPIO_40 to GPIO_42.   When I changed the hal.h header to reference these inputs, the code finally worked correctly.  Until then the was no commutation and the windings would just buzz when trying to run.

I am now trying to find out where I went wrong.  I am guessing that I somehow loaded the example programs a different eval board.  The ones I used were from the folder, ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\drv8301kit_revD.   Should I have used a different set of examples?

Thank you.

  • You are right, you need to change the input pins to GPIO40, 41, and 42 in hal.h if you are using the J10 of DRV8301-HC-C2-KIT with the F2806xF/M controlCard, and make sure these 3 GPIOs is set to input direction in HAL_setupGpios() in hal.c.
    And you must connect the Hall A/B/C signals to J4/J10 in the correct order according to the gHall_PwmIndex[8] and the order of motor lines.

    Please post some current waveform pictures to show the running state with hall commutation if you have further questions. Thanks.
  • Hi Tom

    You are correct, there is a mistake in the hal.h for the drv8301_revd_kit with F2806x controlCards. The fix that you made was appropriate

    Sean