CC2340R5: logging function

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi,

customer tried to enable the logging function regarding the SDK User's Guide:
https://dev.ti.com/tirex4-desktop/explore/content/simplelink_lowpower_f3_sdk_9_11_00_18/docs/zigbee/html/debugging/inc_logging_feature.html?highlight=log 

He activated the Log Module in sysconfig and choose UART as Sink.

der  ti_log_Log_ENABLE flag is defined:

He can find the correct files ti_log_config.s/.d/.h in the directory Debug/syscfg. 

But the Log_printf is not defined and runs into nowhere. At debug it shows that is not activated and it is stepped over. Compiler optimisation is -O0. The IDE function Expand Makro will also vanish it.

How can the logging over UART be activated?

Regards, Holger

  • Hi Holger,

    It's not clear what example this is based off.  There there are clear instructions in a SimpleLink Academy Lab as well: https://dev.ti.com/tirex/explore/node?node=A__ARAJIfGVesVIAWpXnZI8Iw__SIMPLELINK-ACADEMY-CC23XX__gsUPh5j__LATEST 

    If Zigbee like suggested with the UG hyperlink then "Enable Logging" should be selected in the SysConfig -> Zigbee module, where further "Zigbee...Log Configuration" windows are then shown.  They would then continue to utilize the TI Log Tool as described in the documentation.

    Regards,
    Ryan

  • Hi Ryan,

    do we have an example with log function?

    Regards, Holger

  • Yes the Zigbee examples are prepared with logging enabled once the SysConfig button is selected and the project is rebuilt.

    Regards,
    Ryan

  • Hi Ryan,
    he did step by step as in the description:
    https://dev.ti.com/tirex/explore/content/simplelink_academy_for_cc23xx_8_40_01_00/_build_simplelink_academy_for_cc23xx_8_40_01_00/source/debug/cc23xx_debugging_logging.html#bonus-task-add-logging-to-an-rf-driver-example

    The Log_printf marco is not compiled und is skipped when stepping debuging.

    Also stepping into the macro showed that the contain is empty.

    Regards, Holger

  • That's the correct SLA but not yet correctly applied to a Zigbee project

    Notice the LogModule_Zigbee_App name.

    Regards,
    Ryan

  • Hi Ryan,
    By changing the name to LogModule_Zigbee_app, he could actually see that characters are being output to the UART. He first read this with a terminal. 


    Can it be that logging is not done in ASCII format, but is interpreted by the tilogger in a different way?
    Unfortunately, the attempt to commission the tilogger also failed.
    Python 3.10 is now deprivated and it has been difficult to install it with our IT rules. Now he has installed the tilogger as follows: 
    PS C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiutils> py -3.10 -m venv .env
    PS C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiutils> .\.env\Scripts\activate
    (.env) PS C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiutils> python -m pip install -r requirements.txt

    The first call of the tilogger
    (.env) PS C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiutils> tilogger --help
    However, results in an error that the ctx is not specified in one of the libraries: 

    Usage: tilogger [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...

    Parse LogSinkITM and LogSinkUART log output, or use replay file functionality to store/replay log streams. This tool may be used to instantiate a serial port parser for the ITM and UART Log Sinks. The tool receives logs generated with the Log.h API and reconstructs and displays the log output by using the encoded metadata in the toolchain-generated ELF output. A simple invocation (provided Wireshark is installed) is 
    tilogger --elf path/to/elf.out itm COM3 12000000 wireshark  --start

    ╭───────────── Traceback (most recent call last) ─────────────╮
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\Scripts\tilogger-script.py:33 in <module>           │
    │                                                             │
    │   30                                                        │
    │   31 if __name__ == '__main__':                             │
    │   32 │   sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ' │
    │ ❱ 33 │   sys.exit(load_entry_point('tilogger==0.2.0', 'cons │
    │   34                                                        │
    │                                                             │
    │ ╭─────────────────────── locals ───────────────────────╮    │
    │ │  re = <module 're' from 'C:\\Python310\\lib\\re.py'> │    │
    │ │ sys = <module 'sys' (built-in)>                      │    │
    │ ╰──────────────────────────────────────────────────────╯    │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\tilogger\logger.py:237 in main    │
    │                                                             │
    │   234 │   │   subtyper(logger_cli)                          │
    │   235 │   │   # logger_cli.add_typer(subtyper, name=entry_p │
    │   236 │                                                     │
    │ ❱ 237 │   logger_cli()                                      │
    │   238                                                       │
    │   239                                                       │
    │   240 if __name__ == "__main__":                            │
    │                                                             │
    │ ╭──────────────────────── locals ─────────────────────────╮ │
    │ │ entry_point = EntryPoint.parse('stdout =                │ │
    │ │               tilogger_stdout.main:output_factory_cli') │ │
    │ ╰─────────────────────────────────────────────────────────╯ │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\typer\main.py:340 in __call__     │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\typer\main.py:323 in __call__     │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\click\core.py:1462 in __call__    │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\typer\core.py:743 in main         │
    │                                                            
    ││ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\typer\core.py:197 in _main        │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\click\core.py:1206 in             │
    │ make_context                                                │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\click\core.py:1806 in parse_args  │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\click\core.py:1217 in parse_args  │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\click\core.py:2516 in             │
    │ handle_parse_result                                         │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\click\core.py:2411 in             │
    │ process_value                                               │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\click\decorators.py:539 in        │
    │ show_help                                                   │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\click\core.py:750 in get_help     │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\click\core.py:1084 in get_help    │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\typer\core.py:757 in format_help  │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\typer\rich_utils.py:610 in        │
    │ rich_format_help                                            │
    │                                                             │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_01_19\tools\log\tiuti │
    │ ls\.env\lib\site-packages\typer\rich_utils.py:369 in        │
    │ _print_options_panel                                        │
    ╰─────────────────────────────────────────────────────────────╯
    TypeError: Parameter.make_metavar() missing 1 required
    positional argument: 'ctx'

    Do the version dependencies have to be checked? 

    Regards, Holger

  • Hi Holger,

    When there any warnings when installing the requirements.txt in the virtual environment?  Have they tried installing the tool globally instead?  What happens when they try to invoke tilogger without using the --help option?  Keep in mind that the default baud rate is 3000000, the COM port selection should align with the Application UART of the LP found in the Device Manager, and that the project's *.out build file for which Logging has been enabled should be referenced.

    Regards,
    Ryan

  • Hi Ryan,
    he has installed in both ways, in .venv and globally. The error messages are the same in both cases. In the appendix he has attached installation logs for global and venv installation.

    In the following it can be seen that tilogger --help leads to the "TypeError: Parameter.make_metavar() missing 1 required positional argument: 'Ctx'".
    A call without --help generally seems to work with the error message that arguments are missing.

    The log to the stdout seems to work (section ## try log to stdout in "tilogger_install_log(glob).text)
    Login to Wireshark (section ## try log to wireshark in tilogger_install_log(glob).txt) fails with error message "wireshark: Invalid -o flag "UAT:user_DLTs:"User 0 (DLT=1)","tilogger","0",","0","""": User_DLTs:147: Dissector not found"
    Is there still a Wireshark plugin needed? 

    Can we have a call with the customer?

    Regards, Holger

    PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils> py -3.10 -m pip install -r requirements.txt
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\core
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\itm
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\uart
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\wireshark
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\stdout
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\to_replayfile
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\from_replayfile
      Preparing metadata (setup.py) ... done
    Collecting pyserial>=3.5
      Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
    Collecting pyelftools==0.31
      Using cached pyelftools-0.31-py3-none-any.whl (180 kB)
    Collecting construct==2.10.70
      Using cached construct-2.10.70-py3-none-any.whl (63 kB)
    Collecting appdirs==1.4.4
      Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
    Collecting watchdog==6.0.0
      Using cached watchdog-6.0.0-py3-none-win_amd64.whl (79 kB)
    Collecting typer==0.15.1
      Using cached typer-0.15.1-py3-none-any.whl (44 kB)
    Collecting colorama==0.4.6
      Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
    Collecting coloredlogs
      Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
    Collecting typing-extensions>=3.7.4.3
      Using cached typing_extensions-4.15.0-py3-none-any.whl (44 kB)
    Collecting click>=8.0.0
      Using cached click-8.3.0-py3-none-any.whl (107 kB)
    Collecting rich>=10.11.0
      Using cached rich-14.1.0-py3-none-any.whl (243 kB)
    Collecting shellingham>=1.3.0
      Using cached shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
    Requirement already satisfied: pywin32==308 in c:\python310\lib\site-packages (from tilogger-wireshark-output==0.2.0->-r requirements.txt (line 4)) (308)
    Collecting humanfriendly>=9.1
      Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
    Requirement already satisfied: pyreadline3 in c:\python310\lib\site-packages (from humanfriendly>=9.1->coloredlogs->tilogger==0.2.0->-r requirements.txt (line 1)) (3.5.4)
    Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\python310\lib\site-packages (from rich>=10.11.0->typer==0.15.1->tilogger==0.2.0->-r requirements.txt (line 1)) (2.19.2)
    Requirement already satisfied: markdown-it-py>=2.2.0 in c:\python310\lib\site-packages (from rich>=10.11.0->typer==0.15.1->tilogger==0.2.0->-r requirements.txt (line 1)) (4.0.0)
    Requirement already satisfied: mdurl~=0.1 in c:\python310\lib\site-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer==0.15.1->tilogger==0.2.0->-r requirements.txt (line 1)) (0.1.2)
    Installing collected packages: pyserial, pyelftools, appdirs, watchdog, typing-extensions, shellingham, humanfriendly, construct, colorama, rich, coloredlogs, click, typer, tilogger-wireshark-output, tilogger-uart-transport, tilogger-to-replayfile-output, tilogger-stdout-output, tilogger-itm-transport, tilogger-from-replayfile-output, tilogger
      DEPRECATION: tilogger-wireshark-output is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-wireshark-output ... done
      DEPRECATION: tilogger-uart-transport is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-uart-transport ... done
      DEPRECATION: tilogger-to-replayfile-output is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-to-replayfile-output ... done
      DEPRECATION: tilogger-stdout-output is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-stdout-output ... done
      DEPRECATION: tilogger-itm-transport is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-itm-transport ... done
      DEPRECATION: tilogger-from-replayfile-output is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-from-replayfile-output ... done
      DEPRECATION: tilogger is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger ... done
    Successfully installed appdirs-1.4.4 click-8.3.0 colorama-0.4.6 coloredlogs-15.0.1 construct-2.10.70 humanfriendly-10.0 pyelftools-0.31 pyserial-3.5 rich-14.1.0 shellingham-1.5.4 tilogger-0.2.0 tilogger-from-replayfile-output-0.2.0 tilogger-itm-transport-0.2.0 tilogger-stdout-output-0.2.0 tilogger-to-replayfile-output-0.2.0 tilogger-uart-transport-0.2.0 tilogger-wireshark-output-0.2.0 typer-0.15.1 typing-extensions-4.15.0 watchdog-6.0.0
    
    [notice] A new release of pip available: 22.3.1 -> 25.2
    [notice] To update, run: python.exe -m pip install --upgrade pip
    
    
    PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils> tilogger --help
    
     Usage: tilogger [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
    
     Parse LogSinkITM and LogSinkUART log output, or use replay file functionality to store/replay log streams.
     This tool may be used to instantiate a serial port parser for the ITM and UART Log Sinks. The tool receives logs generated with the Log.h API and reconstructs and displays the log output
     by using the encoded metadata in the toolchain-generated ELF output.
     A simple invocation (provided Wireshark is installed) is
     tilogger --elf path/to/elf.out itm COM3 12000000 wireshark --start
    
    ┌──────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────────────────────────────┐
    │ C:\Python310\Scripts\tilogger-script.py:33 in <module>                                                                                                                                    │
    │                                                                                                                                                                                           │
    │   30                                                                                          ┌─────────────────────── locals ───────────────────────┐                                    │
    │   31 if __name__ == '__main__':                                                               │  re = <module 're' from 'C:\\Python310\\lib\\re.py'> │                                    │
    │   32 │   sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])                    │ sys = <module 'sys' (built-in)>                      │                                    │
    │ > 33 │   sys.exit(load_entry_point('tilogger==0.2.0', 'console_scripts', 'tilogger')())       └──────────────────────────────────────────────────────┘                                    │
    │   34                                                                                                                                                                                      │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\tilogger\logger.py:237 in main                                                                                                                             │
    │                                                                                                                                                                                           │
    │   234 │   │   subtyper(logger_cli)                                                                                                                                                        │
    │   235 │   │   # logger_cli.add_typer(subtyper, name=entry_point.name)                                                                                                                     │
    │   236 │                                                                                                                                                                                   │
    │ > 237 │   logger_cli()                                                                                                                                                                    │
    │   238                                                                                                                                                                                     │
    │   239                                                                                                                                                                                     │
    │   240 if __name__ == "__main__":                                                                                                                                                          │
    │                                                                                                                                                                                           │
    │ ┌───────────────────────────────────────── locals ─────────────────────────────────────────┐                                                                                              │
    │ │ entry_point = EntryPoint.parse('wireshark = tilogger_wireshark.main:output_factory_cli') │                                                                                              │
    │ └──────────────────────────────────────────────────────────────────────────────────────────┘                                                                                              │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\typer\main.py:340 in __call__                                                                                                                              │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\typer\main.py:323 in __call__                                                                                                                              │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\click\core.py:1462 in __call__                                                                                                                             │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\typer\core.py:743 in main                                                                                                                                  │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\typer\core.py:197 in _main                                                                                                                                 │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\click\core.py:1206 in make_context                                                                                                                         │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\click\core.py:1806 in parse_args                                                                                                                           │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\click\core.py:1217 in parse_args                                                                                                                           │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\click\core.py:2516 in handle_parse_result                                                                                                                  │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\click\core.py:2411 in process_value                                                                                                                        │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\click\decorators.py:539 in show_help                                                                                                                       │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\click\core.py:750 in get_help                                                                                                                              │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\click\core.py:1084 in get_help                                                                                                                             │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\typer\core.py:757 in format_help                                                                                                                           │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\typer\rich_utils.py:610 in rich_format_help                                                                                                                │
    │                                                                                                                                                                                           │
    │ C:\Python310\lib\site-packages\typer\rich_utils.py:369 in _print_options_panel                                                                                                            │
    └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
    TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'
    
    
    PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils> tilogger
    Usage: tilogger [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
    Try 'tilogger --help' for help.
    ┌─ Error ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
    │ Missing command.                                                                                                                                                                          │
    └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
    PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils>
    
    
    

    Windows PowerShell
    Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
    
    Installieren Sie die neueste PowerShell für neue Funktionen und Verbesserungen! https://urldefense.com/v3/__https://aka.ms/PSWindows__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZlj_Am-Y$ 
    
    Das Laden von persönlichen und Systemprofilen dauerte 722 ms.
    PS C:\WINDOWS\system32> cd C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\
    PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils> py -3.10 -m venv .venv
    PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils> .\.venv\Scripts\activate.ps1
    (.venv) PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils> py --version
    Python 3.10.10
    (.venv) PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils> py -m pip install -r requirements.txt
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\core
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\itm
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\uart
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\wireshark
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\stdout
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\to_replayfile
      Preparing metadata (setup.py) ... done
    Processing c:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\streams\from_replayfile
      Preparing metadata (setup.py) ... done
    Collecting pyserial>=3.5
      Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
    Collecting pyelftools==0.31
      Using cached pyelftools-0.31-py3-none-any.whl (180 kB)
    Collecting construct==2.10.70
      Using cached construct-2.10.70-py3-none-any.whl (63 kB)
    Collecting appdirs==1.4.4
      Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
    Collecting watchdog==6.0.0
      Using cached watchdog-6.0.0-py3-none-win_amd64.whl (79 kB)
    Collecting typer==0.15.1
      Using cached typer-0.15.1-py3-none-any.whl (44 kB)
    Collecting colorama==0.4.6
      Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
    Collecting coloredlogs
      Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
    Collecting shellingham>=1.3.0
      Using cached shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
    Collecting typing-extensions>=3.7.4.3
      Using cached typing_extensions-4.15.0-py3-none-any.whl (44 kB)
    Collecting rich>=10.11.0
      Using cached rich-14.1.0-py3-none-any.whl (243 kB)
    Collecting click>=8.0.0
      Using cached click-8.3.0-py3-none-any.whl (107 kB)
    Collecting pywin32==308
      Using cached pywin32-308-cp310-cp310-win_amd64.whl (6.6 MB)
    Collecting humanfriendly>=9.1
      Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
    Collecting pyreadline3
      Using cached pyreadline3-3.5.4-py3-none-any.whl (83 kB)
    Collecting markdown-it-py>=2.2.0
      Using cached markdown_it_py-4.0.0-py3-none-any.whl (87 kB)
    Collecting pygments<3.0.0,>=2.13.0
      Using cached pygments-2.19.2-py3-none-any.whl (1.2 MB)
    Collecting mdurl~=0.1
      Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
    Installing collected packages: pywin32, pyserial, pyelftools, appdirs, watchdog, typing-extensions, shellingham, pyreadline3, pygments, mdurl, construct, colorama, markdown-it-py, humanfriendly, click, rich, coloredlogs, typer, tilogger-wireshark-output, tilogger-uart-transport, tilogger-to-replayfile-output, tilogger-stdout-output, tilogger-itm-transport, tilogger-from-replayfile-output, tilogger
      DEPRECATION: tilogger-wireshark-output is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-wireshark-output ... done
      DEPRECATION: tilogger-uart-transport is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-uart-transport ... done
      DEPRECATION: tilogger-to-replayfile-output is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-to-replayfile-output ... done
      DEPRECATION: tilogger-stdout-output is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforcethis behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-stdout-output ... done
      DEPRECATION: tilogger-itm-transport is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforcethis behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-itm-transport ... done
      DEPRECATION: tilogger-from-replayfile-output is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger-from-replayfile-output ... done
      DEPRECATION: tilogger is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://urldefense.com/v3/__https://github.com/pypa/pip/issues/8559__;!!G3vK!U6i0unOXDnwUhTw4rgmD_vmiB0zQ9E6SwUfyCLoymXoqdcprtzXcGS3dkxXWvKSkFWbx6onJe50uZmvuBllB$ 
      Running setup.py install for tilogger ... done
    Successfully installed appdirs-1.4.4 click-8.3.0 colorama-0.4.6 coloredlogs-15.0.1 construct-2.10.70 humanfriendly-10.0 markdown-it-py-4.0.0 mdurl-0.1.2 pyelftools-0.31 pygments-2.19.2 pyreadline3-3.5.4 pyserial-3.5 pywin32-308 rich-14.1.0 shellingham-1.5.4 tilogger-0.2.0 tilogger-from-replayfile-output-0.2.0 tilogger-itm-transport-0.2.0 tilogger-stdout-output-0.2.0 tilogger-to-replayfile-output-0.2.0 tilogger-uart-transport-0.2.0 tilogger-wireshark-output-0.2.0 typer-0.15.1 typing-extensions-4.15.0 watchdog-6.0.0
    
    [notice] A new release of pip available: 22.3.1 -> 25.2
    [notice] To update, run: python.exe -m pip install --upgrade pip
    (.venv) PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils>
    
    
    (.venv) PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils> tilogger --help
    
     Usage: tilogger [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
    
     Parse LogSinkITM and LogSinkUART log output, or use replay file functionality to store/replay log streams.
     This tool may be used to instantiate a serial port parser for the ITM and UART Log Sinks. The tool receives logs generated with the Log.h API and reconstructs and displays the log output by using the encoded
     metadata in the toolchain-generated ELF output.
     A simple invocation (provided Wireshark is installed) is
     tilogger --elf path/to/elf.out itm COM3 12000000 wireshark --start
    
    ╭────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────────╮
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\Scripts\tilogger-script.py:33 in <module>                                                                                                 │
    │                                                                                                                                                                                                               │
    │   30                                                                                          ╭─────────────────────── locals ───────────────────────╮                                                        │
    │   31 if __name__ == '__main__':                                                               │  re = <module 're' from 'C:\\Python310\\lib\\re.py'> │                                                        │
    │   32 │   sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])                    │ sys = <module 'sys' (built-in)>                      │                                                        │
    │ ❱ 33 │   sys.exit(load_entry_point('tilogger==0.2.0', 'console_scripts', 'tilogger')())       ╰──────────────────────────────────────────────────────╯                                                        │
    │   34                                                                                                                                                                                                          │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\tilogger\logger.py:237 in main                                                                                          │
    │                                                                                                                                                                                                               │
    │   234 │   │   subtyper(logger_cli)                                                             ╭───────────────────────────────────────── locals ─────────────────────────────────────────╮                   │
    │   235 │   │   # logger_cli.add_typer(subtyper, name=entry_point.name)                          │ entry_point = EntryPoint.parse('wireshark = tilogger_wireshark.main:output_factory_cli') │                   │
    │   236 │                                                                                        ╰──────────────────────────────────────────────────────────────────────────────────────────╯                   │
    │ ❱ 237 │   logger_cli()                                                                                                                                                                                        │
    │   238                                                                                                                                                                                                         │
    │   239                                                                                                                                                                                                         │
    │   240 if __name__ == "__main__":                                                                                                                                                                              │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\typer\main.py:340 in __call__                                                                                           │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\typer\main.py:323 in __call__                                                                                           │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\click\core.py:1462 in __call__                                                                                          │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\typer\core.py:743 in main                                                                                               │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\typer\core.py:197 in _main                                                                                              │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\click\core.py:1206 in make_context                                                                                      │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\click\core.py:1806 in parse_args                                                                                        │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\click\core.py:1217 in parse_args                                                                                        │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\click\core.py:2516 in handle_parse_result                                                                               │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\click\core.py:2411 in process_value                                                                                     │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\click\decorators.py:539 in show_help                                                                                    │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\click\core.py:750 in get_help                                                                                           │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\click\core.py:1084 in get_help                                                                                          │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\typer\core.py:757 in format_help                                                                                        │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\typer\rich_utils.py:610 in rich_format_help                                                                             │
    │                                                                                                                                                                                                               │
    │ C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils\.venv\lib\site-packages\typer\rich_utils.py:369 in _print_options_panel                                                                         │
    ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
    TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'
    
    
    (.venv) PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils> tilogger
    Usage: tilogger [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
    Try 'tilogger --help' for help.
    ╭─ Error ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ Missing command.                                                                                                                                                                                              │
    ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
    (.venv) PS C:\ti\simplelink_lowpower_f3_sdk_9_11_00_18\tools\log\tiutils>
    

  • A call without --help generally seems to work with the error message that arguments are missing.

    The log to the stdout seems to work (section ## try log to stdout in "tilogger_install_log(glob).text)

    This would appear to be progress.  I have also observed similar issues with the "--help" option but ultimately it sounds like the log functionality is working.

    Login to Wireshark (section ## try log to wireshark in tilogger_install_log(glob).txt) fails with error message "wireshark: Invalid -o flag "UAT:user_DLTs:"User 0 (DLT=1)","tilogger","0",","0","""": User_DLTs:147: Dissector not found"
    Is there still a Wireshark plugin needed? 

    Have they followed instructions for Configuring Wireshark, which includes dissector installation?

    Can we have a call with the customer?

    Please have them exhaust the TI log README instructions and test with multiple computers if possible.  Note that I am on PTO from 9/24 through 9/26.

    Regards,
    Ryan

  • Hi Ryan,

    the chapter with the .lua file he actually overlooked. Now Wireshark starts from the tilogger. However, the capture window remains empty. However, the module sends data as seen with the stdout method. 

    Since the help call does not work for him, would it be possible to send the help contents in a text file? 

    Regards, Holger

  • You can refer to the TI Log document for the contents of the help command.

    Regards,

    Ryan

  • you mean under here:

    TI Log Tool User's Guide