[SOLVED] Automation (SDK) - Using a single JLINK device to access multiple CPUS on JTAG chain

  • Hello

    we are planning a PCB which has 4 M4 CPUs, all connected to one JTAG chain.
    Is it possible to use one JLINK device to access all CPUs?

    In addition, we use JLink SDK for automation. Can you explain how to use JLink SDK in order to communicate with all CPUs (assuming we close and open communication channel for each CPU)

    For example, how to configure so that JLINKARM_Open communicates with a specific CPU.

    Many Thanks!

    Hila

  • Hi Hila,


    Quote

    Is it possible to use one JLINK device to access all CPUs?


    Yes, it is.

    Quote

    assuming we close and open communication channel for each CPU


    Sorry, I do not understand what you want say. What to mean by "channel"?

    Quote

    For example, how to configure so that JLINKARM_Open communicates with a specific CPU.


    JLINKARM_Open() opens a connections to a J-Link, not to a target!
    Connecting to the target is done with JLINKARM_Connect().

    In order to connect to a specific device in the chain (otherwise J-Link connects to the first device that matches the given target device/core name) you need to specify IRPre and DRPre using JLINKARM_ConfigJTAG().

    This is also explained in UM8002.

    Best regards,
    Niklas

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!