2. flash_lauterbach

2.1. Lauterbach Flasher

module:

flash_lauterbach

synopsis:

used to flash through lauterbach probe.

class pykiso.lib.connectors.flash_lauterbach.LauterbachFlasher(t32_exc_path=None, t32_config=None, t32_script_path=None, t32_api_path=None, port=None, node='localhost', packlen='1024', device=1, **kwargs)[source]

Connector used to flash through one and only one Lauterbach probe using Trace32 as remote API.

Initialize attributes with configuration data.

Parameters:
  • t32_exc_path (str) – full path of Trace32 app to execute

  • t32_config (str) – full path of Trace32 configuration file

  • t32_script_path (str) – full path to .cmm flash script to execute

  • t32_api_path (str) – full path of remote api

  • port (str) – port number used for UDP communication

  • node (str) – node name (default localhost)

  • packlen (str) – data pack length for UDP communication (default 1024)

  • device (int) – configure device number given by Trace32 (default 1)

close()[source]

Close UDP socket and shut down Trace32 App.

Return type:

None

flash()[source]

Flash software using configured .cmm script.

Return type:

None

The Flash command leads to the following sub-tasks execution :
  • Send to Trace32 CD.DO internal command (execute script)

  • Wait until script is finished

  • Get script execution verdict

Raises:

Exception – if Trace32 error occurred during flash.

open()[source]

Open UDP socket between ITF and Trace32 loaded app.

The open command leads to the following sub-tasks execution: :rtype: None

  • Open a Trace32 app

  • Load remote API using ctypes

  • Configure UPD channel (Port/buffer size…)

  • Open UDP connection

  • Make a ping request

class pykiso.lib.connectors.flash_lauterbach.MessageLineState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Use to determine Message reading command.

class pykiso.lib.connectors.flash_lauterbach.ScriptState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Use to determine script command execution.