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.

  • That's weird because I am just using a normal dev kit on mac and its working fine. I just downloaded the most recent J-Link Software and Documentation pack here (v5.12c): www.segger.com/j-link-software.html, installed and navigated to the SEGGER folder. Here I double clicked 'JLinkExe' and set up the connection to the dev kit following the prompts (I don't get any problems with license). After it is connected I double click 'JLinkRTTClient' and my RTT info is there.

    If I open the license manager (which i've never needed to do) and see which licenses are built in on my device I get the same 'The connected emulator (S/N 682338160) has the following built-in license(s): none' message, but everything still works properly for me as it should.

Reply
  • That's weird because I am just using a normal dev kit on mac and its working fine. I just downloaded the most recent J-Link Software and Documentation pack here (v5.12c): www.segger.com/j-link-software.html, installed and navigated to the SEGGER folder. Here I double clicked 'JLinkExe' and set up the connection to the dev kit following the prompts (I don't get any problems with license). After it is connected I double click 'JLinkRTTClient' and my RTT info is there.

    If I open the license manager (which i've never needed to do) and see which licenses are built in on my device I get the same 'The connected emulator (S/N 682338160) has the following built-in license(s): none' message, but everything still works properly for me as it should.

Children
No Data
Related