CC2340R5: Getting TI Log Tool to run on Linux

Part Number: CC2340R5

Tool/software:

Hello everyone,

I know the TI Log Tool has limited official support for Linux, but I managed to get it running on Ubuntu 24.04 after making two small modifications and wanted to share the solution.

I followed the instructions in the TI Log Tool User's Guide, but a couple of changes were necessary:

  1. Remove the Wireshark dependency: In the requirements.txt file (located in the tilogger root folder), I had to remove the line for the Wireshark module, as it is not compatible with Linux.

     -----------------------------
  2. Modify the UART script: I changed a line in the file tiutils/streams/uart/tilogger_uart_transport/uart_to_log.py.

    • From:

      value = struct.unpack("L", ts_format)[0]
    • To:

      value = struct.unpack("I", ts_format)[0]


Reason for the code change:
On Windows, the format character 'L' is interpreted as a 4-byte unsigned long and works as expected. However, on 64-bit Linux, it is treated as an 8-byte value, which causes an error while decoding the log messages from the UART. Changing it to 'I' ensures it is consistently handled as a 4-byte unsigned integer.

Hope this helps someone else!