This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Flashing custom board using J-Link LITE SWD on visual Studio

Hi,

I'm new on NRF connect with visual studio (I have programmed nordic devices before, nrf51), right now I am working with a nrf5340.

So far I have created a blinky application and run it successfully on the devkit for the nrf5340, even changed a the LEDs add new LEDs, so on... just playing around with it and no problem.

When trying to program my custom board I am having problems... and I will list what I think that is relevant and could be causing issues with my current setup as I try to figure that if those are a problem or not...

1.- I am using an J-Link Lite (the segger website says it supports nrf5340), I have connected the Vref, GND, SWCLK, SWDIO and Reset signals from the J-Link to the custom board.

2.- Visual studio seems to be using JTAG by default, does anyone knows where to change this to SWD or how to check this option?

3.- I will have to use 1.8 volts for programming, does anyone knows where this is set in VS code?

Any help will be appreciated, thanks!

Parents
  • I suggest you get your hands on an nRF5340DK. J-link Lite only supports 3.3V logic. If you are powering the nRF5340 through VDD at 3.3V you will have no issue, but if you're powering the nRF5340 through VDDH its default output will be 1.8V and you wont be able to use the J-Link Lite. 


  • Hi Haakonsh,

    I did try 3V on Vdd with the J-Link Lite, so now the J-link recognices the device, but...

    Do I need to upgrade J-Link software or does this means that it just cant program it?

    How can I use the 5340DK to program my unit?

    Thanks!

Reply Children
Related