
4.2.3 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"}
Operation
SBAU388A – SEPTEMBER 2021 – REVISED FEBRUARY 2022
TMAG5170UEVM
9
Copyright © 2022 Texas Instruments Incorporated