Wednesday, February 21st 2018, 8:34am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

hilamiranda

Beginner

Date of registration: Feb 26th 2008

Posts: 30

Location: Israel

1

Thursday, June 5th 2014, 10:13am

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

hilamiranda

Beginner

Date of registration: Feb 26th 2008

Posts: 30

Location: Israel

2

Tuesday, June 10th 2014, 12:28pm

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

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

3

Friday, June 20th 2014, 9:51am

Hi Hila,

Quoted

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. :)

Quoted

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.

Quoted

Is there a better solution to our problem?

Yes:

C/C++ Source code

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



- Alex