Tuesday, January 23rd 2018, 2:57am 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.

RoadRanger

Beginner

Date of registration: Jan 21st 2011

Posts: 9

1

Friday, January 21st 2011, 3:23am

[SOLVED]Can't see M0 registers in Keil MDK

I just received this little dev board from China (Nano M0) that has an NXP LPC1114/301 on it and it has a built-in SWD I/F that pretends to be a J-Link. Anyways I installed the latest J-Link software and it upgraded the firmware in the pseudo-J-Link and I was able to get the latest eval version of the Keil MDK uVision talking to it and can do everything expected except that the "Registers Window" displays all zeros. I can go into the Segger control panel's "CPU Regs" and even change the registers from uvision and see the change in the Segger control panel but the uvision "Registers Window" continues to be all zeros. Anybody have any idea what I'm doing wrong? Thanks!

RoadRanger

Beginner

Date of registration: Jan 21st 2011

Posts: 9

2

Wednesday, January 26th 2011, 4:18am

After getting my J-Link'd LPC1114/301 dev board unbricked I still see this issue. The J-Link log file shows the registers being properly read but they just aren't getting into the uVision "Registers" window :( . Memory is being read fine.

I also have other dev boards that do work properly with uVision but they use other emulators. One is a CoLinkEx emulator talking to its attached LPC1114/301 target so I know it's not a problem with the chip type or with uVision. I suspect I have something set wrong in uVision but I can't imagine what? I need to purchase either a "legal" ULINK2 or a J-Link for commercial development and would like to verify that this isn't a J-Link problem interfacing to the LPC1114/301 before I decide which to buy. Thanks!

RoadRanger

Beginner

Date of registration: Jan 21st 2011

Posts: 9

3

Saturday, January 29th 2011, 5:30pm

Nobody has a clue as to what I'm doing wrong or can say they've seen the register display in uVison work with Jlink and an NXP M0 target? I should mention that I can see the peripheral registers just fine. A screen shot showing the problem is attached as well as a copy of jlink.log showing the registers were in fact read even though all zeros was displayed. Very strange? i have tried deleting and reloading both uVision and the J-Link software. The present configuration is with just the uVision installed and the Segger software removed so I'm just using the drivers that ship with uVision. All configurations I've tried result in the same result :( .


JLink.txt

This post has been edited 1 times, last edit by "RoadRanger" (Jan 29th 2011, 5:36pm)


RoadRanger

Beginner

Date of registration: Jan 21st 2011

Posts: 9

4

Thursday, February 10th 2011, 4:31pm

Nobody has ever seen this? I think this little board is not licensed to use J-Link - is it possible that J-Link is detecting that and "sabotaging" the register read transfer to Keil somehow? No big deal as I've moved on to Nuvoton dev boards using the Nu-Link SWD adapter for the development but I'd rather not have to tell folks that J-Link doesn't work properly with M0 and Keil if this is something stupid I'm doing :( . We'll be needing to buy some SWD adapters for production in a couple months ...

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

5

Thursday, February 10th 2011, 5:49pm

Hi RoadRanger,

Sorry for not getting back to you earlier.
We already got in contact with Keil and it was a problem on the uVision side.
The problem has been fixed.
We will check when the fixed version will be available for download.


Best regards
Alex

RoadRanger

Beginner

Date of registration: Jan 21st 2011

Posts: 9

6

Thursday, February 10th 2011, 7:01pm

Thanks!

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

7

Friday, February 11th 2011, 5:39pm

Hi RoadRanger,

according to Keil a new release of uVision (V4.20) is planned for end of Feburary.
For now I can give you the inofficial fix in the JL2CM3.dll
You have to replace your JL2CM3.dll in $KEIL_INST_DIR$\ARM\Segger

I will send you a PM with the Link.

Best regards
Alex

RoadRanger

Beginner

Date of registration: Jan 21st 2011

Posts: 9

8

Friday, February 11th 2011, 9:44pm

Thanks, it works great! :)

muradunal

Beginner

Date of registration: Jun 3rd 2011

Posts: 2

9

Friday, June 3rd 2011, 3:01pm

Hi,
I have same problem. Can you send me JL2CM3.dll, please?

This post has been edited 1 times, last edit by "muradunal" (Jun 3rd 2011, 3:16pm)


SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

10

Monday, June 6th 2011, 3:21pm

Hi,

V4.20 of uVision in which this has been fixed is available for download,
so we recommend to use this version since the DLL we got from Keil was an in-official one
and only to be used for the work-around period.


Best regards
Alex

muradunal

Beginner

Date of registration: Jun 3rd 2011

Posts: 2

11

Monday, June 13th 2011, 10:27am

I installed MDK-ARM v4.20 evalution edition form Keil website.
I have LPC1343 Cortex-M3 board. I download my code via J-link and debug. Everything is OK. Also I have a design with LPC1113 (using internal oscillator). I download my code but I can not debug. When I try debug, object code can not be loaded. If I do same using IAR, everything is OK. Is there anyone else try to debug LPC1113/302 via Keil MDK-ARM v4.20? Is there any trick?

This post has been edited 1 times, last edit by "muradunal" (Jun 13th 2011, 4:10pm)