SDAA075 October   2025 CC2340R5

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 CC2340R5
    2. 1.2 DRV8329A
    3. 1.3 BLDC Motor
  5. 2BLDC Hardware
    1. 2.1 Hardware Setup
      1. 2.1.1 DRV8329AEVM Settings
    2. 2.2 Connection Diagram
  6. 3Running the Example
    1. 3.1 Dependencies
    2. 3.2 Loading Firmware
    3. 3.3 Motor Connection Test
    4. 3.4 BLDC Motor Hall Sensored Trap Operation With Bluetooth® LE
      1. 3.4.1 SimpleLink™ Connect Phone Application
  7. 4Firmware Design
    1. 4.1 Code Flow Description
    2. 4.2 Customized TI Drivers
      1. 4.2.1 PWM
      2. 4.2.2 ADCBuf
      3. 4.2.3 Power
    3. 4.3 Application Events
    4. 4.4 Commutation Table
    5. 4.5 Motor Acceleration
    6. 4.6 ADC Operations
    7. 4.7 Spin Detect Feature
    8. 4.8 Reporting Statistics
    9. 4.9 Bluetooth® LE Stack
  8. 5Tests and Results
  9. 6Summary
  10. 7References

Motor Connection Test

A test firmware setup is provided with the project to test the orientation of the motor phase connections on the DRV8329AEVM (OUTA, OUTB, OUTC) and monitor the hall effect sensor interrupts (HALLA, HALLB, HALLC) to determine whether the connection orientation is correct. This happens by outputting both the phase table and hall sensor positions through a UART terminal which uses the following settings: 921600 baud, 8 data bits, 1 stop bit, no parity, and no flow control. The COM Port is the same as the Application UART displayed in the computer system. PuTTY software is used on a Windows® operating system in the example below, but any UART terminal or operating system is acceptable so long as the correct settings are used.

Note that UART must be fully disabled in the application to allow for standby power consumption while the motor is not spinning, otherwise active mode is required to constantly monitor the RX pin. UART can be removed from application code by undefining USE_UART in the app_bldc_motor_control.c file.

CC2340R5 PuTTY UART OptionsFigure 3-3 PuTTY UART Options

To enable this option, add TEST_NO_HALL inside of the Project Properties -> Build -> Tools -> Arm Compiler -> Predefined Symbols. Then, rebuild and load the project.

CC2340R5 Predefined SymbolsFigure 3-4 Predefined Symbols

Once the BLDC motor main menu is displayed, press s on the keyboard (make sure the UART terminal window is actively selected) to start the motor at a 10% duty cycle in the forward direction (forward is considered to be counter-clockwise when looking directly at the rotor shaft). If the motor direction is reversed from expected, then consider swapping two of the OUT motor phases. Otherwise, press s once more to stop the motor (or reset the LaunchPad), then iterate changes to the HALL inputs on the DRV8329AEVM until the UART output follows the exact same sequence as shown. This is to make sure that the BLDC motor runs as expected when the hall sensors are enabled.

CC2340R5 BLDC Motor No Hall TestFigure 3-5 BLDC Motor No Hall Test