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.

TMAG5273: TMAG5273 - eval board - LED control - or GPIO - via commands

Part Number: TMAG5273
Other Parts Discussed in Thread: TI-SCB

Hello Team,

the TMAG5273 evaluation board, controlled via the SCB board, enables sending commands via the serial port, without the need of using the GUI.

for example:

Send:

rreg 0x12

 

Receive:

{"acknowledge":"rreg 0x12"}

{"register":{"address":18,"value":16}}

{"evm_state":"idle"}

is it possible via similar command to control a LED on the board or a GPIO already on the connector (to which connect a LED?).

The idea is to control a LED depending on the read out results. 

Thanks,

SunSet

  • SunSet,

    This could certainly be done, but it would require writing custom firmware.  If desired, a JTAG connection point is accessible on TI-SCB which would allow for a connection to an external controller to overwrite the existing firmware.  This would need to be supported by the customer since we have not published the firmware code for the EVM.  If they wrote their own firmware, they would very likely end up losing the ability to use the GUI, but they could setup their own custom commands and control everything over the serial port.

    If desired, it would even be possible to write the firmware to initialize the device and setup the read controls.  The MCU could handle logic regarding the LED.  Then the EVM could be used as a visual indicator without even monitoring the serial port.  

    Thanks,

    Scott

  • ...but this, in short, it means that today firmware does not support a command to write a GPIO.

    Probably it could be handy considering that it is possible to send commands via the serial terminal.

    The goal of sending the command to control a GPIO is to avoid the programming and make simple script changes on their test environment.

    Writing a custom code, would then make the use of the SCB not needed any longer.

    Any MCU board could be used.

    Enabling the GPIO command enable an easy way to control a LED / create a trigger for the testing environment.

    Thanks,

    SunSet

  • Sunset,

    You are correct here.  The current firmware doesn't have this function built in, but it is a very good recommendation for future development. We may look into setting this up on any future releases, but for right now, the user would have to own this type of development.

    Thanks,

    Scott