[SOLVED]Please help: Can I run command sets by JLink.exe window?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED]Please help: Can I run command sets by JLink.exe window?

    I can try many command by JLink.exe separately, for example "w1 0x1000,0x55", "mem 0x1000,1", and so on.
    Can I use a command file to gather many sequential commands and run by JLink.exe or other Jlink window?
    For example, in file "test.txt":
    w1 0x1000,0x55
    w1 0x1001,0xaa
    mem 0x1000,2
    ......

    How to load the command file to JLink?
    Please help with this.
    Any comment will be great appreciated.

    Xuewen
  • Hi Xuewen,

    simple:

    Create a script file (in your case test.txt) which contains all commands that shall be executed (one per line).
    Call JLink.exe as follows (sample path to script file):

    JLink.exe C:\Work\test.txt


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.