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

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

  • [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!
  • 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!
  • 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

    The post was edited 1 time, last by RoadRanger ().

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

    Or you can contact us via e-mail.
  • 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
    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: segger.com/ticket/

    Or you can contact us via e-mail.
  • 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
    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: segger.com/ticket/

    Or you can contact us via e-mail.
  • 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?

    The post was edited 1 time, last by muradunal ().