This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

J-Link Debugger with SEGGER Embedded Studio on Mac

Continuing my mission to have SES set up to be the complete development environment on a Mac I am struggling to get the Jlink Debugger to behave with SES.

It appears I cannot use the J-Link RTT Viewer since I have a Mac and this looks like it is Windows only. So I have fallen back to using the SEGGER J-Link Debugger V2.14 which is for Windows, Mac and Linux.

In terms of the Target Device, I see the nRF52832_xxAA and can set the Target Interface (JTAG: 1 MHz) with a USB host. So far so good.

SES imports the RTT Files folder so I added the relevant headers at the top of Main.

The problem is that every time I try to Download & Reset, Attach to Running Program or Attach and Halt Program I get a Connection Failed message in the J-Link Debugger Console. Also I notice the SES becomes unstable and often freezes and I have to restart it (I have reported the logs to SEGGER).

Is there something I am missing or is this a known bug?

Thanks

Parents
  • Hey, while there isn't an RTT Viewer on Mac, it is very easy to use RTT just following the answer in this post: devzone.nordicsemi.com/.../. You just connect to the device using JLink.exe and then open JLinkRTTClient and can view all RTT logging in that terminal.

    You need to be using SWD, not JTAG. 1 mhz should be fine but up to 5 mhz should work. I'm guessing this is the problem. nRF52 devices implement an SWD interface. The connection is failing probably because of this.

  • Hi Michael, thanks for responding. The J-Link Commander is part of the J-Link software package for Mac. I have downloaded and installed that but I cannot get passed the JLinkLicenseManager. It asks for a license number to be entered or asks to be connected to an emulator that holds a license. When I click on the latter I get this message:

    The connected emulator (S/N 682301457) has the following built-in license(s): none

    And I cannot proceed any further with any of the utilities in the software package. This is the nRF52 DK to be clear.

    Thanks

Reply
  • Hi Michael, thanks for responding. The J-Link Commander is part of the J-Link software package for Mac. I have downloaded and installed that but I cannot get passed the JLinkLicenseManager. It asks for a license number to be entered or asks to be connected to an emulator that holds a license. When I click on the latter I get this message:

    The connected emulator (S/N 682301457) has the following built-in license(s): none

    And I cannot proceed any further with any of the utilities in the software package. This is the nRF52 DK to be clear.

    Thanks

Children
No Data
Related