SBAU388C September   2021  – February 2024 TMAG5170 , TMAG5170-Q1

 

  1.   1
  2.   TMAG5170 Evaluation Module Abstract
  3. 1Trademarks
  4. 2Overview
    1. 2.1 Kit Contents
    2. 2.2 Related Documentation From Texas Instruments
  5. 3Hardware
    1. 3.1 Features
  6. 4Operation
    1. 4.1 Quick Start Setup
    2. 4.2 EVM Operation
      1. 4.2.1 Setup
        1. 4.2.1.1 Driver Installation
        2. 4.2.1.2 Firmware
          1. 4.2.1.2.1 Firmware Debug
        3. 4.2.1.3 GUI Setup and Usage
          1. 4.2.1.3.1 Initial Setup
          2. 4.2.1.3.2 GUI Operation
      2. 4.2.2 Rotate and Push Demo
      3. 4.2.3 Direct EVM Serial Communication
  7. 5Schematics, PCB Layout, and Bill of Materials
    1. 5.1 Schematics
    2. 5.2 PCB Layout
    3. 5.3 Bill of Materials
  8. 6Revision History

Direct EVM Serial Communication

If desired, you can directly communicate with the TI-SCB without the use of the GUI through the USB serial (COM) port. Simply send the desired command string over the serial port and receive the results. This is useful for interfacing the EVM with custom setups/scripts/GUIs. To read and write registers, follow the below format:

  • Read register format: rreg ADR
    • Where ADR is the address in hex, and rreg is always lower case
    • Register addresses can be in upper or lower case, and do not need to be led by '0x'. The 0 padding register addresses is also optional. For example, to read register address 0xA, some valid commands include:
      • rreg a
      • rreg 0A
      • rreg 0x0A
        • When '0x' is used, the 'x' must be lower case.
    • For the above example, the EVM would return the results in JSON format

      {"acknowledge":"rreg 0x0A"}

      {"register":{"address":10,:"value":65488}}

      {"evm_state":"idle"}

  • Write register format: wreg ADR VAL
    • where ADR and VAL are in hex, and wreg is always lower case
    • Register addresses and values can be in upper or lower case, and do not need to be led by '0x'. The 0 padding register addresses and values is also optional. For example, to write register address 0x1 with the value 0x01c0, some valid commands include:
      • wreg 1 1c0
      • wreg 01 0x1c0
      • wreg 0x01 0x01C0
        • When '0x' is used, the 'x' must be lower case.
    • For the above example, the EVM would return the results in JSON format:

      {"acknowledge":"wreg 0x01 0x01C0"}

      {"console":"Writing 0x1c0 to SENSOR_CONFIG register"}

      {"evm_state":"idle"}