JLink Automation - how to use SDK for A9 dual core

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

  • JLink Automation - how to use SDK for A9 dual core

    Hello,


    We use JLink SDK to develop tests for a solution that include A9 Dual Core. We have JLink SDK version 4.62.


    Our goal is to use one JLink to access both cores - read\write memory, read Program Counter, etc. We do not need to access them both at the same time but we would like to switch between cores in the same test programs.

    Is this supported by the JLink SDK? Is there a sample code of how to use the SDK for dual core interface?

    Thanks in Advance,
    Hila
  • Hi Again,

    I did not see any response, is it because dual core access is not integrated in the SDK yet?

    In the meanwhile we use the following workaround:

    When we switch between cores, we override Default.JlinkScript with a JlinkScript which matches the Core we want to access and them use JLiNK_ARM_Open() to establish connection

    Functional but very ugly.

    Is there a better solution to our problem?

    Thanks in Advance

    Hila
  • Hi Hila,

    I did not see any response, is it because dual core access is not integrated in the SDK yet?

    Sorry for the late reply.
    No, it is because these are busy days. :)

    When we switch between cores, we override Default.JlinkScript with a JlinkScript which matches the Core we want to access and them use JLiNK_ARM_Open() to establish connection

    The Default.JLinkScript is only a generic method for IDEs etc. which do not support explicit selection of a J-Link script file.

    Is there a better solution to our problem?

    Yes:

    C Source Code

    1. JLINKARM_Open();
    2. JLINKARM_ExecCommand("ScriptFile=ScriptCore0.jlinkscript", NULL, 0);
    3. JLINKARM_Connect();
    4. [...]
    5. JLINKARM_Close();
    6. //
    7. // Connect to core 1
    8. //
    9. JLINKARM_Open();
    10. JLINKARM_ExecCommand("ScriptFile=ScriptCore1.jlinkscript", NULL, 0);
    11. JLINKARM_Connect();
    12. [...]
    13. JLINKARM_Close();
    Display All



    - Alex