Friday, April 20th 2018, 6:28pm UTC+2

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.

sraza

Beginner

Date of registration: Jan 31st 2015

Posts: 8

1

Thursday, February 5th 2015, 6:12pm

Using Cortex M0 core on lpc 54102 with JLink and JLinkGDBServer.

Hi,

I am using JLinkGDBServer and gdb to debug and download my application on Cortex-M4 core of NXP LPC54102 board with JLink probe. The board along with a cortex M4 core also has a cortex M0 core available on it. JLink by default gets connected to Cortex-M4 core. Can someone please tell me that how can I access Cortex-M0 core of LPC54102 using JLinkGDBServer ?

Thanks in advance......

SEGGER - Erik

Super Moderator

Date of registration: Dec 20th 2011

Posts: 400

2

Friday, February 6th 2015, 5:37pm

Hi,

Currently the accessing the Cortex-M0 is not natively supported by the J-Link DLL.
This is something which is already on our internal ToDo-list but so far without any fixed time schedule.

For now, this can be done by using J-Link Script Files which configure everything correct.
We can offer you to provide the JLinkScripts, we used for the LPC4350_M0 and LPC4350_M4 core which
can be used as reference. Please find them attached to this post.


Best regards
Erik
SEGGER - Erik has attached the following file:

sraza

Beginner

Date of registration: Jan 31st 2015

Posts: 8

3

Friday, February 6th 2015, 8:29pm

Thanks.....will give this a try and see if I can get M0 running on lpc5410 after modifying these......

SEGGER - Erik

Super Moderator

Date of registration: Dec 20th 2011

Posts: 400

4

Monday, February 9th 2015, 1:50pm

Please keep us posted how you are progressing.
If you run into any issues or have any questions, please let us know. Maybe we can help you solving them.

Anyhow, we will try to find some time this week or maybe next week in which we can create a script for the LPC54102 M0.

- Erik

sraza

Beginner

Date of registration: Jan 31st 2015

Posts: 8

5

Saturday, February 14th 2015, 7:01am

Thanks for the response. It will be extremely helpful if you can provide me with the MO scripts for lpc5410. I have received my target hardware and will give a try to the
lpc4350_M0 script and let you know if I run into some problem.

Regards.

bunny123

Beginner

Date of registration: Mar 15th 2015

Posts: 16

6

Saturday, March 21st 2015, 3:54pm

Am I correct that lpc5410 is now an officially supported board in jlink-dll / jlinkGDBServer so are there any plans for cortex-m0 support for lpc5410 board as most of the time lpc5410 boards cortex-m4 are used in conjunction with cortex-m0 and it would be helpful to get something for cortex-m0 access using jlink....

Please update....

SEGGER - Erik

Super Moderator

Date of registration: Dec 20th 2011

Posts: 400

7

Monday, March 23rd 2015, 11:21am

Hi,

Debugging the Cortex-M0 is already supported by the J-Link DLL using a J-Link script file.
Attached you will find a script for the LPC5410x, but without any warranty, as it is not fully tested, yet.
We have only tested it on a target where the M4 has already setup the M0 and prepared it to run.

Furthermore, we plan to add a new device selection LPC5410_M0 to the J-Link DLL which
will consider of the content of the script file, so that a script file is no longer necessary and
which makes sure that the M4 is set up correctly. We are already in contact with NXP regarding this.


Best regards
Erik
SEGGER - Erik has attached the following file:

bunny123

Beginner

Date of registration: Mar 15th 2015

Posts: 16

8

Monday, March 23rd 2015, 2:12pm

Cool...... great JLink support indeed, I guess JLink would be among the most user friendly probes one day.

Will give a try to this script and see what I can get for Cortex-M0 on lpc5410_M0 core. Looking forward to support of lpc5410_M0 in jlink dll.
.

SEGGER - Erik

Super Moderator

Date of registration: Dec 20th 2011

Posts: 400

9

Monday, March 23rd 2015, 6:40pm

Thanks for the "flowers". Please let us know how you proceed as this might be interesting for other customers / users as well.


- Erik