Skip to main content

How to pass an argument to a TRACE32 .mem file? - Community / Test Automation - Lauterbach Support

3

How to pass an argument to a TRACE32 .mem file?

Put the menu into a PRACTICE script as an embedded menu block. Start the block with &+ to enable macro replacement in the embedded block.

You can pass the parameters for the menu to the embedding script using the PARAMETERS keyword.

Example:

;my_menu.cmm
LOCAL      &rootpath &user &board
PARAMETERS &rootpath &user &board

MENU.ReProgram
(&+
  ADD
  MENU
  (
    POPUP "&user"
    (
      DEFAULT
      MENUITEM "Disable watchdog"
      (
        DO "&rootpath/boards/&board/disable_wdg.cmm"
      )
    )
  )
)
ENDDO

Call with e.g.:

DO D:\my_menu.cmm "/home/user/t32" "MyName" "MyBoardName"

Add a comment

ID-0
To prove you are a human, please tell us the text you see in the CAPTCHA image